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: 66% (12 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
-
( a ) The Standard Cost of Actual Consumption is 8 , 0 0 0 and Actual Cost of Actual Consumption if 8 , 6 0 0 where as the standard cost of a product if Rs . 7, 1 0 0 . Calculate Material Price and...
-
Discuss the pretrial discovery process.
-
A flat (unbanked) curve on a highway has a radius of 220.0 m. A car rounds the curve ata speed of 25.0 m/s. (a) What is the minimum coefficient of friction that will prevent sliding? (b) Suppose the...
-
You have just been hired as a new management accountant by UMW Holdings Berhad. In the past, the company has done very little in the way of budgeting and at certain times of the year has experienced...
-
A sports statistician claims that the mean winning times for Boston Marathon womens open division champions is at least 2.68 hours. The mean winning time of a sample of 30 randomly selected Boston...
-
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
-
What magnitude of net force is required to give a 135-kg refrigerator an acceleration of magnitude 1.40 m/S2?
-
The opportunity cost of spending four hours studying a review book the night before a final exam would be _____. a) the cost of the review book b) missing four hours of TV c) a higher grade on the...
-
Sunrise Restoration and Remodeling is a small, privately-owned construction business specializing in restoring residential properties that have been damaged by fires and floods. Sunrise has a few...
-
A cofferdam has been built to protect homes in a floodplain until a major channel project can be completed. The cofferdam was built for the 40-year flood event. The channel project will require 5...
-
Brazil is experiencing a collapse in business investment, rising unemployment, and falling consumer spending. Business and consumer confidence are low. a. Explain and draw a graph to illustrate the...
-
Visit www.bplans.com, https://blog.hubspot.com/marketing/marketing-plan-examples and www.howstuffworks.com/marketing-plan.htm. Review some of the sample marketing plans available on these sites.
-
In May 2015, Dudley and Eva enter into a property settlement preparatory to the dissolution of their marriage. Under the agreement, Dudley is to pay Eva $6 million in satisfaction of her marital...
-
President Lee Coone has asked you to continue planning for an integrated corporate NDAS network. Ultimately, this network will link all the offices with the Tampa head office and become the...
-
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...
-
What percentage of the American opportunity tax credit may be refundable?
-
You want to buy a house. You have $50,000 saved for the down payment and can pay $2,000 per month on the mortgage. The 30-year mortgage interest rate is 9% per year (equal to 0.75% per month). What...
-
Compute the Social Security and Medicare for Paul, Alex, and Andrea. The rates are 6 . 2 % for Social Security and 1 . 4 5 % for Medicare. Assume the Social Security limit is $ 1 4 2 , 8 0 0 and the...
Study smarter with the SolutionInn App