aboutsummaryrefslogtreecommitdiff
path: root/Lab2Ansari/Lab2Ansari.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Lab2Ansari/Lab2Ansari.cpp')
-rw-r--r--Lab2Ansari/Lab2Ansari.cpp63
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