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

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


if (toupper(code) = 'x') cout > quantity; total = quantity 10; //end if Figure 5-32

if (toupper(code) = 'x') cout < < "Discontinued" < endl; %3D else cout "How many? "; cin >> quantity; total = quantity 10; //end if Figure 5-32

Step by Step Solution

3.43 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

if touppercode X cout ... View full answer

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 Microsoft Visual C# Introduction Questions!