Question: I need a C++ Do/While Flow Chart and Execution Table for this code. #include using namespace std; int main() { double price; double rate; int
I need a C++ Do/While "Flow Chart" and "Execution Table" for this code.
#include
using namespace std;
int main() {
double price;
double rate;
int i = 1;
do {
cout << "Please enter anual membership rate ";
cin>>price;
if (price < 1)
cout<<"Error the amount cannot be less than 1, Try again ";
}while(price < 1);
do {
cout << "Please enter anual fee percent of membership rate ";
cin>>rate;
if (rate < 1)
cout<<"Error the amount cannot be less than 1, Try again ";
}while(rate < 1);
do {
cout << "Membership rate for "<
price = price + price * rate/100;
i++;
} while(i <= 6);
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
