Answer to Question #236963 in Algorithms for Johny Blake

Question #236963
Create a Pseudocode that asks for the user's name, gender, and year of birth. Based on the computed age from the user's entered birth year and the assigned variable current year (2020), it will determine if the user is a qualified or not qualified voter. It will also ask whether the user wants to attempt filling out the form again.
1
Expert's answer
2021-09-14T05:18:08-0400
1  Show a message asking user's name
2  Save input in variable name
3  Show a message asking user's gender
4  Save input in variable gender
5  Show a message asking user's year of birth
6  Save input in variable birth
7  Set variable age value 2020 - birth
8  If age > 18
9       Show message that user qualified to vote
10 Else
11      Show message that user not qualified to vote
12 Ask if user want to fill the form again
13 If answer is yes go to step 1
14 Exit

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS