PROGRAM SPECIFICATIONS WORKSHEET
DATE: ____________
PROGRAMMER:
PROGRAM: __#3______
Program Purpose -Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four_______ categories: Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete’s total yearly salary. Lawyers – 10%, Personal Assistants – 3%, Agents – 7%, and Trainers – 5% _____________________________________________________________________
Prompt the user to enter the athlete’s salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how much each is being paid, the total amount the athlete paid, and how much the athlete has left.
PAC:
|
Given Data |
Required Results |
|
Required Processing |
Solution Alternatives |
STRUCTURE CHART:
Input Fields:
|
Input Field Description |
Variable Name |
Type |
Size |
Decimal |
Error Checks / Comments |
||||||||||
Output Fields:
|
Output Field Description |
D. Other Fields: (counters, accumulators, constants, switches, headings, etc)
|
Other Field Description |
|
Algorithm |
Flowchart |