
//*********************** Preprocessor Directives *********************
#include <fstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
#include <stdlib.h>

// Namespace
using namespace std;
//******************************* main ********************************//

int main()

{									//Declaration Section

const double TAX_RATE = 0.07,
 			 COST_REPRINT = 0.50;



		int num_reprint, 
		num_photos, // num_photos * num_reprint ;
		tot_reprint , // tot_reprint * cost_reprint ;
 		tax_amt, // tot_cost * TAX_RATE ;
		tot_cost; // cost_reprint + tax_amt ;
       char name[30], // Customer Name (first and last) ;
	 date [12] ; // format mm/dd/yyyy ;
	


//********************* input section ************************** //

system ("cls");                                             
	cout << "Customer Name: " ; 
	cin.getline(name, (sizeof(name) - 1)) << endl;
    cin>> ws;
    cout << "Date of Order: " ;
    cin.getline(date, (sizeof(date) - 1)) << endl;
    cout << "Number of Photos: " 
	;cin >> num_photos;
    cout << "Number of Reprint: ";
    cin >> num_reprint;
                                        //process sectin
num_photos = num_photos * num_reprint ;
tot_reprint = tot_reprint * COST_REPRINT ;
tax_amt = tot_cost * TAX_RATE ;
tot_cost = COST_REPRINT + tax_amt ;

                               // output section
system("cls");
cout << setiosflags(ios::showpoint | ios::fixed) << setprecision (2) << fixed;
cout << "More Prints Studio" << endl;
cout << "~~~~~~~~~~~~~~~~~~~~~~~~~" << endl << endl;
cout << "Customer Name" <<name << endl << endl;
cout << "Order Date " << date << endl << endl;
cout << "Reprint Cost " << COST_REPRINT << endl;
cout << "Tax Amount " << tax_amt << endl;
cout << "Total Cost " << tot_cost << endl;

cout << endl << endl; //provides blank line before pause display message
system("pause");
return 0;
}
