Question: Write a program that will calculate and print the absence percentage of a student and will inform him/her if they have a FA in the

 Write a program that will calculate and print the absence percentage

Write a program that will calculate and print the absence percentage of a student and will inform him/her if they have a FA in the couse. . The user will entef the number of credit hours of the course The number of credit hours can be 3 or 4, if any other value is received, then the program should print a message informing the user that this is not a valid number of credit hours and the user will not be prompted to enter the number of missed classes. Ifthe entered number of credit hours is right, he program will ask the user to enter the number of missed classes. The program will not accept a number of missed classes greater than the total number of classes for each type of credit hours (25 Total Classes for a3 Credit Hour Subject and 18 Total Classes for a 4 Credit hour subject) The program will calculate the absence percentage and print it to the user. r If the absence pe rcentage is greater than or equal to 15%then a message should be printed informing the user that he/she received a FA in the course. Write the full code and make it a user friendly program) Note: The absence percentage > for a course with 3 credit hours is (Number of missed classes 25 x 100 for a course with 4 credit hours is (Number of missed classes/18)x100

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!