// >>> Yousef Rabah      >> asi3p3    Sept.14th      >>> Drawer 1602 
#include <iostream.h>
#include <iomanip>
using namespace std;

int main ()
{
	int num_of_don,many, left;
	double adad_1, adad_2, total;
	cout<<endl;
	cout<<"Welcome to Doug's Donut Den. \n";
	cout<<"Donuts are 21 cents each, 6 for $0.99 \n";
	cout<<"How many donuts would you like (500 max)? ";
	cin>>num_of_don;
	cout<<endl;
	many = num_of_don / 6;
	left = num_of_don % 6;
        adad_1 = many * 0.99;
        adad_2 = left * 0.21;
        total = adad_1 + adad_2;
	cout.setf (ios::fixed);
	cout.setf (ios::showpoint);
	cout.precision (2);
	
	cout<<many<<" half dozen (@ $0.99 per half dozen)";
	cout<<setw(4)<<adad_1<<endl;
	cout<<setw(2)<<left <<" singles (@ $0.21 each) ";
	cout<<setw(18)<<adad_2<<endl;
	cout<<setw(6)<<"  Total: "<<setw(35)<<total<<endl;
	
	cout<<endl;
	cout<<"Be sure to brush your teeth after eating them."<<endl;
	return 0;
}
/*
Welcome to Doug's Donut Den.
Donuts are 21 cents each, 6 for $0.99
How many donuts would you like (500 max)? 98

16 half dozen (@ $0.99 per half dozen) 15.84
 2 singles (@ $0.21 each)               0.42
  Total:                               16.26

Be sure to brush your teeth after eating them.

[rabahyo@quark CS35]$
*/
