Define a Class Named Parkinglot with the Following Description : Instance Variables/Data Members: Int Vno — to Store the Vehicle Number - Computer Applications

 //Define a class named ParkingLot with the following description :

//Instance variables/data members:
//int vno — To store the vehicle number
//int hours — To store the number of hours the vehicle is parked in the parking lot
//double bill — Tb store the bill amount
//Member methods:
//void input( ) — To input and store the vno and hours.
//void calculate( ) — To compute the parking charge at the rate of Rs.3 for the first hours or part thereof, and Rs. 1.50 for each additional hour or part thereof.
//void display ( ) — To display the detail
//Write a main method to create an object of the class and call the above methods./**


















Embedding an online compiler into a website

Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post

It looks like you're using an ad blocker. We rely on ads to keep our site free, please whitelist us!

Click here to continue

Please whitelist our site to continue enjoying our content.

Whitelist | Close