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: 63% (11 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
-
Kens Bicycle Shop sells mountain bikes. For purposes of a cost-volume-profit Gals the shop owner o 7 Multiple Products has divided sales into two categories, as follows: co) ) Product Category Sales...
-
Why would the members of a NOT work independently if they were members of a designated team? What does independently mean in this context? LO6
-
Trotter Enterprises, Inc., has gathered the following data to plan for its cash requirements and short-term investment opportunities for October, November, and December. All amounts are shown in...
-
Flush Mate Co. wholesales bathroom fixtures. During the current fiscal year, Flush Mate Co. received the following notes: Date Face Amount Interest Rate Term 1. Mar. 6 $82,000 6% 45 days 2. Apr. 23...
-
The following pseudocode describes how to turn a string containing a ten-digit phone number (such as "4155551212") into a more readable string with parentheses and dashes, like this: "(415)...
-
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 < <...
-
Make up a radical equation that has an extraneous solution.
-
Activity 1.4: When Less Becomes More For this activity, refer to the images shown. This is an activity which was performed for you if you do not have available two identical mirrors at home. But if...
-
! Required information [The following information applies to the questions displayed below.] Aces Incorporated, a manufacturer of tennis rackets, began operations this year. The company produced...
-
During the early part of winter, one morning, two hunters decided to go quail hunting on a property where the owner had given them permission to hunt. A nearby forest ranger saw the hunters and...
-
Required information [The following information applies to the questions displayed below.] Trini Company set the following standard costs per unit for its single product. Direct materials (30 pounds...
-
A horticulturist knows that the weights of honeybees that have previously visited her orchard are normally distributed with a mean of 0.87 grams, and a population standard deviation of 0.15 grams....
-
Karane Enterprises, a calendar-year manufacturer based in College Station, Texas began business in 2019. In the process of setting up the business, Karane has acquired various types of assets. Below...
-
On August 31, 2012, the balances of the accounts appearing in the ledger of Wood Interiors Company, a furniture wholesaler, are as follows:Prepare the August 31, 2012, closing entries for Wood...
-
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...
-
firm purchased a new piece of equipment with an estimated useful life of eight years. The cost of the equipment was $65,000. The salvage value was estimated to be $10,000 at the end of year 8. Using...
-
On an average day, a company writes checks totaling $1,500. These checks take 7 days to clear. The company receives checks totaling $1,800. These checks take 4 days to clear. The cost of debt is 9%....
-
Olds Company declares Chapter 7 bankruptcy. The following are the book values of the asset and liability accounts at that time. A bankruptcy expert estimates that administrative expense will total $...
Study smarter with the SolutionInn App