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% (20 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.
-
A financial analyst is studying the feasibility of two alternative assembly methods, manual and automated. The automated method has variable operating costs of $2.10 per unit and annual committed...
-
Are the key management and technical personnel capable, and do they have a track record in the industry within which they must compete?
-
Lindex Company uses a process costing system. The following data are available for one department for October: The department started 390,000 units into production during the month and transferred...
-
now how FIFO Perpetual Inventory The beginning inventory of merchandise at Rhodes Co. and data on purchases and sales for a three-month period ending June 30 are as follows: Number Transaction of...
-
Two signals m1 (t) and m2(1), both band-limited to 5000 Hz, aretobetransmitted simultaneously over a channel by the multiplexing scheme shown in Fig. P4.2-8. The signal at point b is the multiplexed...
-
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...
-
What are three costs of inflation that economists focus on?
-
Complete Exercises 2-B and 2-H in Writing and Analysis in the Law using what you learned in the reading and in the Seminar. Use paragraph form, use complete sentences, and make sure you use proper...
-
What is the value of a stock expected to be in 9 years if the annual dividend is expected to remain unchanged forever at $3.65, the expected rate of return is 6.9% per year, and the next dividend is...
-
Once invested IN a corporation, shareholders want their money out - they want a return on investment! John owns 2 5 % of REFUND CORP INC, which paid out a $ 5 0 , 0 0 0 distribution to him on 1 2 / 3...
-
Worksheet Financial Statement Ratios. Lowe's Companies, Inc Jan 28, 2022 and Jan. 29, 2021 Current Ratio Current Assets / Current Liabilities Acid Test Current Assets Current Liabilities (Cash + ST...
-
3. Peter Senen operates in a JIT manufacturing system. For August, Peter Senen purchased 10,000 units of raw materials at P1.00 per unit on account.What is the The journal entry to record the...
-
John (age 51 and single) has earned income of $3,000. He has $30,000 of unearned (capital gain) income. a. If he does not participate in an employer-sponsored plan, what is the maximum deductible IRA...
-
Identify Thank You mission, strategy and core competencies. Identify strategy changes that have taken place at Thank You since its founding in 2008. Your answer must in text references and must be...
-
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,...
-
An underlying asset price is at 100, its annual volatility is 25% and the risk free interest rate is 5%. A European call option has a strike of 85 and a maturity of 40 days. Its BlackScholes price is...
-
Prescott Football Manufacturing had the following operating results for 2 0 1 9 : sales = $ 3 0 , 8 2 4 ; cost of goods sold = $ 2 1 , 9 7 4 ; depreciation expense = $ 3 , 6 0 3 ; interest expense =...
-
On January 1, 2018, Brooks Corporation exchanged $1,259,000 fair-value consideration for all of the outstanding voting stock of Chandler, Inc. At the acquisition date, Chandler had a book value equal...
A Practical Text Book On Plane And Spherical Trigonometry 1st Edition - ISBN: 0554489511 - Free Book
Study smarter with the SolutionInn App