Correct the errors in the lines of code shown in Figure 5-32. The code variable has the
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 int data type.
Transcribed Image Text:
if (toupper(code) = 'x') cout << "Discontinued" < endl; %3D else cout « "How many? "; cin >> quantity; total = quantity 10; //end if Figure 5-32
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 87% (16 reviews)
if touppercode X cout ...View the full answer
Answered By
Nazrin Ziad
I am a post graduate in Zoology with specialization in Entomology.I also have a Bachelor degree in Education.I posess more than 10 years of teaching as well as tutoring experience.I have done a project on histopathological analysis on alcohol treated liver of Albino Mice.
I can deal with every field under Biology from basic to advanced level.I can also guide you for your project works related to biological subjects other than tutoring.You can also seek my help for cracking competitive exams with biology as one of the subjects.
3.30+
2+ Reviews
10+ Question Solved
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Question Posted:
Students also viewed these Computer science questions
-
Correct the errors in the lines of code shown in Figure 4-34. (The code contains eight errors.)
-
Identify and correct the errors in each of the following sets of code: a) while (c
-
Identify and correct the errors in each of the following pieces of code. [There may be more than one error in each piece of code.] a) if (age >= 65); { Console.WriteLine("Age greater than or equal to...
-
Why do countries respond differently in terms of flexibility and worklife balance to what seem similar economic pressures?
-
Let a1, a2, a3,..., an,... be a geometric sequence. In Problems 15-24, find the indicated quantities 16.a1= 32; r = -1/2; a2= ?; a3 = ?; a4 = ? 18.a1= 3; a7 = 2,187; r = 3; S7 = ? 20.a1= 240; r =...
-
Mostly cloudy Room Operating Costs $2,012.000 Depreciation Expense $964,000 Property Taxes Expense $358,000 Management Salaries $413,000 Other Operating Costs $2,361,000 Total Operating Costs...
-
Discuss the purpose of the Emergency Medical Treatment and Active Labor Act.
-
A random sample of 174 college students was asked to indicate the number of hours per week that they surf the Internet for either personal information or material for a class assignment. The sample...
-
he treasurer at Dell estimated the expected return on equity for the firm is 14.79%. The current T-bill rate is 5.90%, the expected market return is 16.61% and the market premium is 10.71%. What is...
-
Mississippi Retailers expects to make inventory purchases in the next quarter as follows: April ............................$60,000 May ..............................70,000 June...
-
A program uses a char variable named department and two double variables named salary and raise. The department variable contains one of the following letters (entered in either uppercase or...
-
Mountain Coffee wants a program that allows a clerk to enter the number of pounds of coffee ordered, the price per pound, and whether the customer should be charged a 3.5% sales tax. The program...
-
In problem, find the slope and y-intercept of each line. Graph the line. 3x + 2y = 0
-
Squid use jet propulsion for rapid escapes. A squid pulls water into its body and then rapidly ejects the water backward to propel itself forward. 1.5 kg squid (not including water mass) can...
-
Researchers often use force plates to measure the forces that \(\mathrm{BIO}\) people exert against the floor during movement. A force plate INT works like a bathroom scale, but it keeps a record of...
-
Entrance and exit ramps for freeways are often circular stretches of road. As you go around one at a constant speed, you will experience a constant acceleration. Suppose you drive through an entrance...
-
Trained dolphins are capable of a vertical leap of \(7.0 \mathrm{~m}\) straight up from the surface of the water-an impressive feat. Suppose you could train a dolphin to launch itself out of the...
-
A car coasts at a constant speed over a circular hill. Which of the free-body diagrams in Figure Q6.11 is correct? Explain. FIGURE Q6.11 A. B. C.
-
The trial balance of Mis-Match Inc. on June 30, 2017 is as follows: The following took place in July 2017: 1. Payments received from customers on account amounted to $1,320. 2. A computer printer was...
-
A simple random sample of 220 university students were asked what pasta they usually order and with which sauce. The preferences of these respondents are summarised below: Sauce Bolognese Pasta...
-
a. You designed a Card class. The class holds fields that contain a Cards value and suit. Currently, the suit is represented by a single character (s, h, d, or c). Modify the class so that the suit...
-
You created a Rock Paper Scissors game. In the game, a player entered a number to represent one of the three choices. Make the following improvements to the game: Allow the user to enter a string...
-
Create a simple guessing game, similar to Hangman, in which the user guesses letters and then attempts to guess a partially hidden phrase. Display a phrase in which some of the letters are replaced...
-
Consider the control system in Figure where v(t) is a sinusoidal disturbance, v(t)=sin(t). Compute the absolute value of the sensitivity function at w = 1 rad/s as a function of K. How must K be...
-
ABC Corporation, a growing tech company, decides to raise capital by issuing convertible debt securities. Convertible debt allows bondholders the option to convert their debt into a predetermined...
-
Design Analog and Digital IIR Bandstop filter considering pass band edge1 20kHz, stop band edges 22 kHz & 38kHz, pass band edge2 40kHz, sampling frequency 100kHz. Additionally, draw corresponding...
Study smarter with the SolutionInn App