Question: Write a program that a.Prompts the user for a number between 1-50 inclusive, using a JOptionPane. b.Validates that the input is indeed between 1 and
Write a program that
a.Prompts the user for a number between 1-50 inclusive, using a JOptionPane.
b.Validates that the input is indeed between 1 and 50. If not, it keeps asking the user for a valid number.
c.Ask the user for the name of an output file. The program should create the file.
d.Write out the square of the numbers starting with the user entered the number, and up to 100.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
