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)
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
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
- 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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 10 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage