1. Engineering
  2. Computer Science
  3. quotmonths quot...

Question: quotmonths quot...

Question details

Months. << setw(6) U)E days << endl << months << endl; cout < Years: setw(6) years endl; return 0; 8. Stadium Seating (9 points) There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. Format your dollar amount in fixed-point notation, with two decimal places of precision, and be sure the decimal point is always displayed 9. Male and Female Percentages (9 points) Write a program that asks the user for the number of males and the number of females registered in a class. The program should display the in the class. Hint: Suppose there are 8 males and 12 females in a class. There are 20 students in the class. The percentage of males can be calculated as 8 + 20-04, or 40% The percentage of females can be calculated as 12 ÷ 20 0.6, or 60%. percentage of males and females 10. Currency (7 points) Write a program that will convert U.S. dollar amounts to Japanese yen and to euros, storing the conversion factors in the constants YEN PER DOLLAR and EUROS PER DOLLAR. To get the most up-to-date exchange rates, search the Internet using the term currency exchange rate If you cannot find the most recent exchange rates, use the following: IDollar 98.93 Yern
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution