Question: 2. (10 points) Write a C++ program named hw4_2. cpp that asks the user to enter a number and then draws a line with that

2. (10 points) Write a C++ program named hw4_2. cpp that asks the user to enter a number and then draws a line with that number of stars. Then, it should ask the user if they would like to print more stars until they type anything other than a ' Y ' or ' y.' A sample run (Note that the numbers highlighted in bold are user's inputs.): Enter a number: 5 This is a line with 5 stars: Do you want to print more stars? Y Enter a number: 8 This is a line with 8 stars: Do you want to print more stars? Y Enter a number: 3 This is a line with 3 stars: Do you want to print more stars? N okay thanks, bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
