Lab 3

The Problem

An Internet provider offers two types of services, unlimited access and limited access. For unlimited service the user pays $20 per month. The limited access user pays by the hour using the following schedule

Bills are created from a file of account records with each record stored as an integer indicating the type of account (0 for unlimited service and 1 for limited service), the users name and id as strings, and and in the case of the limited service the number of hours used that month. Create classes (limited and unlimited) that represent the different types of acount. Make them descendents of a purely virtual class Account with virtual functions read and print that read the information from the account record file and print a summary of each account that gives the users name, account number, type of account, hours used if applicable, and the total due for the month. Make sure to separate items using tabs and format the monitary amounts as dollars and cents.

Schedule for this lab