Search for question
Question

1. [33 points] Create a file called, hw1_1_bd_flow.xxx, where the extension (xxx) is one of .jpg, .jpeg, png, gif, or .pdf. You can create this file by drawing a flowchart on a piece of paper, if neatly done, and then just taking a picture of it with your phone. Or, if you prefer, you may use a free online tool such as LucidChart and export your work to one of the desired formats. Whether or not you use a software tool, please limit yourself to the basics: ovals for start/stop, rectangles for processing steps, parallelograms for input/output, diamonds for decisions, and arrows to show the flow of control.

Create a flowchart that describes the following steps:

• Create a variable named, current_year, with the integer value 2021.

• Print "Welcome! What is your name?"

• On the same line, read the name of the user and store it into a variable called, user_name.

Print "Hi, " followed by the user's name, on the same line, followed by a period.

• Prompt the user with "How old are you?" and input their response (a string of digits).

• Convert their response to an integer and store it in a variable called, user_age.

• Calculate the user's year of birth and save it in a variable called, user_birth.

• Print "You were born in ", followed by the user's year of birth, followed by a period, all on

the same line.