Hi guys, here is my program about a carpets company, i did the 2 menus where you can place the order, but in the case 2 i need to show the daily order, and in case 3 i have to show all the orders placed( the are separated by a raw of stars i have already created the text file. it works good, i only need to finish those two little things, can someone help me please, the program is quiet straight forward to understand
#include <iostream>
#include <cctype>
#include <cstdlib>
#include <iomanip>
#include <fstream>
using namespace std;
int main()
{
double num1=0, num2=0, num3=0,num,Totalnum1=0,Totalnum2=0,Totalnum3=0,TotalAmountofSale1=0,TotalAmountofSale2=0,TotalAmountofSale3=0,TotalQuantity=0,TotalSale=0;
int num_customers;
int sentinel=0;
const double UnitPrice1= 100, UnitPrice2= 150,UnitPrice3= 200;
double AmountofSale1=0, AmountofSale2=0, AmountofSale3=0;
double IDnum ;
int choice;
cout<<" WELCOME TO MAGIC CARPET COMPANY \n\n";
cout<<" MENU \n\n";
cout<<" \n\n";
cout<<"1. NEW ORDER \n\n";
cout<<"2. VIEW DAILY ORDERS \n\n";
cout<<"3. VIEW ALL ORDERS \n\n";
cout<<" \n\n";
cout<<" \n\n";
cout<<"4. CLOSE THE PROGRAMM \n\n";
cout<<" \n\n";
cout<<"choise an option from the list above \n\n";
cout<<" \n\n";
cout<<" \n\n";
default: cout<<"Please choose a valid item from our list\n"<<endl;
cout<<"[ press button 0 to end the programm ] \n"<<endl;
}
{
cout<<"\n";
cout<<"You have ordered:\n\n";
cout<<"\n";
cout<<left<<setw(15)<<"ITEM"<<right<<setw(10)<<"QUANTITY"<<right<<setw(15)<<"UNIT PRICE"<<right<<setw(20)<<"AMOUNT OF SALE\n"<<endl;
file1<<"TOTAL METERS-RED "<<Totalnum1<<" SALE "<<TotalAmountofSale1<<endl;
file1<<"TOTAL METERS-BLU "<<Totalnum2<<" SALE "<<TotalAmountofSale2<<endl;
file1<<"TOTAL METERS-GREEN "<<Totalnum3<<" SALE "<<TotalAmountofSale3<<endl<<endl;
file1<<"TOTAL METERS "<<TotalQuantity<<" TOTAL SALE "<<TotalSale<<endl<<endl;
break;
//*************************************************************************************************************************************************
case 4:
system("cls");
cout<<"SEE YOU TOMORROW \n\n";
break;
default:
system("cls");
cout<<"Please chose one of the options \n\n";