Unit 1 Guided Practice 4: A Simple "If" Statement

Question # 00798826 Posted By: 235 Updated on: 03/19/2021 11:13 AM Due on: 04/10/2021
Subject Computer Science Topic General Computer Science Tutorials:
Question
Dot Image

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

Dot Image

Click chat on right side to get answer. Click on Chat
Whatsapp Lisa