Computer Science, asked by jayanise, 9 months ago

Pls Pls answer this


1. Define a class named Book Fair with the following description:
Instance variables Data members:
String Bname - stores the name of the book.

double price-stores the price of the book.

float disc-To store discount

Member Methods:
void Input() - To input and store the name and the price of the book

void calculated() - To calculate the price after discount. Discount
is calculated as 10% off the price

void disp()-To print the name, price, discount and discounted price

Write a main method to create an object of the class and call the above member methods.​

Answers

Answered by lasiyalayush24
2

Explanation:

we create object C name .

Attachments:
Similar questions