0% found this document useful (0 votes)
3 views2 pages

Lab Assignment 2

Uploaded by

temp81102
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Lab Assignment 2

Uploaded by

temp81102
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. To implement a simple Car/Bike Rental Management System in C++ using classes.

The system will manage rental vehicles and calculate rental charges based on the number
of days the vehicle is rented.

●​ A class named VehicleRental.


●​ Input of customer name, vehicle type (car/bike), and rental days.
●​ Calculation of rental charges based on a fixed daily rate.
●​ Display of total rental information.

2. Write a program to count the number of vowels in a string using a class.

[Link] a class BankAccount with:


Data: accountHolderName, accountNumber, balance​
Functions: createAccount(), deposit(), withdraw(), display()

[Link] design a simple Billing System using classes in C++ which takes customer details,
item rate, and quantity, and calculates the total bill including tax.

Takes customer name, item rate, and quantity as input.​

Calculates total cost including tax.​

Uses default arguments to apply tax automatically if not specified.​

Uses an inline function to print billing details quickly.

[Link] a program in c++ in which there is a class named StringEditor.​


Member functions to:

●​ Insert text at a given position.​

●​ Erase part of a string.​

●​ Replace a part of a string with new content.

User input is taken to perform operations on a string.

You might also like