Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Write a C program using switch to find the grace marks for a student. The user should enter the class obtained by the student
3. Write a C program using switch to find the grace marks for a student. The user should enter the class obtained by the student and the number of subjects he has failed in. Use the following logic: a. If the student gets first class and the number of subjects he failed in is greater than 3, then he does not get any grace. Otherwise the grace is of 5 marks per subject. b. If the student gets second class and the number of subjects he failed in is greater than 2, then he does not get any grace. Otherwise the grace is of 4 marks per subject. c. If the student gets third class and the number of subjects he failed in is greater than 1, then he does not get any grace. Otherwise the grace is of 5 marks per subject
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started