Unit 1 guided practice 4: a simple “if” statement | programming | ECPI University

Now, it’s time to make some decisions. 

This is a little more complicated.  Simply put, the program asks the user to enter two scores storing them into variables, averages them, and then prints the scores and the average to the screen. It also calculates whether the user’s average score is passing of failing.  For our purposes, a 65 is passing. Let’s first look at the flowchart for this program.  

The flowchart:

The code:

The output:

Type the code up above into your Dev C++ compiler.  Then compile and run.

Upload your .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

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


Click Here to Make an Order Click Here to Hire a Writer