Computers and Technology

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.
Extend your program below that repeats asking the user for input and displaying the short story until the user wants to quit.

Enter a name: Eric
Enter a place: Lou & Harry's
Enter a number: 12
Enter a plural noun: cars
Enter an adjective: orange

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.

Do you want to quit [y/n]? n

Enter a name: Derek
Enter a place: JoAnn Fabrics and Crafts
Enter a number: 3
Enter a plural noun: sewing machines
Enter an adjective: pretty

Derek went to JoAnn Fabrics and Crafts to buy 3 different types of sewing machines
but unfortunately, the sewing machines were all pretty so Derek went back to JoAnn Fabric and Crafts to return them.

Do you want to quit [y/n]? y
Goodbye

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:10, joanasprinkman2262
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
image
Computers and Technology, 22.06.2019 19:40, rakanmadi87
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
image
Computers and Technology, 24.06.2019 16:00, alexisbeasley2
Which of the following characters is acceptable to use in a filename? ? / โ€“ %
Answers: 1
Do you know the correct answer?
Mad Libs are activities that have a person provide various words, which are then used to complete a...

Questions in other subjects:

Konu
Mathematics, 02.09.2020 23:01