Use the code shown in Figure 6-33 to answer What will the code in Figure 6-33 display
Question:
Use the code shown in Figure 6-33 to answer
What will the code in Figure 6-33 display when the id variable contains the character 2?
a. Janet
b. Jerry
c. Mark
d. Sue
Transcribed Image Text:
if (id -- '8') cout <« "Janet"; '2' || id cout << "Mark"; (.6. else if (id = '9') else if (id '7') cout <« "Jerry"; else cout <« "Sue"; //end if Figure 6-33
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 91% (12 reviews)
Answered By
GERALD KAMAU
non-plagiarism work, timely work and A++ work
4.40+
6+ Reviews
11+ 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
-
Use the code shown in Figure 6-34 to answer What will the code in Figure 6-34 display when the id variable contains the number 2? a. Janet b. Jerry c. Mark d. Sue switch (id) { case 8: cout < <...
-
Use the code shown in Figure 6-32 to answer > number; cout" style="" class="fr-fic fr-dib"> If the user enters the number 90, what value will be in the number variable after the selection structure...
-
Use the code shown in Figure 6-32 to answer > number; cout" style="" class="fr-fic fr-dib"> If the user enters the number 1000, what value will be in the number variable after the selection structure...
-
Assume that Jimmy Cash has $2000 in his checking account at Folsom Bank and uses his checking account card to withdraw $200 of cash from the banks ATM machine. By what dollar amount did the M1 money...
-
Repeat Problem 31 for: (A) 16,4,1,... (B) 1, -3,9,... Problem 31 Find the sum of each infinite geometric sequence( if it exists) (A) 2,4,8,... (B) 2,-1/2,1/8,...
-
Does monopoly have any positive effects on the market and consumers? To what extent, if any, do these benefits outweigh the negative effects of excessive market power that a monopoly generates?
-
Explain the terms corporate negligence, respondeat superior, and independent contractor.
-
The accounting records of J.L. Home Store show these data (in millions). The shareholders are very happy with J.L.s steady increase in net income. Auditors discovered that the ending inventory for...
-
A firm has forecasted sales of $4,000 in January, $6,000 in February, and $5,500 in March. All sales are on credit. 40% is collected the month of sale and the remainder the following month. How much...
-
Consider the following details of the income statement of the McGregor Pen Company (MPC) for the year ended December 31, 20X0: Sales .. $15,900,000 Less cost of goods sold 9,450,000 Gross margin or...
-
Write the C++ code for a multiple-alternative selection structure that displays one of four different messages, depending on the number of seminar participants stored in an int variable named...
-
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...
-
In Exercises 2325, graph each equation in a rectangular coordinate system. y = 1 = |x|
-
What is the irradiance at the position of the third maximum for a single slit of width \(0.02 \mathrm{~mm}\) ?
-
Suppose Caterpillar, Inc., has 666 million shares outstanding with a share price of $73.09 and $24.41 billion in debt. If in three years, Caterpillar has 709 million shares outstanding trading for...
-
Do these numbers tell us anything about the relative size of their labor force participation rates and employment-to-population ratios? The IMF World Economic Outlook reports the following...
-
In given string "1010101010" in base2 convert it into string with base4. Do not use an extra space.
-
A friend of yours wants to launch a new breakfast cereal on the market but is unsure how to position the product. Develop a perceptual map of the breakfast cereal market, identifying brands that...
-
Save the Trees (STT) is a not-for-profit organization whose mandate is to keep our cities green by planting and looking after trees. STT is primarily funded by government grants and must comply with...
-
APC16550D UART has a clock running at18.432 MHz and its baud rate is set to 2000.Determine the HEX contents of its DLM and DLL registers. Please can you explain step by step and in detail how you get...
-
Suppose you have declared an array as follows: int[] creditScores = {670, 720, 815}; What is the value of creditScores.length? a. 0 b. 1 c. 2 d. 3
-
If a class named Student contains a method setID() that takes an int argument, and you write an application in which you create an array of 20 Student objects named scholar, which of the following...
-
A parallel array is one that ____________. a. Holds values that correspond to those in another array b. Holds an even number of values c. Is placed adjacent to another array in code d. Is placed...
-
Rundle Industries produces two electronic decoders, P and Q. Decoder P is more sophisticated and requires more programming and testing than does Decoder Q. Because of these product differences, the...
-
What financial statement, which can be reported with or separate from the income statement, includes income-related items that affect the balance sheet but are not included in net income?
-
Suppose that (an) satisfies an #0 Vn N and lim =r <1. an Prove that Clan converges and in particular an converges. (a) Show that there exists kEN such that for all nk we have lan+1 Sans where s= (b)...
Study smarter with the SolutionInn App