Write a program to calculate the Twelve Days Of Christmas. The program requests

Monday July 25, 2022

Write a program to calculate the Twelve Days Of Christmas. The program requests a integer from 1-12 and then lists the gift for tat day and the costs. the program should also calculate the total cost of all 12 days. If bad data is entered an error message SHOULD occur and no calculation should be performed. If everything is entered correctly then it should look like this: 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: $ 101099.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 $101099.96s


Get a custom answer for this and any question related to academic

Order Now
Order a Custom Paper
By placing an order, you agree to our terms & conditions