Question: can anyone solve this language is c++ 9. (4 points) Find programming errors in the code below. Mark clearly where an error is. Write a

can anyone solve this language is c++can anyone solve this language is c++ 9. (4 points) Find programming

9. (4 points) Find programming errors in the code below. Mark clearly where an error is. Write a short explanation why you think it is an error. You can mark at most 5 errors. If you mark 6 errors, you will lose 1 point. If you mark 7 errors, you will lose 2 points, and so on. . #include #include using namespace std; int main() { const double RATE double num: int n = 2: = 0.25: cout > num! num = RATE*num: roundValue (num, ni. return 0; } void roundValue (double num, int n) { double newNum: int intPart: newNum = num: if (num > 100) { newNum = num * pow (10.0, ni newNum = newNum + 0.55; intPart = int(newNumi newNum = double (intPart) /pow (10.0, ni } if (num = 200) { newNum = num * pow (20.0, ni newNum = newNum + 0.75; intPart = int(newNum); newNum = double (int Part) /pow (20.0, ni } cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!