Use the code shown in Figure 6-34 to answer What will the code in Figure 6-34 display
Question:
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 9?
a. Janet
b. Jerry
c. Mark
d. Sue
Transcribed Image Text:
switch (id) { case 8: cout << "Janet"; break; case 2: case 7: cout << "Mark"; break; case 9: cout <« "Jerry"; break; default: cout << "Sue"; } //end switch Figure 6-34
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 73% (15 reviews)
Answered By
Muhammad Umair
I have done job as Embedded System Engineer for just four months but after it i have decided to open my own lab and to work on projects that i can launch my own product in market. I work on different softwares like Proteus, Mikroc to program Embedded Systems. My basic work is on Embedded Systems. I have skills in Autocad, Proteus, C++, C programming and i love to share these skills to other to enhance my knowledge too.
3.50+
1+ 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
-
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 9? a. Janet b. Jerry c. Mark d. Sue if (id -- '8') cout
-
Complete a desk-check table for the code shown in Figure 7-48. What will the code display on the computer screen? What value stops the loop? int num = 6; while (num >= 0) { cout > Figure 7-48
-
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...
-
Determine the equations for the voltage and instantaneous Power in the network in Figure P 9.2 4 2225 A Figure P 92
-
In Problems 1-18, perform the indicated operations and reduce answers to lowest terms. 4. 6. 8. 12. 14. 18. 18 28 42 3x +8 2x-1 4 2x2 +7x t 3 5x6 (x2) - m2 m-3- m+2
-
Aqua Systems Engineering provides consulting services to city water authorities. A recent income stateand Taxes ment revealed variable costs of $740,000 on a sales level of $1,000,000. Annual fixed...
-
The chapter mentions that regular functional managers are moving from their classic authoritarian style to a facilitative, participatory style because it is more effective. Do you think it took...
-
Suppose in problem 5 that because of currency risk, Viacom would prefer to have dollar debt, and Gaz de France would prefer to have euro debt. How could an investment bank structure a currency swap...
-
i need a detailed answer please for the sake os my revision. Thank you thats all the info i have fkr the question Q2 REVISION QUESTION This is L1 material & you need to do this in order to build on...
-
The accompanying data set contains five variables, x1, x2, x3, x4, and x5. Click here for the Excel Data File a. Subset the data set to include only x2, x3, and x4. How many missing values are there...
-
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 4? a. Janet b. Jerry c. Mark d. Sue switch (id) { case 8: cout < <...
-
What value stops the loop in Review Question 10? for (int numTimes = 1; numTimes < 10; numTimes += 2) cout < < numTimes < < endl; //end for a. 6 b. 9 c. 10 d. 11
-
Why would a manager ever want to reduce the cohesion of a work group?
-
Prepare the entries to record the transaction 2 A company has three employees, each of whom has been employed since January 1 earns $2750 per month and is paid on the last day of each month On March...
-
Pet Emporium had a robbery on the weekend in which a large amount of inventory was taken. The loss is covered completely by insurance. A physical inventory count determined that the cost of the...
-
In a test taken by a class of 50 students, the average was 1500 with a standard deviation of 40. What 2 scores capture the middle 60% of the students?
-
For questions 1-8, let P = (-2, 5) and Q = (4,8). 1. Find the distance from the point P to the point Q. 2. Find the midpoint of the line segment joining P and Q. 3. Find the slope of the line PQ. 4....
-
True/False Indicate whether the statement is true or false. ____ 1. In accounting, to value means to record a transaction or event. ____ 2. The recognition issue deals with when a business...
-
Compare and contrast the similarities and differences between like-kind exchanges and involuntary conversions for tax purposes.
-
General Electric Capital, a division of General Electric, uses long-term debt extensively. In a recent year, GE Capital issued $11 billion in long-term debt to investors, then within days filed legal...
-
a. Create a Tic Tac Toe game. In this game, two players alternate placing Xs and Os into a grid until one player has three matching symbols in a row, horizontally, vertically, or diagonally. Create a...
-
You created an application class named FullDeck that implemented a 52-element array that represented each card in a standard deck of playing cards. Now, create an enumeration that holds the four...
-
You improved a Rock Paper Scissors game played between a user and the computer. Add an enumeration that holds three values that represent ROCK, PAPER, and SCISSORS, and use it for all comparisons in...
-
7 . 4 3 Buy - side vs . sell - side analysts' earnings forecasts. Refer to the Financial Analysts Journal ( July / August 2 0 0 8 ) study of earnings forecasts of buy - side and sell - side analysts,...
-
Bond P is a premium bond with a coupon of 8.6 percent , a YTM of 7.35 percent, and 15 years to maturity. Bond D is a discount bond with a coupon of 8.6 percent, a YTM of 10.35 percent, and also 15...
-
QUESTION 2 (25 MARKS) The draft financial statements of Sirius Bhd, Vega Bhd, Rigel Bhd and Capella for the year ended 31 December 2018 are as follows: Statement of Profit or Loss for the year ended...
Study smarter with the SolutionInn App