please solve it with Object-Oriented Programming With JAVA!

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

please solve it with Object-Oriented Programming With JAVA!

Post by answerhappygod »

please solve it with Object-Oriented Programming With JAVA!
Please Solve It With Object Oriented Programming With Java 1
Please Solve It With Object Oriented Programming With Java 1 (31.27 KiB) Viewed 45 times
Please Solve It With Object Oriented Programming With Java 2
Please Solve It With Object Oriented Programming With Java 2 (23.66 KiB) Viewed 45 times
Please Solve It With Object Oriented Programming With Java 3
Please Solve It With Object Oriented Programming With Java 3 (45.76 KiB) Viewed 45 times
Kinterfaces All + display Conference -name String -location String Conference in name String, in location String) +readPapersFromFile(in fileName String) int +savePapersintoFile(in fileName String) Paper 11 arAuth - arap 50 Paper title String -nbWords: int +Paperin title String, in nbWords int) +getSeniorFaculty in pString) Author +averageAgeOfStudents() int +youngStudents Student 11 getNbWords int Author -name String -ageint +Authorin name String in ageint) *getAge()int Faculty -Salary double position String +Faculty (in name String, in ageint, in salary double, in position String) *getPosition): String Student -opa double Studentin name String, in age int, in gpa double)

Author class: o Attributes: • name: the name of the author. age: the age of the author. o Methods: • Author (name: String, age: int): constructor .getAge(): this method returns the age of the author. Faculty class : o Attributes • salary: the salary of the faculty. . position: the position of the faculty. o Methods: • Faculty (name: String, age: int, salary: double, position: String): constructor. .getPosition(): this method returns the position of the faculty.

Student class o Attributes: .gpa: the gpa of the student Methods: Student (name: String, age: int, gpa: double): constructor. Paper class: o Attributes: .title: the title of the paper. •nbWords: the number of words of the paper. o Methods: • Paper(title: String, nbWords: int): constructor .getSeniorFaculty (p: String) this method receives a position p and returns the oldest Faculty having the position p. • averageAge Ofstudents(): This method returns the average age of all students of the paper. • youngStudents(): this method returns an array of students of the paper whose age is less or equal than the average age (the average age of all students of the paper). .getNbWords (): this method returns the number of words of the paper. Conference class: Attributes: .name: the name of the conference. • Location: the name of the city where the conference is held. o Methods: • Conference[name: String, location:String): constructor • readPapersFromFile(fileName: String);this method reads objects of type paper from the file fileName and inserts them into the array of papers of the conference. It returns the number of objects read from the file and inserted in the array. • savePapersInto File (fileName: String) this method processes all the papers of the conference. Papers containing more (or equal) than 500 words are saved into the file fileName. The remaining papers (those containing less than 500 words) are placed and returned in an array
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply