Assume you have a company called Rampage Seminar Inc., which offers programming seminars to companies. Your price per person depends on the number of people the company registers. (For example, if the company registers 7 people, then the total amount owed by the company is $560). Use the following charges.
1-4 $100/person
5-10 $80/person
11 or more $60/person
Less than 1 $0/person.
Write a basic program using If then else and Do loop with sub routines to print what each company owes?
Use read data statement with the following data. The program stops when it encounters an End statement.
Read nam$, numberofpersons
Data ABC company, 5
Data NBC Corporation, 7
Data XLR company, 8
Data Lucent corp, 12
Data Ameritech, 3
Data Rambo Mart, 0
Data end, 0