Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a program that will print the message Computer Science is cool!! 10 times. Use a while loop. 2. Instead of printing 10

1. Write a program that will print the message

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Answer Certainly Heres a s... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

6. Creating: Creating something new by combining different ideas.

Answered: 1 week ago

Question

1.12 Describe the sociocultural perspective on abnormal behavior.

Answered: 1 week ago

Question

1.14 Identify four major objectives of science.

Answered: 1 week ago