Assignment A

Primary focus on chapter 2 Introduction to C++

Problem A1

Use the lab instructions given on the Internet at

Type a copy of the following program.
Replace the name John Smith (Jack) with your first name, last name, and, if you use one, your nickname in parentheses.
Compile it, correct any errors and execute it.
Use the following test data:
3.14159 and 2

Copy and paste the execution results under the line   /* Execution Results:

Print the completed program with the execution results.

Assignment A code