Find solutions for your homework
engineeringcomputer sciencecomputer science questions and answersin this lab you will be creating a program that allows the user to create an estimate of the cost to build a table. this will be a menu driven program that will continue until the user specifically states that they do not want any additional estimates. requirements: this program will need to do the following: the program should display a welcome message.
#include<iostream>
using namespace std;
int main()
{
int est;
cout<<"Welcome to Estimate cost of building a table: "<<endl;
cout<<"Enter the estimate cost and press 4 to stop entering the estimates"<<endl;
if(est !=4){
for(int i=1;i<50;i++){
if(est==4){
break;
}
cout<<"\n\nCreate an estimate "<<i<<" of the cost of the table: ";
cin>>est;
}}
else{
cout<<"exiting";
}
}
Comments
Leave a comment