Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started