aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerichoBingham <[email protected]>2021-10-13 14:15:02 -0700
committerGitHub <[email protected]>2021-10-13 14:15:02 -0700
commitf404a3a756fd5562fdb71c58fd7773c3fd245c86 (patch)
treebed1d35733969990f0014fa2d3992ddcddf1dce6
parentCreate Lab 2 4b 5.9 (diff)
downloadcst116-lab2-jerichobingham-master.tar.xz
cst116-lab2-jerichobingham-master.zip
Create Lab 2 4b 5.10HEADmaster
-rw-r--r--CST116F2021-Lab2/Lab 2 4b 5.1073
1 files changed, 73 insertions, 0 deletions
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 <iostream>
+
+#include <iomanip>
+
+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;
+
+}