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

Problem 1 Design a C++program that prompt the user to select one of three televi

ID: 3906034 • Letter: P

Question

Problem 1 Design a C++program that prompt the user to select one of three television models, and provides a description of the models. The program display the model the user chooses, the description, and the price. In addition, the program:s should display a receipt for the user including TV's price, tax in dollars suppose a 11.5% of sale tax) and the total price of the purchase. If the user has a store reward card, the user will receive 40% off. The user should make a selection by model number. The user should be prompted with the following information: Model 1000: 27" 720p, $575 Model 2000: 42" 1080p, plasma TV, for $1075 Model 3000: 46 1080p LED HDTV for $1675 Display all features of the model selected. Do the solution code using a. if else if b. switch.

Explanation / Answer

Source Code:

#include <iostream>

#include <string>

using namespace std;

int main()

{

int choice;

cout << "Please select one of the TV Model 1-> Model 1000 2-> Model 2000 3->Model 3000? ";

cin>>choice;

if(choice==1)

{

cout<<" Selected Model Description Model 1000:27 720P,$575";

}

else if(choice==2)

{

cout<<" Selected Model Description Model 2000:42 1080P Plasma Tv For,$1075";

}

else

{

cout<<" Selected Model Description Model 3000:46 1080P LED TV For,$1675";

}

}

Output:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote