Question: Using the code I already have below, implement this part please using c++. // if big number like 50000000000 is entered, // stop computation at
Using the code I already have below, implement this part please using c++.

// if big number like 50000000000 is entered, // stop computation at 35000000 if user enters character s, then ask for input again
#include
#define PI 3.14
using namespace std;
int main(){ // for the program to keep executing until control + c is pressed, or 'q' is entered bool done = false; string choice; string input;
while(!done){
std::cout
// user input cin >> choice;
if(choice == "q"){ break; }else{
int input = atoi(choice.c_str()); // Converting string to integer
string validate;
// else if(validate == "s"){ // std::cout
std::cout
double calculatePi; calculatePi= sqrt(PI);
std::cout
} } }
Design and implement your program so that users can stop any computation in the middle by entering 's'. Your program will stop gracefully the current computation and display the prompt: Please enter an integer or q' to quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
