Write a JAVA program with the following: 1. Accepts user input for tracking thei
ID: 3528251 • Letter: W
Question
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.Explanation / Answer
import javax.swing.*; public class project { public static void main(String[] args) { double totalBiweeklySalary = 0; System.out.println("Name Gender Anual Salary Bi-Weekly"); System.out.println("====================
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.