How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

I am looking for the solution you provided for this problem.

Customer Question

I am looking for the solution you provided for this problem.
JA: What programs and versions are you using?
Customer: I am using Visual Basic. I convert the code from Java to VB
JA: What is your ideal outcome? How can we solve this for you?
Customer: The question was to design a class named Person and its two subclasses named Student and Employee. I tried to open the link to the answers you gave.
JA: Anything else you want the programmer to know before I connect you?
Customer: no.
Submitted: 1 month ago.
Category: Programming
Expert:  LogicPro replied 1 month ago.

Hi,

Welcome

Hope you are doing well.

Zip all files; upload the zipped file to http://wikisend.com or http://ge.tt and post download link here.

What is the deadline?

Customer: replied 1 month ago.
Here is the codeit has errorspublic class person {private String name, address, phone, email;
 public person(){
 }
 public person(String name, String address, String phone, String email){
 this.name = name;
 this.address = address;
 this.phone = phone;
 this.email = email;
 }
 public String getName(){
 return name;
 }
 public void setName(String name){
 this.name = name;
 }
 public String getAddress(){
 return address;
 }
 public void setAddress(String address){
 this.address = address;
 }
 public String getPhone(){
 return phone;
 }
 public void setPhone(String phone){
 this.phone = phone;
 }
 public String getEmail(){
 return phone;
 }
 public void setEmail(String email){
 this.email = email;
 }
 @Override
 public String toString(){
 return getClass().getName() + "\n" + name;
 }
 }
public class student extends person{
  
private final String CLASS_STATUS;
 public student(String CLASS_STATUS){
 this.CLASS_STATUS =CLASS_STATUS;
 }
 public String getClassStatus(){
 return CLASS_STATUS;
 }
 }
public class employee extends person{
 private String office,salary;
 private MyDate DATE_HIRED;
 public employee(){
 }
 public employee(String office, String salary, MyDate DATE_HIRED){
 this.office = office;
 this.salary = salary;
 this.DATE_HIRED = DATE_HIRED;
 }
 public String office(){
 return office;
 }
 public void setOffice(String office){
 this.office = office;
 }
 public String getSalary(){
 return salary;
 }
 public void setSalary(String salary){
 this.salary = salary;
 }
 public MyDate getMyDate(){
 return DATE_HIRED;
 }
 }
public class MyDate{
 private int month, day, year;
  
public MyDate(int month, int day, int year){
 this.day = day;
 this.month =month;
 this.year = year;
}
 }
public class faculty extends employee {
 private String office_hours, rank;
 public faculty(){
 }
 public faculty(String office_hours, String rank){
 this.office_hours = office_hours;
 this.rank = rank;
 }
 public String getOfficeHours(){
 return office_hours;
 }
 public void setOfficeHours(String office_hours){
 this.office_hours = office_hours;
 }
 public String getRank(){
 return rank;
 }
 public void setRank(String rank){
 this.rank = rank;
 }
 }
public class staff extends employee{
 private String title;
  
public staff(){
 }
 public staff(String title){
 this.title = title;
 }
 public String getTitle(){
 return title;
 }
  
public void setTitle(String title){
 this.title =title;
 }
 }
public class test {
  
/**
 * @param args the command line arguments
 */
 public static void main(String[] args) {
  Person person = new Person("John Doe", "123 Somewhere", "***-***-****","*****@******.***");
 Person student = new Student("Mary Jane", "555 School Street", "***-***-****", "*****@******.***","junior");
 Person employee = new Employee("***** *****", "777 B Street", "***-***-****", "*****@******.***");
 Person faculty = new Faculty("Jill Johnson", "999 Park Ave", "***-***-****", "*****@******.***");
 Person staff = new Staff("Jack I. Box", "21 Jump Street", "***-***-****", "*****@******.***");
  
System.out.println(person.toString() + "\n");
 System.out.println(student.toString() + "\n");
 System.out.println(employee.toString() + "\n");
 System.out.println(faculty.toString() + "\n");
 System.out.println(staff.toString() + "\n");
 }
  
        }
}
Expert:  LogicPro replied 1 month ago.

Please provide the requirements too

Expert:  LogicPro replied 1 month ago.

there my friend?

Customer: replied 1 month ago.
I am a bit low on funds. I thought you would try running this from your end and send me the revised code.
Expert:  LogicPro replied 1 month ago.

yes. Will provide. But I need the requirements to work on it.

Provide me the requirements to send the revised code

Expert:  LogicPro replied 1 month ago.

you can post the requirements here