Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a script that asks the user to enter 3 numbers then you will output three rows of stars that corresponding to the numbers entered.
Write a script that asks the user to enter 3 numbers then you will output three rows of stars that corresponding to the numbers entered. Note the numbers entered by the user cannot greater than 20 or less than 5. The second screen shot I not acceptable since user entered 234 which is greater than 20. This page says: 10 OK Cancel OK 53xt This page says: Input not in range. Enter a number OK Cancel This page says Enter a number OK The program will output three lines of stars. With the first one 10 stars in red, second line 15 stars in yellow and the third line 12 stars in blue
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