Question: 6. (2 points) Given the following double price 30.00; double tax = 1.80; double sum; sum - price + tax; Explain in detail what the

 6. (2 points) Given the following double price 30.00; double tax

6. (2 points) Given the following double price 30.00; double tax = 1.80; double sum; sum - price + tax; Explain in detail what the last line does in terms of variables, calculations, and assignment of values. 7. (2 points) When you write an illegal C++ statement and try to compile and run the program, you will get a a compile error brun-time error c logic error d machine crash e headache (2 points) What is the value in C++) of the expression 4/2. 2? 9.(2 points) What is the value in C++) of the expression 3/2? 10. (2 points) Which data type has the largest range? a int b. float c double d. it depends on the input value 11. (2 points) About how many decimal places of accuracy does a float have a. 31 b. 12 c. 6 d. + 12. (2 points) Modify (rewrite the following instruction so that the subtraction is evaluated first

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!