Question: use dev c++ also please use the input from the screen shot above to test your program. Programming Problem 2 - File Name: GraceMarks.cpp Important!

 use dev c++ also please use the input from the screen

use dev c++ also please use the input from the screen shot above to test your program.

Programming Problem 2 - File Name: GraceMarks.cpp Important! Use switch statement in solving this problem. Description: Write a program to find the bonus marks of a student per subject failed. The user should enter the class taken by the student (Class 1.2 or 3) and the number of subjects he/she has failed in. Below are set of conditions to determine the bonus marks of the student for each failed subject. . If the student gets first class and the number of subjects he/she failed in is greater than 5, then he does not get any bonus. If the number of subjects he failed is less than or equal to 5 then the bonus is of 5 marks per subject. If the student gets second class and the number of subjects he failed in is greater than 4, then he does not get any bonus. If the number of subjects he failed is less than or equal to 4 then the bonus is of 4 marks per subject. If the student gets third class and the number of subjects he failed in is greater than 3, then he does not get any bonus. If the number of subjects he failed is less than or equal to 3 then the bonus is of 3 marks per subject. Input Format: First, program will display an options menu where the user can select a class from 1 to 3. [1] For the first class, [2] for the second class and [3] for the third class. Once the options menu is already displayed, the program will prompt a message asking for the class number 1, 2 or 3, right after entering the class number the program will prompt another message asking for the number of failed subject. Below is an example input for the program. Example Input: Please select your class [1] First Class [2] Second Class [3] Third Class Enter your choice: 1 Enter the number of failed subjects: 3 Example Output: If the student will get a bonus mark based on the conditions stated in the problem description display: You got 5 bonus mark per subject Total bonus mark: 15 If the student will not get a bonus mark based on the conditions stated in the problem description display: No bonus mark awarded. Example Program Execution Choose Student Class Choose Student Class Choose Student Class (1) First Class (First Class [1] First Class 12Second Class 121 Second Class [2] Second Class Enter your choice: 1 (3) Third Class [3] Third Class Enter your Choice: 2 Enter nunber of failed Subjects: 3 Enter number of failed Subjects: 3 Enter your choice: 3 Enter number of failed Subjects: 5 You got 5 bonus nark per subject. You got 4 bonus nark per subject. Total bonus nark: 15 Total bonus nark: 12 No bonus mark awarded

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!