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 4?
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: 50% (8 reviews)
Answered By
Gabriela Rosalía Castro
I have worked with very different types of students, from little kids to bussines men and women. I have thaught at universities, schools, but mostly in private sessions for specialized purpuses. Sometimes I tutored kids that needed help with their classes at school, some others were high school or college students that needed to prepare for an exam to study abroud. Currently I'm teaching bussiness English for people in bussiness positions that want to improve their skills, and preparing and ex-student to pass a standarized test to study in the UK.
5.00+
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...
-
Sherene Nili manages a company that produces wedding gowns. She produces both a custom product that is made to order and a standard product that is sold in bridal salons. Her accountant prepared the...
-
Solve Problems 5-8 by factoring. 6.3x2 - 18x + 15 = 0 8. n2 = 3n
-
Superior Inc. exchanged equipment for three forklifts. The original cost of the equipment was $96,180 and had accumulated depreciation on the date of the exchange of $87,020. The fair value of the...
-
Describe the trial process.
-
The following preliminary unadjusted trial balance of Ranger Co., a sports ticket agency, does not balance: When the ledger and other records are reviewed, you discover the following: (1) the debits...
-
Discuss the 4 types of dividends.Whichof the 4 isused most often, and why?What may happen to a company's share price when dividends areannounced orpaid?Why do you think this is so?
-
Show that the sphericity and circularity for a perfect cube are given by 0.806 and 0.886 respectively.
-
How many times will the computer process the cout statement in the following code? for (int numTimes = 1; numTimes < 10; numTimes += 2) cout < < numTimes < < endl; //end for a. 0 b. 5 c. 6 d. 9
-
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 switch (id) { case 8: cout < <...
-
What basic assumption about the velocity of money transforms the equation of exchange into the quantity theory of money? Also: According to the quantity theory, what will happen to nominal GDP if the...
-
Adam Armstrong, age 60 and single, earned \(\$ 71,000\) during 2018 . He contributed \(\$ 9,000\) to the United church, paid \(\$ 16,000\) in federal income taxes, \(\$ 3,400\) in state income tax,...
-
In 2020, flow A was $1,000 billion, flow C was $250 billion, flow B was $650 billion, and flow E was $50 billion. Calculate investment. FACTOR MARKETS A ( HOUSEHOLDS FIRMS D ( GOVERNMENTS B GOODS...
-
You are residence director at Expensive Private University. Enrollment at your school has been declining because of repeated publicity about excessive drinking among the students. Last year, 23 were...
-
Hatcher Village, which operates on the calendar year, issued a 5-year, 8%, $100,000 note to the Bank of Hatcher on January 5, 20X4. The proceeds of the note were recorded in a Capital Projects Fund....
-
Is the federal government budget today in surplus or deficit?
-
Jesse dies intestate (i.e., without a will) in May 2015. Jesse's major asset is a tract of land. Under applicable state law, Jesse's property will pass to Lorena, who is his only child. In December...
-
The cash records of Holly Company show the following four situations. 1. The June 30 bank reconciliation indicated that deposits in transit total $720. During July, the general ledger account Cash...
-
Morgans Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6 shows the bonuses, which are based on full weeks worked during the season and the number of positive...
-
In each case, determine the problem and fix the program. After you correct the errors, save each file using the same filename preceded with Fix. For example, DebugNine1.java will become...
-
Create a guessing game called Does It Have Legs?, in which you think of an animal and the computer tries to guess what it is. The game continually becomes smarter as you play because you teach it how...
-
A business provides services valued at 1 1 0 0 and sends an invoice to the client. The client has promised to pay in one month. which two accounts will be affected?
-
Rushing's financial statements were finalized on March 3, 2025. Required: 1. What amount(s) if any, related to the situations described should Rushing report among current liabilities in its balance...
-
Monroe Company produces and sells three products. Information regarding these three products for 2024, the most recent year, is provided below: selling price per unit Product #1 $26 variable costs...
Study smarter with the SolutionInn App