Get three exam grades from the user and compute the average of the grades. Output the average of the three exams. Together with the average, also include a Remark: Passed in the output if the average is greater than or equal to 70, otherwise output Remark: Failed.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question
100%

Get three exam grades from the user and compute the average of the grades. Output the average of the three exams. Together with the average, also include a Remark: Passed in the output if the average is greater than or equal to 70, otherwise output Remark: Failed.

 

1: Using if. else statement
UILE LU ut uu ucinusL UC IUCILILGI LU alry ui LIIC yivCII J01pie vuy pUL
Is you have to strictly follow what are the displayed text, labels, casing
cers in the sample output.
OUTPUT 1:
Enter Grade 1: 70
Enter Grade 2: 80
Enter Grade 3: 90
Average Grade: 80
Remark: Passed
OUTPUT 2:
Enter Grade 1: 50
Enter Grade 2: 60
Enter Grade 3 7O
Average Grade: 60
Remerk Faled
eck your program by clicking the buttons below...
taski.c In function main':
Transcribed Image Text:1: Using if. else statement UILE LU ut uu ucinusL UC IUCILILGI LU alry ui LIIC yivCII J01pie vuy pUL Is you have to strictly follow what are the displayed text, labels, casing cers in the sample output. OUTPUT 1: Enter Grade 1: 70 Enter Grade 2: 80 Enter Grade 3: 90 Average Grade: 80 Remark: Passed OUTPUT 2: Enter Grade 1: 50 Enter Grade 2: 60 Enter Grade 3 7O Average Grade: 60 Remerk Faled eck your program by clicking the buttons below... taski.c In function main':
2. Task 1: Using if... else statement
Get three exam grades from the user and
compute the average of the grades. Output
the average of the three exams. Together with
the average, also include a Remark: Passed in
the output if the average is greater than or
equal to 70, otherwise output Remark: Failed.
NOTE:
Your source code must display any of the given sample output below.
It means your source code should be flexible enough to meet any of the given
sample output
Your source code outout must be identical to any of the given sample outout
It means you have to strictly follow what are the displayed text, labels, casing of
characters in the sample output
OUTPUT 1:
Transcribed Image Text:2. Task 1: Using if... else statement Get three exam grades from the user and compute the average of the grades. Output the average of the three exams. Together with the average, also include a Remark: Passed in the output if the average is greater than or equal to 70, otherwise output Remark: Failed. NOTE: Your source code must display any of the given sample output below. It means your source code should be flexible enough to meet any of the given sample output Your source code outout must be identical to any of the given sample outout It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output OUTPUT 1:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr