Draw a flowchart to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year.

Respuesta :

Answer:

Please, see the attachment.

Explanation:

First, we have to create two input boxes that allows the user to write the current year in one of them and his/her birth year in the another one. Also, we have to create a label that will show the result of the desired variable. We can write a message "Your age is:" and it will be attached to the result.

For the algorithm, let's call the variables as follows:

CY = Current Year

BY = Birth Year

X = Age of user

When the user inserts the current year and his/her birth year, the program will do the following operation:

X = CY - BY; this operation will give us the age of the user

After this the user will see something like "Your age is:" X.

Ver imagen carlospertuz