diff options
| author | [email protected] <[email protected]> | 2021-10-12 21:05:37 -0700 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2021-10-12 21:05:37 -0700 |
| commit | 56948eb45177fcf1a44677dd54190daa0cb0bcdf (patch) | |
| tree | 24c5c51ea3d297f6baae2d33c18a0697a0351d58 /Lab2Ansari/Lab2Ansari.cpp | |
| parent | Contains Exercises from Lab2 document on canvas (diff) | |
| download | cst116-lab2-rayyanansari03-56948eb45177fcf1a44677dd54190daa0cb0bcdf.tar.xz cst116-lab2-rayyanansari03-56948eb45177fcf1a44677dd54190daa0cb0bcdf.zip | |
Lab2 Assignment
Diffstat (limited to 'Lab2Ansari/Lab2Ansari.cpp')
| -rw-r--r-- | Lab2Ansari/Lab2Ansari.cpp | 63 |
1 files changed, 55 insertions, 8 deletions
diff --git a/Lab2Ansari/Lab2Ansari.cpp b/Lab2Ansari/Lab2Ansari.cpp index ae9f700..9fe9a00 100644 --- a/Lab2Ansari/Lab2Ansari.cpp +++ b/Lab2Ansari/Lab2Ansari.cpp @@ -2,17 +2,64 @@ // #include <iostream> -#include <iomanip> -using namespace std; -using std::ios; - - -int main() { +using namespace std; +int main() +{ + double ProductionHours, + PreProductionHours, + ProducersHours, + ProductionCost, + PreProductionCost, + ProducersCost, + TotalCost, + PRODUCTION_RATE, + PRE_PRODUCTION_RATE, + PRODUCERS_RATE; + + + cout << "Enter Production Hours: "; + + cin >> ProductionHours; + + cout << "\nEnter Pre-Production Hours:"; + cin >> PreProductionHours; + + cout << "\nEnter Producers Hours: "; + cin >> ProducersHours; + + cout << "\nEnter Production Rate: "; + cin >> PRODUCTION_RATE; + + cout << "\nEnter Pre Production Rate: "; + cin >> PRE_PRODUCTION_RATE; + + cout << "\nEnter Producers Rate: "; + cin >> PRODUCERS_RATE; + + ProductionCost = ProductionHours * PRODUCTION_RATE; + PreProductionCost = PreProductionHours * PRE_PRODUCTION_RATE; + ProducersCost = ProducersHours * PRODUCERS_RATE; + + 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; +} - - } /* * 112-115 5.9 #5 |