Trending ▼   ResFinder  

ISC Class XII Notes 2019 : Computer Science

6 pages, 22 questions, 0 questions with responses, 0 total responses,    0    0
Sagnik Biswas
Delhi Public School (DPS), Newtown, Kolkata
+Fave Message
 Home > sagnik_biswas >

Formatting page ...

LAB ASSIGNMENTS OF CLASS XII SL NO. Program Description Date 1 A super class Detail has been defined to store the details of a customer. Define a sub class Bill to compute the monthly telephone charge of the customer as per the chart given below: NUMBER OF CALLS RATE 1- 100 Only rental charge 101-200 60 paisa per call + rental charge 201-300 80 paisa per call + rental charge Above 300 1 rupee per call + rental charge The details of both the classes are given below: Class Name Data members name address telno rent Member functions void show() Class Name Data members n amt customer. Member functions Bill(..) data members of void cal() the charge void show() amount to be paid. : Detail : to store the name of the customer. : to store the address of the customer. : to store the phone number of the customer. : to store the monthly rental charge : Detail(..) : parameterized constructor to assign values to data members. : to display the detail of the customer. : Bill : to store the number of calls. : to store the amount to be paid by the : : parameterized constructor to assign values to both classes and to initialize amt = 0.0. : calculates the monthly telephone charge as per given above. : to display the detail of the customer and Specify the class Detail giving details of the constructor( ) and void show(). Uisng the concept of inheritance, specify the class Bill giving details of the constructor( ), void cal() and void show().

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us

 

sagnik_biswas chat