[SOLVED] java program that prompts the user for their gender, age, and name

25.00 $

Categories: , Tags: , , , , , , , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon ProjectII.zip (5.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Write a java program that prompts the user in the Java console (using Scanner) or in a Dialog Box (using JOptionPane.showInputDialog)for their gender, age, and name. The program should use this information to instantiate(construct) a Person object using the Person class as template : Person.java

The program should suggest a pet based on the Person’s gender and age. You will need to use if else if statements. Make sure when displaying the Person’s name in the output to call the getName() method for the Person Object you created.

  • ProjectII.zip