Use the code shown in Figure 6-33 to answer What will the code in Figure 6-33 display
Question:
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 7?
a. Janet
b. Jerry
c. Mark
d. Sue
Transcribed Image Text:
if (id -- '8') cout <« "Janet"; '2' || id cout << "Mark"; (.6. else if (id = '9') else if (id '7') cout <« "Jerry"; else cout <« "Sue"; //end if Figure 6-33
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 25% (8 reviews)
Answered By
Sufiyan Ahmed Tariq
I am a Chartered Accountant and an Associate Public & Finance Accountant. I also hold a bachelors of Commerce degree. I have over 8 years of experience in accounting, finance and auditing. Through out my career, I have worked with many leading multinational organisation.
I have helped a number of students in studies by teaching them key concepts of subjects like accounting, finance, corporate law and auditing. I help students understanding the complex situation by providing them daily life examples.
I can help you in the following subject / areas:
a) Accounting;
b) Finance;
c) Commerce;
d) Auditing; and
e) Corporate Law.
4.90+
7+ Reviews
17+ 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-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 switch (id) { case 8: cout < <...
-
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...
-
Use the code shown in Figure 6-32 to answer > number; cout" style="" class="fr-fic fr-dib"> If the user enters the number 1000, what value will be in the number variable after the selection structure...
-
. Suppose that the city of New York issues bonds to raise money to pay for a new tunnel linking New Jersey and Manhattan. An investor named Susan buys one of the bonds on the same day that the city...
-
Show that the sum of the first n even positive integers is n + n2, using formulas in this section.
-
How do emerging technologies, such as blockchain-based distributed ledger systems and decentralized finance (DeFi) protocols, revolutionize the landscape of Electronic Funds Transfer (EFT) by...
-
Describe various principles identified in the medical code of ethics.
-
Portman Industries just paid a dividend of $2.16 per share. Portman expects dividends to grow by 12% over the next year. The next year, the dividend is expected to grow at a constant rate of 2.4% per...
-
Compare and contrast expert lending systems with statistical credit scoring models. Discuss the strengths and weaknesses of each. Please explain the components of each system in your answer.
-
a) b) c) Find the least square solution of the following system of equations x + y = 2 x + y = 1 x - 4y = 2 x + 5y = 1. Find the projection matrix of A = r1 1 1 1-4 15 compute the projection of b =...
-
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
-
A program stores test scores in two int variables named myScore and expectedScore. Write the C++ code to compare the two scores and then display one of the following messages: I met my expectations,...
-
In which of the following cases is a CPA not subject to a penalty stemming from a position taken on a tax return? I. The position had a reasonable chance of being sustained. II. The position had a...
-
In Problems 5964, set up a definite integral that represents the area bounded by the graphs of the indicated equations over the given interval. Find the areas to three decimal places. A circle of...
-
Describe some ways in which you may have been treated by your boss that helped you become an engaged employee, a not-engaged employee, or an actively disengaged employee. How did you respond as a...
-
During President Dwight D. Eisenhowers two terms, there were _______recessions.
-
Give a definition of total quality management (TQM) and some of its uses.
-
Visit yelp.com and tripadvisor.com. Discuss the impact of the existence of these websites on organizations that provide good and poor levels of service.
-
The following are transactions recorded by Trimm Corporation during the current year. 1. Ordinary operating maintenance on equipment was recorded as follows: Equipment...
-
A bubble-point liquid feed is to be distilled as shown in Figure. Use the Edmister group method to estimate the mole-fraction compositions of the distillate and bottoms. Assume initial overhead and...
-
a. Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a double annual sales amount. Methods include a constructor that requires values for both data...
-
If you declare an integer array as follows, what is the value of num[2]? int[] num = {101, 202, 303, 404, 505, 606}; a. 101 b. 202 c. 303 d. Impossible to tell
-
a. Create a CollegeCourse class. The class contains fields for the course ID (for example, CIS 210), credit hours (for example, 3), and a letter grade (for example, A). Include get and set methods...
-
Write summary of 300 words, with references and 2 question regarding the Feminist Work and Community Education Viv Rogers The concept of community education is subject to similar confusions of...
-
Explain scanning the internal and external environment of the organization.
-
ANSWER ALL QUESTIONS 1. Illustrate and explain with examples the risk-return trade off graph of money market, foreign exchange market, bond market, equity market and derivatives market. State and...
Study smarter with the SolutionInn App