Question
Create a Console application for a library and name it FineForOverdueBooks. The Main( ) method asks the user to input the number of books that
Create a Console application for a library and name it FineForOverdueBooks.
The Main( ) method asks the user to input the number of books that are overdue and the number of days they are overdue. Pass those values to a method that displays the library fine, which is 10 cents per book per day for the first seven days a book is overdue, then 20 cents per book per day for each additional day.
Grading criteria
1. Create a Console application. In the Main( ) method, the user is prompted to enter the number of books that are overdue, and then the number of days they are overdue.
2. Create a user-defined method to compute the fine for overdue books. This method will receive the number of overdue books and the number of days the books are overdue as parameters from the Main( ) method. Then this method will calculate the fine and display it.
3. Compile and test the program to make sure there is no syntax error. Submit the completed program in a .zip file.
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