You are on page 1of 2

Classification: Internal

ASSIGNMENT 1

Project 1:
Create an application for a mobile company. This application should accept total number of calls made
and customer plan. The application should display the total bill for the customer. Plan details are as
follows:

planA

1.1 Monthly Rental is 100

1.2 First 100 calls are free.

1.3 Call charges for calls made between 100-200 is 0.75

1.4 Call charges for calls made between 200-300 is 1.0

1.5 Call charges for calls made above 300 is 1.25

planB

1.1 Monthly Rental is 150

1.2 First 100 calls are free.

1.3 Call charges for calls made between 100-200 is 0.50

1.4 Call charges for calls made between 200-300 is 0.75

1.5 Call charges for calls made above 300 is 1.00

planA

1.1 Monthly Rental is 200

1.2 First 100 calls are free.

1.3 Call charges for calls made between 100-200 is 0.25

1.4 Call charges for calls made between 200-300 is 0.50

1.5 Call charges for calls made above 300 is 0.75

Result:

Application first displays the list of all the plans

Accepts the total number calls made for the customer

Accepts the plan ( eg planA or planB )

Displays total bill for the customer based on number of calls made and plan
Classification: Internal

Project 2:

Create a class rectangle in package "geom".

1. The class has private attributes length and width, each of which defaults to 1.

2. It should have member methods that calculate the perimeter and area of the rectangle.

3. It should have set and get functions for both length and width.

4. The set functions should verify that length and width are each floating-point number larger than 0.0
and less than 20.0.

5. Write TestRect class in package "test_geom": to create 2 rectangles & invoke setters/geters &
display perimeter & area.

You might also like