Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Correct the code to properely run. #include using namespace std; int main() { const int SECRET_NUM = 11,213; const PAY_RATE = 18.35 int one, two;
Correct the code to properely run.
#include
using namespace std;
int main() {
const int SECRET_NUM = 11,213;
const PAY_RATE = 18.35
int one, two;
double first, second;
one = 18;
two = 11;
first = 25;
second = first * three;
if(second = two){ second = SECRET_NUM / 2; Secret_NUM = SECRET_NUM - 1; } else{
second = 2 * SECRET_NUM; }
SECRET_NUM = SECRET_NUM + 3;
cout << first << " " << second << SECRET_NUM << endl;
paycheck = hoursWorked * PAY_RATE
cout << "Wages = " << paycheck << endl;
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started