Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++image text in transcribed

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

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 Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago