Write a program to find grace marks for a student using switch. The user should enter the class obtained by the student and number of subjects he has failed in.
• If student gets 1st class and the number of subjects he failed in is greater than 3, then he does not get any grace. If the number of subjects he failed is less than or equal to 3 then grace is of 5 marks per subject
• 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. If the number of subjects he failed in is less than or equal to 2 then the grace is of 4 marks per subject.
• 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. If the number of subjects he failed is equal to 1 then the grace is of 5 marks per subject.
• If student gets 1st class and the number of subjects he failed in is greater than 3, then he does not get any grace. If the number of subjects he failed is less than or equal to 3 then grace is of 5 marks per subject
• 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. If the number of subjects he failed in is less than or equal to 2 then the grace is of 4 marks per subject.
• 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. If the number of subjects he failed is equal to 1 then the grace is of 5 marks per subject.