Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. // import java.util.Scanner;
  2.  
  3. public class University /*implements School*/{
  4. String universityName; //= "University of Java";
  5. String motto; //= "System.out.println(\"Hello World\")";
  6. Person[] people;
  7. String[] majors;
  8. String[] courses; //{"Computers", "Advance Physics", "Quantum Entanglement", "Parallel Programming", "Advance Algorithms", "FPGA Programming", "Hardware Design", "Embedded Systems", "Signal Processing", "Artificial Intelligence", "Bayesian Logic", "Probability"};
  9.  
  10. // Scanner sc = new Scanner(System.in);
  11.  
  12. //user def constructor
  13. public University(String a, String b) {
  14. // Person[] person = new Person[100];
  15.  
  16. universityName = a;
  17. motto = b;
  18.  
  19. this.majors = new String[]{"Hardware Architechture", "Information Analytics", "Quantum Computing","Undecided"};
  20. this.courses = new String[]{"Computers", "Advance Physics", "Quantum Entanglement", "Parallel Programming", "Advance Algorithms", "FPGA Programming", "Hardware Design", "Embedded Systems", "Signal Processing", "Artificial Intelligence", "Bayesian Logic", "Probability"};
  21. // System.out.println(courses[0] + majors[0]);
  22. }//end of user def constructor
  23. public void test() {
  24. System.out.println(courses[0] + majors[0]);
  25. }
  26. // /*Students*/
  27. // Student s0 = new Student("Billy", "Bastion", 7, 12, 1990, "Information Analytics"); //public Person(String fn, String ln, int mth, int dy, int yr){
  28. // Student s1 = new Student("Carol", "Danvers", 4, 9, 1992, "Quantum Computing");
  29. // Student s2 = new Student("Clark", "Kent", 5, 5, 1994, "Hardware Architecture");
  30. // Student s3 = new Student("Kara", "Zorel", 4, 13, 1989, "Hardware Architecture");
  31. // Student s4 = new Student("Peter", "Parker", 6, 25, 1997, "Quantum Computing");
  32. // Student s5 = new Student("Tony", "Stark", 2, 2, 2004, "Hardware Architecture");
  33. // Student s6 = new Student("Stephen", "Strange", 12, 15, 1976, "Quantum Computing");
  34. // Student s7 = new Student("Bruce", "Banner", 9, 9, 2000, "Undecided");
  35.  
  36. // /*Faculty*/
  37. Faculty f0 = new Faculty("Bruce", "Wayne", 9, 27, 1995, courses[1]);/*, "Artificial Intelligence", "Hardware Design"*/
  38. // Faculty f1 = new Faculty("Diana", "Prince", 11, 5, 2006, "Hardware Design"/*, "FPGA Programming", "Embedded Systems"*/);
  39. // Faculty f2 = new Faculty("Barbara", "Gordon", 5, 23, 1980, "Probability"/*, "Signal Processing", "cr3"*/);
  40. // Faculty f3 = new Faculty("Charles", "Xavier", 11, 5, 1966, "Signal Processing"/*, "Embedded Systems", "Parallel Programming"*/);
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. // implementation of methods from school interface//
  53.  
  54. // public Student findStudent(String fn, String ln) { //display information such as: name, dob, major
  55.  
  56.  
  57. // return;
  58. // }
  59.  
  60. // public Student findFaculty(String fn, String ln) {
  61. // return;
  62. // }
  63.  
  64. // public Faculty hire(Person P) {
  65. // return;
  66. // }
  67.  
  68. // public Student admit(Person p) {
  69. // return;
  70. // }
  71.  
  72. // public Person[] getAllPersons() {
  73. // Person[] getAllPersonsOutput;
  74.  
  75. // for(int i = 0; i < people.length; i++ ) {
  76. // getAllPersonsOutput = System.out.println(people[i]);
  77. // }
  78.  
  79. // return getAllPersonsOutput;
  80. // }
  81.  
  82. // public String[] getAllMajors() {
  83. // return;
  84. // }
  85.  
  86. // public String[] getAllCourses() {
  87. // return;
  88. // }
  89.  
  90. // public Person[] getStudents() {
  91. // Person aTempPersonArray[];
  92. // for (int i = 0; i < people.length; i++) {
  93. // aTempPersonArray = System.out.println(people[i]);
  94. // }
  95. // return aTempPersonArray;
  96. // }
  97.  
  98. // public Person[] getFaculty() {
  99. // return;
  100. // }
  101.  
  102.  
  103.  
  104.  
  105.  
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement