Exam12

Page 1

Answer : #include <iostream> using namespace std; const int SECRET_NUM = 11213; const double PAY_RATE = 18.35; int main() { int one, two; double first, second; double hoursWorked; double paycheck; one = 18; two = 11; first = 25; second = first * 3; second = 2 * SECRET_NUM; cout << first << " " << second << SECRET_NUM << endl; hoursWorked = 65.00; paycheck = hoursWorked * PAY_RATE; cout << "Wages = " << paycheck << endl; return 0; }


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.