calculate dog age to human years netbeans java

For this assignment you must use the rules above to calculate the age of a dog in human 

years given its weight and its actual age. Your program must do the following:

1.

Display a welcome message with your name in it.

2.

Prompt the user for the name of the dog.

3.

Repeatedly prompt the user for the age of the dog until the user enters a value is 

between 1 and 16.

4.

Repeatedly prompt the user for the weight of their dog until the user enters a weight 

that is greater than zero.

5.

Display the age of the dog using the name that the user entered in step 2.

6.

Repeatedly ask the user if they want to calculate the age of another dog until the user 

answers 

Y

or 

N

.

7.

If the user enters 

Y

, go back to step 2.

8.

If the user enters 

N

, display a thank you message and exit the program.

Any time the user enters invalid input the program should display an error message before 

Tags: No tags