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 2?
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: 55% (18 reviews)
Answered By
Hamza Amjad
Currently I am student in master degree program.from last two year I am tutring in Academy and I tought many O/A level student in home tution.
4.80+
3+ 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...
-
Why will a reduction in the real interest rate increase investment spending, other things equal?
-
Find the sum of all the even integers between 23 and 97.
-
Endeavor Corp. has provided the following sales forecast for the first half of the year: Month Sales ( in $ ) January 5 0 , 0 0 0 February 6 0 , 0 0 0 March 7 0 , 0 0 0 April 8 0 , 0 0 0 May 9 0...
-
Describe corporate ethics, the SarbanesOxley Act of 2002, and corporate compliance.
-
Ronald McDuffie purchases a new car at a cost of $14,400. He pays $3,000 down and issues an installment note payable by which he promises to pay the balance in 18 equal monthly installments, which...
-
8 areas that make up the revenue cycle of a health service provider (in this case, hospitals). 2. What is the Office of the Inspector General? What is its importance for the revenue cycle of a health...
-
On January 1, 2022, Opal Company issued $2,000,000 face value, 7%, 10-year bonds at $2,147,202. This price resulted in a 6% effective-interest rate on the bonds. Opal uses the effective interest...
-
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 if (id -- '8') cout
-
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...
-
You purchased a five-pack of new light bulbs that were recalled because 6% of the lights did not work. What is the probability that at least one of your lights is defective?
-
With a quota of 30 tons a month for the Newfoundland cod fishing industry, what is the price of Newfoundland cod fish and the quantity caught? Does overfishing occur? The figure illustrates the...
-
Compare the growth rates in Hong Kong, Korea, Singapore, Taiwan, China, and the United States. In terms of real GDP per person, how far is China behind these others?
-
Describe the procedure to add, modify and delete attributes.
-
Suppose that your mother is a real estate agent, and she has decided to automate her daily tasks using a laptop computer. Consider her potential hardware and software needs, and create a hardware and...
-
If Chris cannot buy cold-summer insurance, what is her expected wealth and what is her expected utility? Chriss wealth is $5,000 and it consists entirely of her share in a risky ice cream business....
-
Sherry Chan has just started up a small corporation that produces jewellery. She has applied for and received a government grant. The grant will automatically be renewed as long as the business shows...
-
The manager for retail customers, Katie White, wants to hear your opinion regarding one business offer she has received from an entrepreneur who is starting a mobile phone app called Easy Money. The...
-
When you place objects in order beginning with the object with the highest value, you are sorting in ____________ order. a. Descending b. Ascending c. Demeaning d. Arithmetic
-
a. Write an application containing an array of 15 String values (that are not originally in alphabetical order), and display them in ascending order. Save the file as StringSort.java. b. Write an...
-
a. The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if an ordered list contains 1, 2, 3, 4, 5, 6,...
-
For this assignment, submit the code (SQL script or document), including structure from the Data Definition Language (DDL) and the Data Manipulation Language (DML). Use these SQL Statements as a...
-
Data Manipulation Tasks a Insert 20 records into each table for testing purposes. a Delete an entire order by using the unique identifier for that order. o Update the price of a product by using the...
-
Data manipulation language (DML) provides a number of capabilities that allow you to build custom queries of existing data. What are two capabilities you might use to limit the data you select or...
Study smarter with the SolutionInn App