Professional Documents
Culture Documents
Computer
Computer
* Program: Project 3 *
* total sales. *
******************************************************/
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
void MainMenu();
int GetCount();
void ProcessSales();
double GetSalesData();
void MainMenu()
system ("cls");
<<
"******************************************************************************
\n\n";
GetCount()
int Count;
int GreaterThen1; // <---------- To make sure that they enter the rite amount!!
cin >> Count; // <-------- this is how many Sales people they have.
do
else
}
}while (GreaterThen1 == 1);
void ProcessSales()
int Count;
Count = GetCount();
do
cout << "Please Enter Sales Person Name (First & Last): ";
cin >> UID; // This is the loop that asks these questions
Commision = SalesGT500(WeeklySales);
Pay = DisplayPay(Commision);
else
Commision = SalesLT500(WeeklySales);
Pay = DisplayPay(Commision);
system ("cls");
MainMenu();
cout << "Sales Person: " << FirstName << " " << LastName << "\n"
<<
"******************************************************************************
\n\n\n\n\n";
Counter++;
double GetSalesData()
cout << "Please Enter Sales ID: "; // so please dont e-mail me telling me it
cin >> UID; // is pointless I know this you know this and
cout << "Please Enter Weekly Sales: "; // Any other errors with this function feel
double Commision; // This function will get the commision for the
double First500; // sales person who has more then 500 dollars in
Over500 = (WeeklySales - 500) * .15; // answer let me know by e-mailing me and if any
double Commision; // This function will get the commision for the
// Error In SalesLT500()
double pay; // This function just adds 300 the base salary of
void main ()
{
ProcessSales();
// Sugsustions for CPT234P3.cpp. this is very important if i do not know you i will not open
// your e-mail so if i don't see this or any of the above in the subject then i will not open