From f404a3a756fd5562fdb71c58fd7773c3fd245c86 Mon Sep 17 00:00:00 2001 From: JerichoBingham <91919041+JerichoBingham@users.noreply.github.com> Date: Wed, 13 Oct 2021 14:15:02 -0700 Subject: Create Lab 2 4b 5.10 --- CST116F2021-Lab2/Lab 2 4b 5.10 | 73 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 CST116F2021-Lab2/Lab 2 4b 5.10 diff --git a/CST116F2021-Lab2/Lab 2 4b 5.10 b/CST116F2021-Lab2/Lab 2 4b 5.10 new file mode 100644 index 0000000..36262f9 --- /dev/null +++ b/CST116F2021-Lab2/Lab 2 4b 5.10 @@ -0,0 +1,73 @@ +#include + +#include + +using namespace std; + +using std::endl; + +int main() + +{ + + double ProductionHours, + + PreProductionHours, + + ProductionCost, + + ProducersHours, + + PreProductionCost, + + ProducersCost, + + TotalCost, + + ProductionRate = 10, + + PreProductionRate = 50, + + ProducersRate = 20; + + cout << "Enter Production Hours: "; + + cin >> ProductionHours; + + cout << "\nEnter Pre-Production Hours: "; + + cin >> PreProductionHours; + + cout << "\nEnter Producers Hours: "; + + cin >> ProducersHours; + + ProductionCost = ProductionHours * ProductionRate; + + PreProductionCost = PreProductionHours * PreProductionRate; + + ProducersCost = ProducersHours * ProducersRate; + + TotalCost = ProductionCost + PreProductionCost + ProducersCost; + + cout << "\n\t\tCar Dealership Bill\n"; + + cout << "\n\nProduction Cost: "; + + cout << ProductionCost; + + cout << "\n\nPre-Production Cost: "; + + cout << PreProductionCost; + + cout << "\n\nProducers Cost: "; + + cout << ProducersCost; + + cout << "\n\nWeekly Total Cost: "; + + cout << TotalCost << endl; + + return 0; + +} -- cgit v1.2.3