// Lab2Ansari.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include 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;