Java program

300 pts ended
Write a JAVA program with the following: 1. Accepts user input for tracking their name, age, and gender. 2. Use a String, int, and a character to keep track of user input for a person's name, age, and gender respectively. 3. Use if statements and for loops to detect when a user enters incorrect input (when something other than an int is entered for age and something other than a character for the gender). 4. Use print statements with helpful messages to let the user know if they typed something incorrect. 5. Create a class that holds a single person's information, and use that class to create an object, 6. Make sure your class has methods for getting and setting each of the variables and any other pertinent functionality. 7. Use an array in your main program to store multiple instances of people, 8. Use file IO to write your person (or array of people) to a file and be able to load those people back into the program.

Answers (1)


    View this solution... try Chegg Study


    Start Your Free Trial