Question: Write a program that prompts the user to enter an integer number n that is greater than 2 . If not a valid number, looping
Write a program that prompts the user to enter an integer number that is greater than If not a valid number, looping till you get a valid one. Then, use LOOPING to calculate the sum of dotsnote: have to use looping for credit USE THE STARTER CODE BELOW
This program will calculate the sum of dots with any given integer number
Please enter an integer greater than
Your number is not greater than Please enter a new number:
Your number is not greater than Please enter a new number:
Your number is not greater than Please enter a new number:
The result of dotsdots is starter code
import java.util.Scanner;
public class TestQ
public static void mainString args
System.out.printlnThis program will calculate the sum of dots
with any given integer number n;
Scanner input new Scanner
System.in;
int ;
System.out.printlnPlease enter an integer greater than ;
first, looping to get a valid number hint: use input.hasNextInt andor use while
nd use looping to calculate the sum of dots
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
