Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a small program that asks the user how many asterisks it should print out. The user responds with a number, then the program prints

Write a small program that asks the user how many asterisks it should print out. The user responds with a number, then the program prints that number of asterisks. The number of asterisks to print should be stored in a variable. Finally the program asks the user if it should start over, and repeats as many times as the user wants. The prompt to run the program again should look like the one below, and should wait at the end of the line for the user input.

Do you want go again? (y/n):

From this assignment on, all programs must include a student header. The student header showing who wrote it, the Course Name(CS Intro to blah, blah), The Course Registration Number, the modification date, and the assignment name. This is called your student header.

For example, each of my programs must include a block of comments at the top like this below where the labels (a word followed by a colon with no spaces in between):

// Name: Johnson

// Course: programming

// CRN: 30134

// Date: 5/20/2015

// Assignment: Asterisks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

Students also viewed these Databases questions

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago