1. Write a program that will print the message Computer Science is cool!! 10 times. Use...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a program that will print the message "Computer Science is cool!!" 10 times. Use a while loop. 2. Instead of printing 10 times, ask the user how many times the message should be printed. You will need to declare a variable to store the user's response and use that variable to control the loop. 3. Number each line in the output, and add a message at the end of the loop that says how many times the message was printed. So if the user enters 3, your program should print this: 1 Computer Science is cool!! 2 Computer Science is cool!! 3 Computer Science is cool!! This message is printed 3 times. 1. Write a program that will print the message "Computer Science is cool!!" 10 times. Use a while loop. 2. Instead of printing 10 times, ask the user how many times the message should be printed. You will need to declare a variable to store the user's response and use that variable to control the loop. 3. Number each line in the output, and add a message at the end of the loop that says how many times the message was printed. So if the user enters 3, your program should print this: 1 Computer Science is cool!! 2 Computer Science is cool!! 3 Computer Science is cool!! This message is printed 3 times.
Expert Answer:
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
The organizing committee for the HCC Celebrates Columbia's 50th Birthday, Inc., has planned a special event commemorating notable people originally from Columbia, MD. The committee has invited the...
-
Jack owns an initial wealth (W0) of $30. Inadvertently, he agreed to enter into the following game : - With 1/4 probability his wealth goes up to $50 - With 1/2 probability his wealth stays the same...
-
The control features of a bank account do not include: (a) having bank auditors verify the correctness of the bank balance per books. (b) minimizing the amount of cash that must be kept on hand. (c)...
-
The following are selected 2019 transactions of Darby Corporation. Sept. 1 Purchased inventory from Orion Company on account for $50,000. Darby records purchases gross and uses a periodic inventory...
-
Refer to the information in Problem 17-1A. Other information regarding Talware Networx Inc.: a. All sales are credit sales b. All credits to accounts receivable are receipts from customers. c. All...
-
Consider the methanol oxidation data in Table B.20. Perform a thorough analysis of these data. What conclusions do you draw from this analysis? x x2 3 X4 Xs y 0 454 8.8 3.90 1.30 1.1 0 474 8.2 3.68...
-
Gant Company reported net income of $157,000. It reported depreciation expense of $12,000 and accumulated depreciation of $47,000. Amortization expense was $8,000. Gant purchased new equipment during...
-
In the context of global interconnectedness, how should we approach the ethical responsibilities of individuals, corporations, and governments towards marginalized communities and vulnerable...
-
Tonys Precision Computer Centre is picking up in business, so he has decided to expand his bookkeeping system to a general journal/ledger system. The balances from June have been forwarded to the...
-
The arc length of the curve x = -y (y3), 1 y 9 is 16 3 32 co Im 8 3 3
-
Read the comments and advice of Jason Fried in the Ideas in Action feature. Respond to the following questions: A. What does Fried say about assessing writing in the hiring process? Why does he think...
-
Applying the dynamic aggregate demandaggregate supply framework we see that: a. Stabilization policy is the use of monetary and fiscal policy tools to stabilize output and inflation. i. Monetary...
-
Employee participation has retained a central role in HRM over the last two decades. It can be seen as a key component of best-practice HRM and high-commitment management leading to improved...
-
Monetary policymakers face significant challenges. To be successful, they require a. Accurate estimates of potential GDP, even when its growth trend is shifting. b. An understanding of how to cope...
-
La Quinta Ltd manufactures corrugated cardboard boxes. It competes and plans to grow by producing high-quality boxes at a low cost that are delivered to customers in a timely manner. There are many...
-
Question 4 On 1 January 2017 East owned some items of equipment with a book value of (ii) RM450,000 that had a fair value of RM570,000. These assets were originally purchased by East on 1 January...
-
When a company has a contract involving multiple performance obligations, how must the company recognize revenue?
-
Chip enters Annas office one day, saying, I think the project will be a good one, even though its taking some long hours to get started. Anna looks up from her screen and smiles. I like what youve...
-
GaiaOrganix is an organic food wholesale co-op linking producers and consumers. GaiaOrganix negotiates purchases by grocery and other stores from farmers who raise a variety of crops, such as fruits,...
-
Design an outline of a podcast for someone touring your university, college, or business. What sequence would you place the topics in? How much time would you allow for each campus or building...
-
2019. Peabody Energy Company and Arch Resources, Inc., are two titans in a now-dwindling industry. Peabody operates three mines in the Southern Powder River Basin (SPRB) in Wyoming, one of which is...
-
Beginning around 1915, Natural Products Refining Corporation (NPRC) operated a chemical plant in Jersey City, New Jersey, at which it turned chromite ore into chromium chemicals (primarily sodium...
-
When GTE Sylvania discovered it was losing market share to other television manufacturers, it developed a franchise plan that limited the number of retailers selling its product in each area....
Study smarter with the SolutionInn App