What pattern of asterisks will the following code display on the computer screen? for (int x =
Question:
What pattern of asterisks will the following code display on the computer screen?
for (int x = 1; x < 3; x += 1)
{
for (int y = 1; y < 4; y += 1)
cout << “*”;
//end for
cout << endl;
} //end for
a. ***
***
b. ***
***
***
c. **
**
**
d. ***
***
***
***
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 60% (10 reviews)
Answered By
PALASH JHANWAR
I am a Chartered Accountant with AIR 45 in CA - IPCC. I am a Merit Holder ( B.Com ). The following is my educational details.
PLEASE ACCESS MY RESUME FROM THE FOLLOWING LINK: https://drive.google.com/file/d/1hYR1uch-ff6MRC_cDB07K6VqY9kQ3SFL/view?usp=sharing
3.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
-
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
-
A lightweight, rigid beam 10.0 m long is supported by a cable attached to a spring of force constant k = 8.25 kN/m as shown in Figure P12.38. When no load is hung on the beam (Fg = 0), the length L...
-
In Problems 9-30, perform the indicated operations and simplify. 12. 2y - 3y[4 - 2(y - 1)] 28. (a + b)(a2 - ab + b2) 30. [a - (2b - c)][a + (2b - c)]
-
What are the elements of a cost-volume-profit (CVP) model? Is this the best name for this type of model?
-
Arsenic in groundwater. Refer to the Environmental Science & Technology (Jan. 2005) study of the reliability of a commercial kit designed to test for arsenic in groundwater, presented in Exercise...
-
You are in your third year as internal auditor with VXI International, manufacturer of parts and supplies for jet aircraft. VXI began a defined contribution pension plan three years ago. The plan is...
-
Required information The following information applies to the questions displayed below.] The following information is departmental cost allocation with two service departments and Percentage Service...
-
The Off-Campus Playhouse adjusts its accounts every month. The following is the company's unadjusted trial balance dated September 30, current year. Additional information is provided for use in...
-
What value of x causes the loop in Review Question 5 to end? int x = 16; do { cout < < x < < endl; x -= 4; } while (x > 10); a. 0 b. 8 c. 10 d. 12
-
Chakura is sitting at a table in a bookstore, attending her book signing. Customers are standing in line waiting for her to sign their copy of her book. However, it is possible that some customers in...
-
A nearsighted student wears contact lenses to correct for a far point that is 4.00 m from her eyes. When she is not wearing her contact lenses, her near point is 20 cm. What is her near point when...
-
Company, a soft-drink vendor, has created a table of costs for three stocking decisions for three different states of nature: Alternatives States of Nature Low Demand Medium Demand High Demand Large...
-
utilizes a project scheduling software application to develop a project schedule for a construction project.
-
Kimi is a server or restaurant and relies on tips from a customers to make a living. She doesn't really enjoy her job and frequently think about quitting because she is constantly having 2% a happy...
-
What represents revenues (Inflow) and expenses (Outflow) for a healthcare organization? Your paper should include information on sources of healthcare revenue (governmental and private payers), how...
-
case study analysis should be a thoughtful write up including: 1.a brief case analysis 2.key questions and answers from the case from your unique perspective 3.a summary and/or recommendations...
-
How does a casualty loss on a business asset differ when the asset is stolen as opposed to destroyed in a fire?
-
Test your confidence in the following Project Decisions: SI. # Question 01 02 03 04 05 06 07 08 09 10 How many years did it take to construct the largest Egyptian Pyramid- Pyramid of Cheops? When was...
-
Which of the following statements is true? a. Exceptions are more serious than Errors. b. Errors are more serious than Exceptions. c. Errors and Exceptions are different but equally serious. d....
-
The method that ends the current application and returns control to the operating system is ____________. a. System.exit() b. System.done() c. System.end() d. System.abort()
-
In object-oriented terminology, you ____________ a procedure that might not Complete correctly. A. Handle B. Catch C. Try D. Encapsulate
-
Nitin is paid a base salary of $200 per week and commission at the rate of 3% for sales over $5000, 4% if his sales are over $8000, and 5% if sales are over $15,000. How much will Nitin earn in a...
-
Safa is paid a base salary of $1500 per month and a commission of 6% on all sales over $75,000. Last month, Safa's gross salary was $4440. What were her sales for the month? a$149,000 b$124,000...
-
Your regular hourly rate of pay is $15.86, and you are paid double time for all work on weekends and for any time over forty hours per week (Monday to Friday). Calculate your gross earnings for a...
Study smarter with the SolutionInn App