Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions