What numbers will the following code display on the computer screen? int x = 16; do {
Question:
What numbers will the following code display on the computer screen?
int x = 16;
do
{
cout << x << endl;
x -= 4;
} while (x > 10);
a. 16, 12, 8
b. 16, 12
c. 20, 16, 12, 8
d. 20, 16, 12
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 70% (10 reviews)
b...View the full answer
Answered By
Parvesh Kumar
I am an experienced Mathematics and Statistics tutor with 10 years of experience teaching students and working professionals. I love teaching students who are passionate to learn subjects or wants to understand any mathematics and statistics concept at graduation or master’s level. I have worked with thousands of students in my teaching career. I have helped students deal with difficult topics and subjects like Calculus, Algebra, Discrete Mathematics, Complex analysis, Graph theory, Hypothesis testing, Probability, Statistical Inference and more. After learning from me, students have found Mathematics and Statistics not dull but a fun subject. I can handle almost all curriculum of mathematics. I did B.Sc (mathematics), M.Sc (mathematics), M.Tech (IT) and am also Gate (CS) qualified. I have worked in various college and school and also provided online tutoring to American and Canadian students. I look forward to discussing with you and make learning a meaningful and purposeful
5.00+
4+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
What numbers will the following code display on the computer screen? int x = 0; do { cout < < x < < endl; x += 1; } while (x < 5); a. 0, 1, 2, 3, 4 b. 0, 1, 2, 3, 4, 5 c. 1, 2, 3, 4 d. 1, 2, 3, 4, 5
-
What numbers will the following code display on the computer screen? int total = 1; do { total += 2; cout < < total < < endl; } while (total
-
What number will the following code display on the computer screen? int sum = 0; int y = 0; do { for (int x = 1; x
-
Financial statements for the ACTACTSTAT Company are given below: During 2021 the firm declared and paid cash dividends of P85,000. There were 50,000 shares of common stock outstanding throughout the...
-
Experiment c. Consider again the data presented in Section 6.6, Exercises 1-4, Find the median and the mode, and compare with the expectation. When is the median greater than the expectation?...
-
A parallel-plate capacitor is constructed using a dielectric material whose dielectric constant is 3.00 and whose dielectric strength is 2.00 x 108 V/m. The desired capacitance is 0.250 F, and the...
-
Each contributed \($50,000\) cash to start the business and received 4,000 shares of capital. The store completed its first year of operations on December 31, 2011. On that date, the following...
-
Louis Welch is general manager of United Tanning Salons. During 2012, Welch worked for the company all year at a $6,200 monthly salary. He also earned a yearend bonus equal to 10% of his salary....
-
1. Which one of the following is a refundable credit? A) earned income credit B) adoption credit C) lifetime learning credit D) credit for the elderly and disabled 2. If a taxpayer's AGI is greater...
-
The following are several figures reported for Allister and Barone as of December 31, 2021: Allister acquired 90 percent of Barone in January 2020. In allocating the newly acquired subsidiarys fair...
-
If necessary, create a new project named Advanced27 Project, and save it in the Cpp8\Chap07 folder. Enter the C++ instructions shown earlier in Figure 7-11 into a source file named Advanced27.cpp....
-
Complete a desk-check table for the code shown in Figure 8-21. What will the code display on the computer screen? What value causes the nested loop to end? What value causes the outer loop to end?...
-
The annual incomes for a sample of 200 first-year accountants were recorded. Summarize these data using a graphical method. Describe your results.
-
Compare and contrast the most widely discussed leadership styles today include authoritarian or autocratic, democratic, transformational, transactional, servant, and laissez-faire, with a conclusion,...
-
Educational Philosophy 10 points Write a brief paper that presents your philosophy on the education of students with disabilities (i.e., your thoughts about access and inclusion in public schools,...
-
Compare and contrast nonprofit management with for-profit business management. In your view, what are the three most important differences that effective managers should be aware of?
-
Case Study:The Condescending Dental Hygienist Dr. Rose, a 65-year-old woman, goes to her six month appointment for a dental cleaning. Upon arrival, the receptionist requests her insurance card,...
-
Two teams are competing in a tug-of-war in which the winner must pull the losing team 4.0 m towards them. The mass of the team on the right is 444 kg and the team pulls with a net force of 7420 N....
-
An airplane flying at 550 miles per hour has a bearing of 52. After flying for 1.5 hours, how far north and how far east will the plane have traveled from its point of departure?
-
Element compound homogeneous mixture (heterogeneous mixture) 4) A piece of gold has a mass of 49.75 g. What should the volume be if it is pure gold? Gold has a density of 19.3 g/cm (3 points) D=m/v...
-
Which of the following calculates the monthly payment (expressed as a positive number) for a loan of $10,000 for 2 years with a 3.5% annual interest rate? a. Financial.Pmt(0.035, 2, 10000) b....
-
To make the btnCalc control the default button, you need to set the _____________________ property. a. btnCalcs AcceptButton b. btnCalcs DefaultButton c. forms AcceptButton d. forms DefaultButton
-
If a list boxs Sorted property is set to False, how will the numbers 4, 35, 3, 1, and 12 be displayed in the list box? a. 4, 35, 3, 1, 12 b. 1, 3, 4, 12, 35 c. 1, 12, 3, 35, 4 d. 35, 12, 4, 3, 1
-
To arrive at operating cash flows, you should start with _______, _______ non-cash items and then adding or subtracting changes in working capital. gross profit, subtracting net income, subtracting...
-
Two dimensions within the project management process are a)Technical and sociocultural b)Cost and time c)Planned and unexpected d) Established and new e)Unique and reoccurring
-
A company sold $12,000 worth of bicycles with an extended warranty. The company's experience is that warranty expense averages 2% of sales. The company should: A. Recognize warranty expense at the...
Study smarter with the SolutionInn App