Unformatted text preview: capita donations for this province. Year Province Per Capita Donation ($) 1984 4 634.56 1985 3 612.34 1986 10 601.77 1987 7 578.12 1988 3 601.44 Write a main function that produces this table. Your function should read in the start year and the length of the table. If the years entered are unreasonable (table length zero or negative, table would include a year outside of 1920 to 2003 inclusive) your function should output an error message and have the user try again, and so on, until reasonable years are entered. You may assume that input values will be numeric (i.e. you need not worry about using cin.fail()). The table produced must be formatted as shown. Columns must line up, and dollar amounts must be output with two decimal places....
View Full Document
This note was uploaded on 02/27/2010 for the course ENG ECOR taught by Professor N/a during the Spring '10 term at Carleton CA.
- Spring '10