|
|
 |
|
|
|
|
A Report for All the Parts in the Master File |
|
|
|
 |
|
|
|
|
Contains the part number
Contains the part name
Contains the job site name
Contains the number on hand |
|
|
|
 |
|
|
|
|
Remember, this report is for management. Be sure
it is written so managers can read it. |
|
|
|
|
|
|
|
|
4. You have taken a job with the IRS because you want to learn how to save on your income tax. They want you to write a toy tax computing program so that they can get an idea of your programming abilities. The program reads in the names of the members of families and each person's income, and computes the tax that the family owes. You may assume that people with the same last name who appear consecutively in the input are in the same family. The number of deductions that a family can count is equal to the number of people listed in that family in the input data. Tax is computed as follows: |
|
|
|
|
|
|
|
|
There will be no refunds, so you must check for people whose tax would be negative and set it to zero. |
|
|
|
 |
|
|
|
|
Input entries are in the following form: |
|
|
|
 |
|
|
|
|
Last name First name Total income |
|
|
|
 |
|
|
|
|
Sample Data: |
|
|
|
 |
|
|
|
|
Jones Ralph 19765.43
Jones Mary 8532.00
Jones Francis 0
Atwell Humphrey 5678.12
Murphy Robert 13432.20
Murphy Ellen 0
Murphy Paddy 0
Murphy Eileen 0
Murphy Conan 0
Murphy Nora 0 |
|
|
|
 |
|
|
|
|
Input: |
|
|
|
 |
|
|
|
|
The data as described above, with end-of-file indicating the end of the input data. |
|
|
|
 |
|
|
|
|
Output: |
|
|
|
 |
|
|
|
|
A table containing all the families, one family per line, with each line containing the last name of the family, their total income, and their computed tax. |
|
|
|
|
|
|
|
|
5. Your assignment is to write a program for a computer dating service. Clients give you their names, phone numbers, and a list of interests. Your job is to maintain lists of men and women using the service and to match up the compatible couples. |
|
|
|
|
|