Question: On c# on visual studioes!! Create a Console application for a library and name it FineForOverdueBooks. The Main( ) method asks the user to input
On c# on visual studioes!!
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.
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
Get step-by-step solutions from verified subject matter experts
