Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. A country club, which currently charges $2,500 peryear for membership, has an

ID: 3617789 • Letter: 1

Question

1. A country club, which currently charges $2,500 peryear for membership, has
    announced it will increase its membership fee by4% each year for the next six years.
   Write a program that uses a loop to display theprojected rates for nextsix years.         Write a program with a loop thatlets the user enter a series ofintegers.    Theuser should enter -99 tosignal the end of the series. After the numbers havebeen    entered, the program should display thelargest and smallest numbers entered. 1. A country club, which currently charges $2,500 peryear for membership, has
    announced it will increase its membership fee by4% each year for the next six years.
   Write a program that uses a loop to display theprojected rates for nextsix years.         Write a program with a loop thatlets the user enter a series ofintegers.    Theuser should enter -99 tosignal the end of the series. After the numbers havebeen    entered, the program should display thelargest and smallest numbers entered.         Write a program with a loop thatlets the user enter a series ofintegers.    Theuser should enter -99 tosignal the end of the series. After the numbers havebeen    entered, the program should display thelargest and smallest numbers entered.

Explanation / Answer


#include<iostream> using namespace std; int main() { double charges; charges=2500; cout<<"Year Charges"<<endl; for(int v=1;v<=6;v++) { cout<<v<<" S"<<charges<<endl; charges+=charges*0.04; } system("pause"); return 0; }
Write a program with a loop that lets the user enter a series of integers.    The user should enter -99 to signal the end of the series. After the numbers have been    entered, the program should display the largest and smallest numbers entered.
#include<iostream> using namespace std; int main() { int arr[100],num,index=0,min,max; do { cout<<" Enter the number (-99 for exit) : "; cin>>num; if(num==-99) break; arr[index]=num; index++; }while(num!=-99); min=arr[0]; max=arr[0]; for(int v=0;v<index;v++) { if(arr[v]<min) min=arr[v]; if(arr[v]>max) max=arr[v]; } cout<<" Minimum number you entered : "<<min; cout<<" Maximum number you entered : "<<max; system("pause"); return 0; } #include<iostream> using namespace std; int main() { double charges; charges=2500; cout<<"Year Charges"<<endl; for(int v=1;v<=6;v++) { cout<<v<<" S"<<charges<<endl; charges+=charges*0.04; } system("pause"); return 0; }
Write a program with a loop that lets the user enter a series of integers.    The user should enter -99 to signal the end of the series. After the numbers have been    entered, the program should display the largest and smallest numbers entered.
#include<iostream> using namespace std; int main() { int arr[100],num,index=0,min,max; do { cout<<" Enter the number (-99 for exit) : "; cin>>num; if(num==-99) break; arr[index]=num; index++; }while(num!=-99); min=arr[0]; max=arr[0]; for(int v=0;v<index;v++) { if(arr[v]<min) min=arr[v]; if(arr[v]>max) max=arr[v]; } cout<<" Minimum number you entered : "<<min; cout<<" Maximum number you entered : "<<max; system("pause"); return 0; } Write a program with a loop that lets the user enter a series of integers.    The user should enter -99 to signal the end of the series. After the numbers have been    entered, the program should display the largest and smallest numbers entered.
#include<iostream> using namespace std; int main() { int arr[100],num,index=0,min,max; do { cout<<" Enter the number (-99 for exit) : "; cin>>num; if(num==-99) break; arr[index]=num; index++; }while(num!=-99); min=arr[0]; max=arr[0]; for(int v=0;v<index;v++) { if(arr[v]<min) min=arr[v]; if(arr[v]>max) max=arr[v]; } cout<<" Minimum number you entered : "<<min; cout<<" Maximum number you entered : "<<max; system("pause"); return 0; } #include<iostream> using namespace std; int main() { int arr[100],num,index=0,min,max; do { cout<<" Enter the number (-99 for exit) : "; cin>>num; if(num==-99) break; arr[index]=num; index++; }while(num!=-99); min=arr[0]; max=arr[0]; for(int v=0;v<index;v++) { if(arr[v]<min) min=arr[v]; if(arr[v]>max) max=arr[v]; } cout<<" Minimum number you entered : "<<min; cout<<" Maximum number you entered : "<<max; system("pause"); return 0; }