User input:3
Your gifts for Day 3 are:
One partridge in a pear tree
two turtle doves
three French hen
cost of day: $459.99
total cost for twelve days:
$ 101,099.96
The program has to be a looping not using printing. Data also HAS to be loaded by a text file. Also use array. NEEDED a UML of the program.
The costs of the days:
Day 1 $184.99
Day 2 $184.99, $62.50
Day 3 $184.99, $62.50, $50.00
Day 4 $184.99, $62.50, $50.00, $129.99
Day 5 $184.99, $62.50, $50.00, $129.99, $129.00
Day 6 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00
Day 7 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00, $900.00
Day 8 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00, $900.00, $7.25
Day 9 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00, $900.00, $7.25, $699.34
Day 10 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00, $900.00, $7.25, $699.34, $476.67
Day 11 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00, $900.00, $7.25, $699.34, $476.67, $220.69
Day 12 $184.99, $62.50, $50.00, $129.99, $129.00, $27.00, $900.00, $7.25, $699.34, $476.67, $220.69, $219.16
The grand total should be $101,099.96
0 comments:
Post a Comment