Suppose that alpha is an int variable. Consider the following C++ code. (3, 11) cin >>...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose that alpha is an int variable. Consider the following C++ code. (3, 11) cin >> alpha; switch (alpha 9) = alpha / 3; case 1: case 5: case 7: alpha alpha / 2; **alpha; 1 alpha L alpha break; alpha--; B (alpha/ 91 * (alpha / 9); } cout << alpha << endl; (alpha 9) * (alpha 9), What is the output if the input is 16? What is the output if the input is aº What is the output if the input is 17 4 What is the output if the input is 25? Suppose that alpha is an int variable. Consider the following C++ code. (3, 11) cin >> alpha; switch (alpha 9) = alpha / 3; case 1: case 5: case 7: alpha alpha / 2; **alpha; 1 alpha L alpha break; alpha--; B (alpha/ 91 * (alpha / 9); } cout << alpha << endl; (alpha 9) * (alpha 9), What is the output if the input is 16? What is the output if the input is aº What is the output if the input is 17 4 What is the output if the input is 25?
Expert Answer:
Answer rating: 100% (QA)
Given C code cin alpha read an int value switch on the remainder left when alpha is divided by 9 swi... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
4. Find the expected value u from the table below and calculate the values of the last column of the table. Find the standard deviation. X P(X) 2 0.1 X-P(X) 0.2 (X-)P(X) 4 0.3 1.2 6 0.4 2.4 8 0.6 1.6...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
Hussein Hage has just approached a venture capitalist for financing for his new restaurant, Bistro Sally. The lender is willing to loan Bistro Sally Inc. $240,000 at a high-risk interest rate of 9%....
-
Terrance is age 71 and retired. Beginning in 2015, he must start taking minimum distributions from his IRA account that had a balance of $150,000 as of December 31, 2014. Make these three...
-
Show that the structure constants \(f_{a b c}\) appearing in Eq. (3.3) are real if the generators of the Lie algebra are hermitian. Data from Eq. (3.3) [Xa, Xb]=ifabe Xc = [A, B] AB BA,
-
Express the following as Gamma functions. Namely, noting the form \(\Gamma(x+1)=\int_{0}^{\infty} t^{x} e^{-t} d t\) and using an appropriate substitution, each expression can be written in terms of...
-
(Term Modification without GainDebtors Entries) On December 31, 2010, the American Bank enters into a debt restructuring agreement with Barkley Company, which is now experiencing financial trouble....
-
Kanish Corporation's general ledger includes the following account balances: Contributed Surplus $12,000 Common Shares $300,000 Retained Earnings $84,000 The Contributed Surplus account arose from...
-
Robinson Products Company has two service departments (S1 and S2) and two production departments (P1 and P2). The distribution of each service departments efforts (in percentages) to the other...
-
Robert Small is a dentist. Tired of looking in peoples mouths, he attends a Wade Cook seminar on Two Bad Years and Up We Go. He becomes fascinated with Cooks stock market strategies. Small begins to...
-
Identify the four steps of an attribute sampling plan.
-
Choose five technological changes that have impacted selling and sales management. What effect have they had on selling and sales management practices?
-
Explain the idea behind Generate and Test. Why is this method described as being exhaustive ?
-
What is e-commerce? E-commerce can take place at four levels. Discuss each of the four levels.
-
Calculate the heat-removal factor for a collector having an overall heat loss coefficient of \(6 \mathrm{~W} / \mathrm{m}^{2} \mathrm{~K}\) and constructed of aluminum fins and tubes. Tube-to-tube...
-
Question 4 of 11 View Policies -/2 Current Attempt in Progress On January 2, 2020, Headland Corporation issued $2,000,000 of 10% bonds at 99 due December 31.2029. Interest on the bonds is payable...
-
Explain how two samples can have the same mean but different standard deviations. Draw a bar graph that shows the two samples, their means an standard deviations as error bars. T S
-
Harold Conners (Social Security number 785-23-9873) lives at 13234 DeMilo Drive, Houston, TX 77052, and is self-employed for 2012. He estimates his required annual estimated tax payment for 2012 to...
-
Your supervisor has asked you to research the following situation concerning Owen and Lisa Cordoncillo. Owen and Lisa are brother and sister. In May 2012, Owen and Lisa exchange business pickup...
-
Leslie is a single taxpayer who is under age 65 and in good health. For 2012, she has a salary of $23,000 and itemized deductions of $1,000. Leslie is entitled to one exemption on her tax return. a....
-
You find short time lags between deposits and withdrawals and large deposits made on Fridays. What should you suspect?
-
What are some ways to steal cash? What can help to prevent cash and check thefts?
-
What are some audit steps to catch skimming and money-laundering schemes?
Study smarter with the SolutionInn App