Project Number 1

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Choose Your Own Slightly Longer Adventure
    /// File Name: firstProject.java
    /// Date Finished: 10/29/2015
    
    import java.util.Scanner;
    
    public class firstProject
    {
        public static void main( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
            
            String r1, r2, r3, r4, r5, r6, r7, r8, r9, r10;
            
            System.out.println();
            System.out.println( "WELCOME TO LAUREN'S ADVENTURE!" );
            
            System.out.println();
            System.out.println( "You wake up on Saturday morning at 10:00AM. You check your phone and notice you got some texts from your friends asking if you want to hang out with them. You think about how much you have been stressed out because of school and how you were really looking forward to spending time alone. You also think about how much work you would have to do if you stayed home. Do you hang out with \"friends\", ignore your work so you can lock yourself up in your \"room\", or try to be \"productive\"? " );
            r1 = keyboard.next();
            
            if ( r1.equals("friends") )
            {
                System.out.println();
                System.out.println( "The first hour or so of being around your friends was fun, but now you are all very bored. You remember that you wanted to catch up on an anime this weekend. You think about suggesting to watch it with your friends, but as you are the only one of your friends who watch anime, you're afraid of being judged. Do you risk showing them \"anime\" or play it safe and suggest wrecking them at \"Mario_Kart\"? " );
                r2 = keyboard.next();
                
                
                if ( r2.equals("anime") )
                {
                    System.out.println();
                    System.out.println( "You are a bit nervous showing them an anime, but luckily, you have great friends and although they admit they don't love it, they know that you do and don't judge your interests. After it ends, you think about leaving so you can finish the work you have to do at home. Do you \"leave\" to go do work, or \"stay\" and ignore your responsibilities? " );
                    r3 = keyboard.next();
                    
                    
                    if (r3.equals("leave") )
                    {
                        System.out.println();
                        System.out.println( "After leaving your friends, you get all of your work done. Your day was productive, as well as fun." );
                    }
                    
                    else if (r3.equals("stay") )
                    {
                        System.out.println();
                        System.out.println( "You have more fun hanging out with your friends, but you do regret leaving all of your work to be done on Sunday. " );
                    }
                    
                    else
                    {
                        System.out.println( "That is not an option." );
                    }
                }
                
                    
                
                
                
                else if ( r2.equals("Mario_Kart") )
                {
                    System.out.println();
                    System.out.println( "Beating your friends at Mario Kart was easier said than done. It looks like they have been practicing since the last time they saw you. In the end, you wreck them - like you had said. Your friend asks you if you can get her some soda. What do you say to her, \"sure\" or \"no\"? " );
                    r4 = keyboard.next();
                    
                    
                    if (r4.equals("sure") )
                    {
                        System.out.println();
                        System.out.println( "You go to the kitchen and grab a cup. As you are walking towards the refrigerator you slip on an ice cube and fall. You are sad." );
                    }
                    
                    else if (r4.equals("no") )
                    {
                        System.out.println();
                        System.out.println( "Your friend rolls her eyes at you and goes to get it herself. As she walks towards the refrigerator she slips on an ice cube and falls. She is sad. You laugh. " );
                    }
                    
                    else
                    {
                        System.out.println( "That is not an option." );
                    }
                }
                
                
                
                
            }
            
            
            
            
            else if ( r1.equals("room") )
            {
                System.out.println();
                System.out.println( "It's not surprising that you decided to stay in your room all day. As you are browsing tumblr, you come across a text post of someone talking about the inevitability of death. Do you quickly scroll past the post and \"ignore\" it or let the thoughts crawl into your mind and stare at a wall and \"think\" about life and death? " );
                r5 = keyboard.next();
                
                
                if ( r5.equals("ignore") )
                {
                    System.out.println();
                    System.out.println( "You scroll past the post and continue mindlessly browsing the internet for hours on end. It is now 4:00pm and you haven't done any of the work you were supposed to do. You know that you should get working, but you think macaroni sounds better. Will you do something \"productive\" or eat \"macaroni\"? " );
                    r6 = keyboard.next();
                    
                    
                    if (r6.equals("productive") )
                    {
                        System.out.println();
                        System.out.println( "Good job, you actually try to get work done, unlike me." );
                    }
                    
                    else if (r6.equals("macaroni") )
                    {
                        System.out.println();
                        System.out.println( "You have done nothing productive today, but your macaroni was good." );
                    }
                    
                    else
                    {
                        System.out.println( "That is not an option." );
                    }
                }
                
                    
                
                
                
                else if ( r5.equals("think") )
                {
                    System.out.println();
                    System.out.println( "You, my friend, have gotten yourself in a bit of a predicament. You have trapped yourself in a downwards sprial of thoughts of how life is meaningless. Because you know that you won't be able to control your thoughts for the next few hours, you decide to get comfortable. Will you lay \"face-up\" or \"face-down\" on the ground? " );
                    r7 = keyboard.next();
                    
                    
                    if (r7.equals("face-up") )
                    {
                        System.out.println();
                        System.out.println( "You stare at a ceiling for 2 hours!!!!! How fun!!" );
                    }
                    
                    else if (r7.equals("face-down") )
                    {
                        System.out.println();
                        System.out.println( "Your face gets itchy from pressing it into the carpet." );
                    }
                    
                    else
                    {
                        System.out.println( "That is not an option." );
                    }
                }
            }
            
            
            
            
            else if ( r1.equals("productive") )
            {
                System.out.println();
                System.out.println( "You get all of your work done by 3:00pm. You can either text your \"friends\" to see if they can still hang out, or \"stay_home\" and find something to do." );
                r8 = keyboard.next();
                
                
                if ( r8.equals("friends") )
                {
                    System.out.println();
                    System.out.println( "Your friends are still available to hang out, so you go over. When you get there, your friend offers to play a game. Will you \"play_a_game\" or \"find_her_dog\" and pet it." );
                    r9 = keyboard.next();
                    
                    
                    if (r9.equals("play_a_game") )
                    {
                        System.out.println();
                        System.out.println( "You wreck your friends at Mario Kart. :D" );
                    }
                    
                    else if (r9.equals("find_her_dog") )
                    {
                        System.out.println();
                        System.out.println( "You leave your friend to find her dog. Her dog is big and fluffy and you lOVE DOGS." );
                    }
                    
                    else
                    {
                        System.out.println( "That is not an option." );
                    }
                }
                
                    
                
                
                
                else if ( r8.equals("stay_home") )
                {
                    System.out.println();
                    System.out.println( "You sit in your room on your computer. Do you go on \"tumblr\" or \"YouTube\"?" );
                    r10 = keyboard.next();
                    
                    
                    if (r10.equals("tumblr") )
                    {
                        System.out.println();
                        System.out.println( "You find some dank memes." );
                    }
                    
                    else if (r10.equals("YouTube") )
                    {
                        System.out.println();
                        System.out.println( "One video leads to another and now you are watching pancake art tutorials." );
                    }
                    
                    else
                    {
                        System.out.println( "That is not an option." );
                    }
                    
                }
                
                
                else
                {
                    System.out.println( "That is not an option." );
                }
                
               
            }
            
            
            else
            {
                System.out.println( "That is not an option." );
            }
            
            
        }
    }  
    

Picture of the output

Project #1