Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BOOK-IS-MY-BEST-FRIEND, one of the leading book shops in your locality needs a program that will help them to calculate the value of the books and
- BOOK-IS-MY-BEST-FRIEND, one of the leading book shops in your locality needs a program
that will help them to calculate the value of the books and the discount.
Program should use a class Book which will have the following members.
Member variables: quantity, price, value, discount
Member Methods:
1) To read the quantity and price
2) To calculate he value of book which is price * quantity.
3) To calculate discount which is 5% of value if value <=1000 and 7.5% of
value if value >1000 and <=2000 else it is 12% of value.
Create the object of the class.
Your Program should display the value and the discount
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