Question: Using Dev C++, write a program to solve the problem as stated below. Name the file LastName-A7.cpp (use your last name). Write a program that
- Using Dev C++, write a program to solve the problem as stated below. Name the file LastName-A7.cpp (use your last name).
- Write a program that will input a single integer value (all input will be exactly 8 digits long) and will store pairs of digits as individual integer values. The program will display the four 2-digit numbers as well as the average of these, each on their own line. Finally, use a switch statement to print out Grade: and then either A (>=90), B ([80..89]), C ([70..79]), D ([60..69]) or F (<60) based on the calculated average.
- Sample
- Input: 54861398
- Output:
- Sample
54
86
13
98
Avg: 62.75
Grade: D
- Sample
- Input: 64536785
- Output:
64
92
67
85
Avg: 77.00
Grade: D
- Compile the program and correct errors.
- You should have your name, assignment information, and program description in your comment header. Also add comments throughout.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
