Computer Science, asked by himadrisingh58, 11 months ago

Design a class Book Mart as follows:
Class name -Book Mart
Data Member/Instance Variables
String name-stores book name
Double price-stores price of the book.
Methods/Functions :
(1)BookMart()-Default constructor to initialise data members
(2) Void input (string, double)-to store the book name and its price.
(3) Void cal ()-to calculate the price after discount where discount is given as follow:
Price Discount
<= 1000 2% of price
>1000 10% of price
(4) Void display ()-Displays the name and price after discount.
Also make a main() method calling all the above methods.​

Answers

Answered by Anonymous
8

Answer:

Book mart

Data member

DOUBLE PRICE STORE

pls mark me to brainliest

Similar questions