Assignment #45 and Choose Your Own Adventure

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Choose Your Own Adventure
    /// File Name: Adventure.java
    /// Date Finished: 10/19/2015
    
    import java.util.Scanner;
    
    public class Adventure
    {
        public static void main( String[] args )
        {
            String r1, r2, r3, r4, r5, r6, r7, e1, e2, e3, e4 ,e5, e6, e7, e8;
            
            Scanner keyboard = new Scanner(System.in);
            
            System.out.println();
            System.out.println( "WELCOME TO LAUREN'S ADVENTURE!" );
            System.out.println( "You just came home from school. Would you like to go into your \"bedroom\" or into the \"living_room\"?" );
            r1 = keyboard.next();
            
            if ( r1.equals("bedroom") )
            {
                System.out.println();
                
                System.out.println( "You have had a long day at school and want to rest, but you have a large amount of homework. Do you play \"video_games\" or start your \"homework\"?" );
                r2 = keyboard.next();
                
                System.out.println();
                
                if ( r2.equals("video_games") )
                {
                    System.out.println( "You lost track of time and it is now 10:00pm. You think you should get your homework done, but you are very tired. Do you \"sleep\" or do your \"homework\"?" );
                    r4 = keyboard.next();
                    
                    System.out.println();
                    
                    if ( r4.equals("sleep") )
                    {
                        System.out.println( "You go to sleep without doing any of your homework. The next morning you go to school and your grades drop and your parents are dissapointed." );
                    }
                    
                    else if ( r4.equals("homework") )
                    {
                        System.out.println( "You get your homework done, but only get 3 hours of sleep. Better hope you don't have any lectures, as you are too tired to pay attention." );
                    }
                }
                
                else if ( r2.equals("homework") )
                {
                    System.out.println( "You manage to get your homework done within the first few hours of getting home. You have time left over to either watch \"anime\" or \"sleep\". Which do you choose?" );
                r5 = keyboard.next();
                    
                    System.out.println();
                    
                    if ( r5.equals("anime") )
                    {
                        System.out.println( "You start to watch an anime, but then remember that it's very addicting. You don't get any sleep and are extremely tired. But hey, at least you got your homework done!" );
                    }
                    
                    else if ( r5.equals("sleep") )
                    {
                        System.out.println( "Congratulations, you finished all of your work and also got plenty of sleep. We all aspire to be you." );
                    }
                    
                }
            }
            
            else if ( r1.equals("living_room") )
            {
                System.out.println( "You had a long day at school and want to rest, but you have quite a lot of homework. Do you do your \"homework\" or browse the \"internet\"?" );
                r3 = keyboard.next();
                    
                System.out.println();
                    
                if ( r3.equals("homework") )
                {
                    System.out.println( "You finish your homework by 7:00pm. With a few hours left before you go to sleep, do you decide to treat yourself by going on \"tumblr\" or not treat yourself and go to \"sleep\" a few hours early?" );
                    r6 = keyboard.next();
                        
                    System.out.println();
                        
                    if ( r6.equals("tumblr") )
                    {
                        System.out.println( "You go on tumblr for an hour or so before you get bored. You go to bed at a reasonable hour and you managed to finish all of your school work. Good job!" );
                    }
                        
                    else if ( r6.equals("sleep") )
                    {
                        System.out.println( "You go to bed early without having any fun. Although you have finished your school work and gotten sleep, you lack the ability to let yourself have fun." );
                    }
                }
                    
                else if ( r3.equals("internet") )
                {
                    System.out.println( "You mindlessly browse the internet for hours on end. You suddenly realise it's 8:00pm and you haven't started your homework. Do you do your \"homework\" or give into the temptation and stay on the \"internet\"?" );
                    r7 = keyboard.next();
                        
                    System.out.println();
                        
                    if ( r7.equals("homework") )
                    {
                        System.out.println( "You rush through your homework so you can get it done in time. You go to sleep at a reasonable hour and just managed to finish your school work. Try not to cut it so close next time!" );
                    }
                        
                    else if ( r7.equals("internet") )
                    {
                        System.out.println( "Even though you knew you shouldn't have, you stay up way too late online. Your grades drop from not doing your work and you can't pay attention during your lectures because of the lack of sleep. Nice." );
                    }
                }
            }
        }
    }  
    

Picture of the output

Assignment #45