Question: Write a program that can help celebrities keep track of their followers. The program will determine the number of celebrities as user input. It will

Write a program that can help celebrities keep track of their followers. The program will determine the
number of celebrities as user input. It will then ask for the names of each celebrity before displaying the
names of each celebrity and the number of followers they have.
Tasks
1) The program needs to contain the following
a. A comment header containing your name and a brief description of the program
b. At least 5 comments besides the comment header explaining what your code does
c. In the main:
i. Ask the user for the number of celebrities.
ii. Create a string array of size equal to the number.
iii. Ask the user to provide names for each index of the array.
iv. Output each name along with a random number of followers that celebrity has.
The range of followers is from 5,000 to 500,000
d. Validate for the following cases, repeat the question until the user enters a valid input:
i. Non-integer input
ii. Negative numeric input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!