blob: 9fe9a00f7a9642d487e68b31eecb2158853b6a37 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
// Lab2Ansari.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
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
float money = 123.45;
float raise;
cout << "You have $";
cout << money << endl;
cout << "enter percent raise: ";
cin >> raise;
money = money * raise;
cout << "After your raise you have $";
cout << money << endl;
*/
/*
* Page 100 #1
float personTemp;
cout << "Enter your temperature: " << endl;
cin >> personTemp;
cout.setf(ios::fixed);
cout << setw(6) << setprecision(1) << personTemp << endl;
*/
/*
int age = 18;
int daysInYears = 365;
cout << age * daysInYears;
*/
//char ascii = 67;
//cout << ascii << '\n';
//ascii = 43;
//cout << ascii << '\n';
//cout << ascii << '\n';
//return 0;
|