Unit 2 Guided Practice 1: Use an "If" Statement to Decide If An Age Is Reasonable

Need your ASSIGNMENT done? Use our essay writing service to score better and meet your deadline.


Order a Similar Paper Order a Different Paper

 

The following program uses a decision structure to decide if a user-entered value is reasonable.  We ask the user for an age, and, if the age is less than 10, we tell the user the age isn’t valid, and give the user another chance to enter a value greater than 10.  If the age is 10 or greater, we tell the user the age is valid.  In any case, after the second attempt, the user receives the message that they’ve entered a valid age.

Here’s the Flowchart:

And here is the code:

And here is the output:

Now, re-create the flowchart in Flowgorithm and run the code in your Dev C++ compiler.

Upload your flowgorithm file, .c file, and a screen shot of your code output saved in a Word document including the path name directory at the top of the screen into the dropbox for grading.