Question: Please keep it simple. Thanks. Write a C++ program that generate PI to a user defined decimal places (No rounding) (PI is estimated as: 3.1415926535897932)

Please keep it simple. Thanks.
Write a C++ program that generate PI to a user defined decimal places (No rounding) (PI is estimated as: 3.1415926535897932) 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 4 decimal places the output should be: 3.1415 not 3.1416 Also 1. Using printf (print format) and'or setprecision(n) will not work since it will und. NO ROUNDING 2. DO NOT USE switch statement to iterate through the user selection (from 1 to 16)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
