88 935
Assignments Done
97%
Successfully Done
In July 2020

# 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 &lt;&lt; &ldquo;Enter a number:&rdquo;
Cin &lt;&lt; number1;
Cout &lt;&lt; &lsquo;&rdquo;Enter a number: &ldquo;;
Cin &lt;&lt; number2;
Number 1 + number = sum;
Cout &ldquo; The sum of the two number is &ldquo;&lt;&lt; sum
Return 0;

29. #include &lt;iostream &gt;
using namespace std;

int main()
{
int number1, number2
float quotient;
cout &lt;&lt; &ldquo; Enter two number and I will divide/n&rdquo;;
cout &lt;&lt; &ldquo;the first by the second for you./n&rdquo;;
cin &gt;&gt; number1, number 2;
quotient = float &lt;static_cast&gt;(number1) / number2;
cout &lt;&lt; quotient
return 0;

Programming Challenges:
1. Miles per Gallon
Write a program that calculates a car&rsquo;s gas mileage. The program should ask the user to enter the number of gallons of ga
1
2012-09-28T07:37:25-0400
Submit it with all requirements as an assignment to our control panel and we&#039;ll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!