Define a class Bookfair.
Input book name and price of the book.
Calculate the price after discount. The discount is
calculated based on the following criteria
DISCOUNT
2% OF PRICE
PRICE
LESS THAN OR
EQUAL TO 1000
MORE THAN 1000
AND LESS THAN OR
EQUAL TO 3000
10% OF PRICE
MORE THAN 3000
15% OF PRICE
Display the mane of the book and price after the
discount
who ever answers I will mark them brainest and thank them pls pls pls
Answers
Answered by
1
Answer:
Define a class named BookFair with the following description:
Instance variables/Data members:
String Bname stores the name of the book.
double price stores the price of the book.
Member Methods:
(i) BookFair() Default constructor to initialize data members.
(ii) void Input() To input and store the name and the price of the book.
Similar questions
Hindi,
4 months ago
Math,
4 months ago
Math,
4 months ago
Math,
8 months ago
CBSE BOARD X,
11 months ago
English,
11 months ago
Social Sciences,
11 months ago