Question: Correct the errors in the lines of code shown. The code variable has the char data type; the other variables have the int data type.

Correct the errors in the lines of code shown. The code variable has the char data type; the other variables have the int data type.

if (toupper(code) = 'x')

cout << "Discontinued" << endl;

else cout << "How many? ";

cin >> quantity; total = quantity * 10;

//end if With the next problem you must do the program, run it and if necessary debug it. Then submit the code and the running output.

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!