aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab2/Lab 2 4b 5.10
blob: 36262f94ebf0df722197e132b5a9b3c48be6bd22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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; 

}