Menu

Overview Write Program Get Input User Print Input Description Mad Libs Activities Person P Q43868109

Overview Write a program to get input from the user and then print the input. Description Mad Libs are activities that have aThen the output is: Eric went to Lou & Harrys to buy 12 different types of cars but unfortunately, the cars were all orangeOverview Write a program to get input from the user and then print the input. Description Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways. Objective Complete the program to read the needed values from input that the existing output statement(s) can use to output a short story. The program will prompt the user for a name, a place, a number, a plural noun, and an adjective. Your prompts for input must be exactly the following Enter a name: Enter a place: Enter a number: Enter a plural noun: Enter an adjective: Notice that your prompt must end with a colon character followed by a space, as in the first line of the starting code. Your program will run just fine and produce a mad lib if you don’t put the colon and space, but it will not pass the autograded test cases. You should run your program several times in development mode, trying it with several different inputs, before you try to submit it for grading. Once you do, note that the graded submission reports the expected output with the prompts written out prior to the output Also notice that the system will keep your highest score, so do not be afraid to keep trying different things after you ve received 100% An example case of running your program is given below. Example: If the input is Eric Lou Harry’s Cars Orange Then the output is: Eric went to Lou & Harry’s to buy 12 different types of cars but unfortunately, the cars were all orange so Eric went back to Lou & Harry’s to return them. Once you have your grade, you may want to go back and experiment in development mode with having the colon in the prompt vs. not having the colon and space to see how the output looks. You may also want to experiment with adding further sentences to your mad lib. This will give you extra programming practice help you see how the auto grading works, and will help you in future programs ACTIVITY 16.3.1: LAB 3 C Spring 20: Input: Mad Lib 0/30 main.py Load default template. 1 # get the name from the user 2 First name input(‘Ben”) 4 # get the rest of the inputs from the user 5 generic location input(“Lou & Harry’s”) 6 whole number – Input(“12”) 7 plural noun (cars) 8 bad adjective (“orange”) 9 Insert the rest of your code in place of this line. * . 10 print (first_name, went to’, generic location, to buy’, whole number, different types of plural noun) 11 print(“but unfortunately, the”, plural noun, “were a11”, bad adjective, “o”, first name, “went back to”, generic location, “to return th 12 + print out the hilarious sentence 13 print (first_name, “went to’, generic_location, to buy, whole number, different types of plural noun) 14 print(“but unfortunately, the plural noun were all bad adjective, so first , went back to generic location, to return th Develop mode Submit mode Run your program as often as you’d like before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program’s output in the second box Show transcribed image text Overview Write a program to get input from the user and then print the input. Description Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways. Objective Complete the program to read the needed values from input that the existing output statement(s) can use to output a short story. The program will prompt the user for a name, a place, a number, a plural noun, and an adjective. Your prompts for input must be exactly the following Enter a name: Enter a place: Enter a number: Enter a plural noun: Enter an adjective: Notice that your prompt must end with a colon character followed by a space, as in the first line of the starting code. Your program will run just fine and produce a mad lib if you don’t put the colon and space, but it will not pass the autograded test cases. You should run your program several times in development mode, trying it with several different inputs, before you try to submit it for grading. Once you do, note that the graded submission reports the expected output with the prompts written out prior to the output Also notice that the system will keep your highest score, so do not be afraid to keep trying different things after you ve received 100% An example case of running your program is given below. Example: If the input is Eric Lou Harry’s Cars Orange
Then the output is: Eric went to Lou & Harry’s to buy 12 different types of cars but unfortunately, the cars were all orange so Eric went back to Lou & Harry’s to return them. Once you have your grade, you may want to go back and experiment in development mode with having the colon in the prompt vs. not having the colon and space to see how the output looks. You may also want to experiment with adding further sentences to your mad lib. This will give you extra programming practice help you see how the auto grading works, and will help you in future programs ACTIVITY 16.3.1: LAB 3 C Spring 20: Input: Mad Lib 0/30 main.py Load default template. 1 # get the name from the user 2 First name input(‘Ben”) 4 # get the rest of the inputs from the user 5 generic location input(“Lou & Harry’s”) 6 whole number – Input(“12”) 7 plural noun (cars) 8 bad adjective (“orange”) 9 Insert the rest of your code in place of this line. * . 10 print (first_name, went to’, generic location, to buy’, whole number, different types of plural noun) 11 print(“but unfortunately, the”, plural noun, “were a11”, bad adjective, “o”, first name, “went back to”, generic location, “to return th 12 + print out the hilarious sentence 13 print (first_name, “went to’, generic_location, to buy, whole number, different types of plural noun) 14 print(“but unfortunately, the plural noun were all bad adjective, so first , went back to generic location, to return th Develop mode Submit mode Run your program as often as you’d like before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program’s output in the second box

Expert Answer


Answer to Overview Write a program to get input from the user and then print the input. Description Mad Libs are activities that h…

OR