Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE READ . I'm in a beginning class and we're learning how to make handwritten flowcharts and use for, while and do while loops. .
PLEASE READ
.
I'm in a beginning class and we're learning how to make handwritten flowcharts and use for, while and do while loops.
.
We are not converting to any programming languages yet, we are only making handwritten flowcharts.
.
I need help doing the problems and fully understanding how to do them so that I can do others like them on my own.
.
I've included an example of one solution to a different problem shared in lecture here to show what solutions should look a bit like:
.
Here is the problem given:
Start DO WHILE loop Show a menu: "Enter 1 for addition, 2 for subtraction, or 3 to end the program"I Enter a choice > Choice Input Check Choice #1, 2 or 3 False (Choice is 1, 2 or 3) True (invalid choice) WHILE loop Output "Your choice was invalid. Enter 1, 2 or 3" Enter a choice -> Choice Input F(Choice Choice-1 or2T(Choice-1 or 2) Enter 2 numbers > N1, N2 F(choice 2) Choice-1 N1- N2Result N1 N2 > Result Output; Result Check Choice f.3 True (Choice #3, Choice was 1 or 2) False (Choice 3) End Draw a flowchart for the program that will read an unknown number of ages. (0 is a valid age used for a baby.) The user will enter a negative number if there are no more ages to enter. The program will output the average age and youngest and oldest ages. If no ages were entered, display "No ages were entered". Hint: Use 2 boxes to store the youngest and oldest ages. What would you put in these boxes at the beginning
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started