I have this problem I have to program with vb2005.
Write a program to calculate the 12 days of christmas. The program requests an integer from 1 to 12 and then lists the gifts for that day along with the cost. The program should also give the costs for all 12 days ($72,608.00). If bad data is supplied the program should display a message box to the user and NOT perform any calculations. If the data is good the calculations should be performed and the appropriate costs should be displayed.
The days and costs are as follows:
1 Partridge in a pear tree - $104.99
2 Turtle doves - $20.00 * 2
3 French hens - $15.00 * 3
4 Calling birds - $99.99 * 4
5 Golden rings - $65.00 *5
6 Geese a-laying - $50.00 * 6
7 Swans a-swimming - $600.00 * 7
8 Maids a-milking - $5.15 * 8
9 Ladies dancing - $508.46 * 9
10 Lords a-leaping * 403.91 * 10
11 Pipers piping - 186.65 * 11
12 Drummers drumming - 185.36 * 12
Cost for day is: X
Total cost for 12 days is : $72,608.00
Program MUST contain loops or arrays.
THANKS IN ADVANCE FOR YOUR HELP!!!!!