< previous page page_833 next page >

Page 833
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A Report for All the Parts in the Master File
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Contains the part number
Contains the part name
Contains the job site name
Contains the number on hand
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
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:
0833-01.gif
There will be no refunds, so you must check for people whose tax would be negative and set it to zero.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Input entries are in the following form:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Last name First name Total income
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Sample Data:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
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
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Input:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
The data as described above, with end-of-file indicating the end of the input data.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Output:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
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.

 
< previous page page_833 next page >