Question: Assignment 05 Write a C++ program (named Assignment05.cpp) that generate Pl to a user defined decimal places (No rounding). (Pl is estimated as: 3.141592653589793) When

Assignment 05 Write a C++ program (named Assignment05.cpp) that generate Pl to a user defined decimal places (No rounding). (Pl is estimated as: 3.141592653589793) When you run/execute the program: as: 3.1415925358979fined 1. The user will be prompted to enter a number between 1 and 16, anything else the program exit displaying message stating not valid input 2. If the input is valid, the program will display the exact decimal places the user entered, for example: If the user entered 5 decimal places the output should be: 3.14159 not 3-14169 Also If the user entered 4 decimal places the output should be: 3.1415 not 34416 Notes 1. 2. Make sure you use proper variable and constant declaration. If the program is not outputting the correct result no credit will be given
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
