Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program to print the input variables with text in between on two separate lines. You will need to prompt the user for the

Create a program to print the input variables with text in between on two separate lines. You will need to prompt the user for the favorite restaurant, save the input they give, prompt the user for a food at that restaurant, save what they give you, then print the appropriate message as shown below. Your input prompts can be anything you like, but you should make them sensible so the user knows what they are supposed to do.
Hint: Your program will be easier for the user to read if you include an extra space or a newline at the end of your input prompt. Reminder that in is the newline character.
Example: If the user types in and Sushi
Then the output should be:
Sansu is my favorite restaurant.
They serve delicious Sushi
Input your code to cause it to print the appropriate message (no matter what the user enters as their restaurant and food).
Try out your program first before submitting it for a grade with the Check It button. If it doesn't work at first, don't get discouraged! This is extremely common in programming. Examine what the feedback is telling you, and try again. Try It as many times as you like until you think it looks correct.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions