Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this assignment, you are going to create your own program. You can choose an

ID: 3595229 • Letter: F

Question

For this assignment, you are going to create your own program. You can choose any topic. Your program MUST
include the
following:

A Class Used By The Main Class That Must Have:
1. At least 3 instance variables
2. An argument and no-argument constructor
3. Getters and setters for all the instance variables
4. A toString method that display the data in the instance variables
5. 2 other methods of your choice
they must work with the instance variables and do something meaningful for your
program.

A Main Class That Must Have:
1. A user interface that is easy for the user to read and understand
2. Create at least 1 object from your other class (can use either constructor)
3. At least 3 calls of one or more of any of the Scanner methods (3 total, not 3 calls for each
method).
4. At least 1 if/else if/else or nested if/else statement.
5. At least 2 loops (can we while loops, for loops, or a mix of both)
6. At least 1 call of each of the 2 other methods of your choice.
7. At least 1 call of the toString method
8. Output that displays the result(s) of your program
Comments and Whitespace
o Comments in javadoc format

Along with your program, you will submit a PDF that acts as a user manual for your program that explains the
program’s capabilities. It must be clear and easy to understand. Include screenshots of your programs output to
help clarify your explanations.
You will also submit the HTML file of the documentation of your class created by using the Javadoc
comments.

**Class Used By The Main Class
At least 3 instance variables
*An argument and no-argument constructor
*Getters and setters for all the instance variables
*A toString method that display the data in the instance variables
*2 other methods of your choice

**Main Class
*A user interface that is easy for the user to read and understand
*Create at least 1 object from your other class (can use either constructor)
*At least 3 calls of one or more of any of the Scanner methods (3 total,
not 3 calls for each method).
*At least 1 if/else if/else or nested if/else statement.
*At least 2 loops (while loops, for loops, or a mix of both)
*At least 1 call of each of the 2 other methods of your choice.
*At least 1 call of the toString method
*Output that displays the result(s) of your program

**User Manual PDF File
**Javadoc HTML File

Explanation / Answer

The desired java program is given below:


//Person.java

public class Person {
   private String pName;
   private String pId;
   private int pAge;

   public int getAge() {
      return pAge;
   }

   public String getpName() {
      return pName;
   }

   public String getIdNum() {
      return pId;
   }

   public void setAge( int newAge) {
      pAge = newAge;
   }

   public void setpName(String newpName) {
      pName = newpName;
   }

   public void setIdNum( String newId) {
      pId = newId;
   }
}

public class Test {

   public static void main(String args[]) {
      Person per = new Person();
      per.setName("Alex");
      per.setAge(25);
      per.setIdNum("12");

      System.out.print("Person Name : " + per.getName() + " Person Age : " + per.getAge());
   }
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote