diff options
Diffstat (limited to 'CST116F2021-Lab2')
| -rw-r--r-- | CST116F2021-Lab2/Lab 2 4b 5.10 | 73 |
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; + +} |