Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

1 That which does not kill us makes us stronger. Discuss.

Answered: 1 week ago

Question

Explain exothermic and endothermic reactions with examples

Answered: 1 week ago

Question

Write a short note on rancidity and corrosiveness.

Answered: 1 week ago

Question

15-5 How will MIS help my career?

Answered: 1 week ago