Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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