# Answer to Question #15561 in C++ for charisma

Question #15561

H

5. Write C++ expressions for the following algebraic expressions:

a = 12x

z = 5x + 14y + 6k

y = x(4)

g = h + 12

4k

c = a3

b(2)k(4)

28. Each of the following programs has the same errors. Locate as many as you can.

using namespace std;

int main()

{

double number1, number2, sum;

Cout << “Enter a number:”

Cin << number1;

Cout << ‘”Enter a number: “;

Cin << number2;

Number 1 + number = sum;

Cout “ The sum of the two number is “<< sum

Return 0;

29. #include <iostream >

using namespace std;

int main()

{

int number1, number2

float quotient;

cout << “ Enter two number and I will divide/n”;

cout << “the first by the second for you./n”;

cin >> number1, number 2;

quotient = float <static_cast>(number1) / number2;

cout << quotient

return 0;

Programming Challenges:

1. Miles per Gallon

Write a program that calculates a car’s gas mileage. The program should ask the user to enter the number of gallons of ga

5. Write C++ expressions for the following algebraic expressions:

a = 12x

z = 5x + 14y + 6k

y = x(4)

g = h + 12

4k

c = a3

b(2)k(4)

28. Each of the following programs has the same errors. Locate as many as you can.

using namespace std;

int main()

{

double number1, number2, sum;

Cout << “Enter a number:”

Cin << number1;

Cout << ‘”Enter a number: “;

Cin << number2;

Number 1 + number = sum;

Cout “ The sum of the two number is “<< sum

Return 0;

29. #include <iostream >

using namespace std;

int main()

{

int number1, number2

float quotient;

cout << “ Enter two number and I will divide/n”;

cout << “the first by the second for you./n”;

cin >> number1, number 2;

quotient = float <static_cast>(number1) / number2;

cout << quotient

return 0;

Programming Challenges:

1. Miles per Gallon

Write a program that calculates a car’s gas mileage. The program should ask the user to enter the number of gallons of ga

Expert's answer

Unfortunately, your question requires a lot of work and cannot be done for free.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment