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++.

Using the code I already have below, implement this part please using

// if big number like 50000000000 is entered, // stop computation at 35000000 if user enters character s, then ask for input again

#include #include #include #include #include #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

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!