50.9k views
0 votes
You will write a program that asks a user to fill in a story. Store each response in a variable, then print the story based on the responses.

Part 1: Plan and Write the Pseudocode

Use the following guidelines to write your pseudocode for a fill-in story program.


Decide on a list of items the program will ask the user to input.

Your program should include at least four interactive prompts.

Input from the user should be assigned to variables and used in the story.

Use concatenation to join strings together in the story.

Print the story for the user to read.

1 Answer

3 votes

Answer:

I think you wanted pseudocode so:

  1. String food
  2. String sport
  3. String book
  4. String game
  5. then ask the user like, what is your favorite food?
  6. put the users answer in the food variable
  7. ask what is your favorite sport?
  8. put the answer in the sport variable
  9. etc
  10. then do String story = food + sport + book + game
  11. print story out

Step-by-step explanation:

Lines 1 - 4 are making the variables for the user to fill in

Lines 5 - 9 are getting answers for the Strings

Lines 10 - 11 are making and printing the story

User Bhavin Chauhan
by
4.0k points