Assignment
for CIS17 on loops:
Problem
#1: The
bank you work for runs a Holiday Club.
People give their first payment in January and make their last payment
in December. You want to print out 12
coupons for each person. Assume the
file you are reading has the following information.
1
- 5 |
Identification
Number |
6
- 30 |
Name |
31
- 36 |
Goal
(4 whole numbers and 2 decimal) |
The
coupons you print should contain the identification number and name and the
amount to paid each month which would be the goal divided by 12. Draw the complete logic flowchart to solve
this problem. If you are having
problems, use the tax bill example in my PowerPoint as a guide.
Problem
#2: Use the data described above.
The
bank now wants you to print out a list of all members of the Holiday Club. At the bottom, they want a total line with
the number of people who are members of the club and the total amount of the
goal field for all of the members. Draw
the complete logic flowchart to solve this problem.
Problem
#3: At the end of the year, you want to send
thank you cards to each of your contributors - one card for each contribution
they gave (yes I know it is a waste of postage, but…). Assume the file you are reading has the
following information:
1
- 6 |
Identification
Number |
7
- 30 |
Name |
31
- 50 |
Street
Address |
51
- 70 |
City,
State ZIP |
71
- 72 |
Number
of Contributions made |
The
cards you print should contain the name, street address, and city, state and
zip along with the number of the card: Card 1, Card 2, Card 3 etc. Draw
the complete logic flowchart to solve this problem.
Problem
#4: EXTRA CREDIT
One
of my examples on the PowerPoint Presentation has a user entering the amount
they have to pay bills and then entering their bills one at a time from the
smallest to the largest until they cannot afford to pay any more bills.
I
have decided that instead of each user running the program over when they want
to work with their bills, I want to keep running the program so that each
member of the family can take a turn paying their bills. When the last member
is done they would enter QUIT and the program would stop. Try to figure out how to modify my program
to do this.