Create a C++ program that include the Fees to be paid  The book was returned on time (Yes/No) If yes, proceed to the violation fees If no, display you have no violation   The violation fee for the borrower in the occurrence of returning overdue books (1-10 days)   late 30 dollars fee (11-20 days) late 40 dollars fee (21- 25 days) late 50  dollarsfee ( 26- 31 days) late  60 dollars  fee If the borrower of the book has exceeded more than 31 days - a fee of 10 dollars per day will be added  (Violation fee for exceeding days)  Multiplied by ( Number of exceeded days) added to ( Violation fee for the 23- 31 days late)

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 7PP
icon
Related questions
Question

Create a C++ program that include the Fees to be paid 

The book was returned on time (Yes/No)

  • If yes, proceed to the violation fees
  • If no, display you have no violation

 

  1. The violation fee for the borrower in the occurrence of returning overdue books
  • (1-10 days)   late 30 dollars fee
  • (11-20 days) late 40 dollars fee
  • (21- 25 days) late 50  dollarsfee
  • ( 26- 31 days) late  60 dollars  fee

If the borrower of the book has exceeded more than 31 days

- a fee of 10 dollars per day will be added 

  • (Violation fee for exceeding days)  Multiplied by ( Number of exceeded days) added to ( Violation fee for the 23- 31 days late) 
Expert Solution
steps

Step by step

Solved in 4 steps with 10 images

Blurred answer
Knowledge Booster
Guessing the output
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage