Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // import java.util.Scanner;
- public class University /*implements School*/{
- String universityName; //= "University of Java";
- String motto; //= "System.out.println(\"Hello World\")";
- Person[] people;
- String[] majors;
- String[] courses; //{"Computers", "Advance Physics", "Quantum Entanglement", "Parallel Programming", "Advance Algorithms", "FPGA Programming", "Hardware Design", "Embedded Systems", "Signal Processing", "Artificial Intelligence", "Bayesian Logic", "Probability"};
- // Scanner sc = new Scanner(System.in);
- //user def constructor
- public University(String a, String b) {
- // Person[] person = new Person[100];
- universityName = a;
- motto = b;
- this.majors = new String[]{"Hardware Architechture", "Information Analytics", "Quantum Computing","Undecided"};
- 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"};
- // System.out.println(courses[0] + majors[0]);
- }//end of user def constructor
- public void test() {
- System.out.println(courses[0] + majors[0]);
- }
- // /*Students*/
- // Student s0 = new Student("Billy", "Bastion", 7, 12, 1990, "Information Analytics"); //public Person(String fn, String ln, int mth, int dy, int yr){
- // Student s1 = new Student("Carol", "Danvers", 4, 9, 1992, "Quantum Computing");
- // Student s2 = new Student("Clark", "Kent", 5, 5, 1994, "Hardware Architecture");
- // Student s3 = new Student("Kara", "Zorel", 4, 13, 1989, "Hardware Architecture");
- // Student s4 = new Student("Peter", "Parker", 6, 25, 1997, "Quantum Computing");
- // Student s5 = new Student("Tony", "Stark", 2, 2, 2004, "Hardware Architecture");
- // Student s6 = new Student("Stephen", "Strange", 12, 15, 1976, "Quantum Computing");
- // Student s7 = new Student("Bruce", "Banner", 9, 9, 2000, "Undecided");
- // /*Faculty*/
- Faculty f0 = new Faculty("Bruce", "Wayne", 9, 27, 1995, courses[1]);/*, "Artificial Intelligence", "Hardware Design"*/
- // Faculty f1 = new Faculty("Diana", "Prince", 11, 5, 2006, "Hardware Design"/*, "FPGA Programming", "Embedded Systems"*/);
- // Faculty f2 = new Faculty("Barbara", "Gordon", 5, 23, 1980, "Probability"/*, "Signal Processing", "cr3"*/);
- // Faculty f3 = new Faculty("Charles", "Xavier", 11, 5, 1966, "Signal Processing"/*, "Embedded Systems", "Parallel Programming"*/);
- // implementation of methods from school interface//
- // public Student findStudent(String fn, String ln) { //display information such as: name, dob, major
- // return;
- // }
- // public Student findFaculty(String fn, String ln) {
- // return;
- // }
- // public Faculty hire(Person P) {
- // return;
- // }
- // public Student admit(Person p) {
- // return;
- // }
- // public Person[] getAllPersons() {
- // Person[] getAllPersonsOutput;
- // for(int i = 0; i < people.length; i++ ) {
- // getAllPersonsOutput = System.out.println(people[i]);
- // }
- // return getAllPersonsOutput;
- // }
- // public String[] getAllMajors() {
- // return;
- // }
- // public String[] getAllCourses() {
- // return;
- // }
- // public Person[] getStudents() {
- // Person aTempPersonArray[];
- // for (int i = 0; i < people.length; i++) {
- // aTempPersonArray = System.out.println(people[i]);
- // }
- // return aTempPersonArray;
- // }
- // public Person[] getFaculty() {
- // return;
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement