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

$25

File Name: java_program_that_prompts_the_user_for_their_gender,_age,_and_name.zip
File Size: 621.72 KB

SKU: [Solved] java program that prompts the user for their gender, age, and name Category: Tag:
5/5 - (1 vote)

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 Persons gender and age. You will need to use if else if statements. Make sure when displaying the Persons name in the output to call the getName() method for the Person Object you created.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] java program that prompts the user for their gender, age, and name
$25