/*
Foundations 2104 Lab Section 3
*/
#include <iostream>
#include <iomanip>

using namespace std;
int main()
{
int shirtnumber;

cout.setf(ios::fixed, ios::floatfield);
cout.setf(ios::showpoint);

	cout << "How many shirts would you like?" << endl;
	cin >> shirtnumber;
if (shirtnumber < 0)
	cout << "Invalid Input:  Please enter a nonnegative integer" << endl;
else
	{
	switch(shirtnumber)
	{
		case 0: case 1: case 2: case 3: case 4:
		cout << "The cost per shirt is $12 and the total cost is $" << setprecision(2) << shirtnumber*12 << endl;
			break;
		case 5: case 6: case 7: case 8: case 9: case 10:
		cout << "The cost per shirt is $10.80 and the total cost is $" << setprecision(2) << shirtnumber*10.80 << endl;
			break;
		case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: case 20:
		cout << "The cost per shirt is $10.20 and the total cost is $" << setprecision(2) << shirtnumber*10.20 << endl;
			break;
		case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30:
		cout << "The cost per shirt is $9.60 and the total cost is $" << setprecision(2) << shirtnumber*9.60 << endl;
			break;
		default:
		cout << "The cost per shirt is $9 and the total cost is $" << setprecision(2) << shirtnumber*9 << endl;
			break;

	}
	}
}

