|
SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/
BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString method to print out the following: Instructor: Title Firstname Lastname Student Roster: //for each student print out first and last name, student ID, and grade Number of students: __ Average grade: __ Highest grade: __ Lowest grade: __ Person Class Properties and Behaviors Properties or attributes First name Last name Behaviors or methods Constructors Default no-argument constructor 2-argument constructor that sets the first and last name attributes Setter and getter methods for each attribute Student Class Properties and Behaviors (inherits Person class) Attributes Person Student ID Grade //0–100 point scale Methods Constructors Default no-argument constructor 2 Argument constructor (Person and Student ID) 3 Argument constructor (Person, Student ID, and Grade) Setter and getter methods for all attributes Create a getLetterGrade method that returns a letter grade instead of a point value: 0–59 F, 60–69 D, 70–79 C, 80–89 B, and 90–100 A Overload toString to print out the following: First name, Last name, Student ID, and Letter grade Instructor Class Properties and Behaviors (inherits Person class) Attributes Person Title (Prof or Dr.) Methods Constructors Default no-argument constructor 2-argument constructor (Person and Title) Setter and getter methods for all attributes Overload toString to print out the following: Title Firstname Lastname Additional Instructions Your program must use the following Java capabilities: Inheritance (is-a relationships) Composition (has-a relationships) Decision constructs Arrays Loops (to include at least 1 enhanced for-loop) Error handling (catch the ArrayoutofboundException) Overloaded methods and constructors Encapsulation Create a CourseTest class to demonstrate your project. Your CourseTest class must create at least 2 Course objects with different instructors and 5–10 students. Every method in every class must be demonstrated (the best way to do that is to use setter methods in your constructors to show that they work and use getter methods in your toString methods to show that they work whenever the toString method is called). You must also attempt to add an 11th student to 1 of your courses to demonstrate your try/catch implementation for ArrayoutofboundException. Run your CourseTest class and paste screen shots of the output into a Word document to show it working. Turn in the following: Word file showing the results of your test runs Source (.java) files Compiled (.class) files The deployable JAR file
|
SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/
BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString method to print out the following: Instructor: Title Firstname Lastname Student Roster: //for each student print out first and last name, student ID, and grade Number of students: __ Average grade: __ Highest grade: __ Lowest grade: __ Person Class Properties and Behaviors Properties or attributes First name Last name Behaviors or methods Constructors Default no-argument constructor 2-argument constructor that sets the first and last name attributes Setter and getter methods for each attribute Student Class Properties and Behaviors (inherits Person class) Attributes Person Student ID Grade //0–100 point scale Methods Constructors Default no-argument constructor 2 Argument constructor (Person and Student ID) 3 Argument constructor (Person, Student ID, and Grade) Setter and getter methods for all attributes Create a getLetterGrade method that returns a letter grade instead of a point value: 0–59 F, 60–69 D, 70–79 C, 80–89 B, and 90–100 A Overload toString to print out the following: First name, Last name, Student ID, and Letter grade Instructor Class Properties and Behaviors (inherits Person class) Attributes Person Title (Prof or Dr.) Methods Constructors Default no-argument constructor 2-argument constructor (Person and Title) Setter and getter methods for all attributes Overload toString to print out the following: Title Firstname Lastname Additional Instructions Your program must use the following Java capabilities: Inheritance (is-a relationships) Composition (has-a relationships) Decision constructs Arrays Loops (to include at least 1 enhanced for-loop) Error handling (catch the ArrayoutofboundException) Overloaded methods and constructors Encapsulation Create a CourseTest class to demonstrate your project. Your CourseTest class must create at least 2 Course objects with different instructors and 5–10 students. Every method in every class must be demonstrated (the best way to do that is to use setter methods in your constructors to show that they work and use getter methods in your toString methods to show that they work whenever the toString method is called). You must also attempt to add an 11th student to 1 of your courses to demonstrate your try/catch implementation for ArrayoutofboundException. Run your CourseTest class and paste screen shots of the output into a Word document to show it working. Turn in the following: Word file showing the results of your test runs Source (.java) files Compiled (.class) files The deployable JAR file
|
|
SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/
BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString method to print out the following: Instructor: Title Firstname Lastname Student Roster: //for each student print out first and last name, student ID, and grade Number of students: __ Average grade: __ Highest grade: __ Lowest grade: __ Person Class Properties and Behaviors Properties or attributes First name Last name Behaviors or methods Constructors Default no-argument constructor 2-argument constructor that sets the first and last name attributes Setter and getter methods for each attribute Student Class Properties and Behaviors (inherits Person class) Attributes Person Student ID Grade //0–100 point scale Methods Constructors Default no-argument constructor 2 Argument constructor (Person and Student ID) 3 Argument constructor (Person, Student ID, and Grade) Setter and getter methods for all attributes Create a getLetterGrade method that returns a letter grade instead of a point value: 0–59 F, 60–69 D, 70–79 C, 80–89 B, and 90–100 A Overload toString to print out the following: First name, Last name, Student ID, and Letter grade Instructor Class Properties and Behaviors (inherits Person class) Attributes Person Title (Prof or Dr.) Methods Constructors Default no-argument constructor 2-argument constructor (Person and Title) Setter and getter methods for all attributes Overload toString to print out the following: Title Firstname Lastname Additional Instructions Your program must use the following Java capabilities: Inheritance (is-a relationships) Composition (has-a relationships) Decision constructs Arrays Loops (to include at least 1 enhanced for-loop) Error handling (catch the ArrayoutofboundException) Overloaded methods and constructors Encapsulation Create a CourseTest class to demonstrate your project. Your CourseTest class must create at least 2 Course objects with different instructors and 5–10 students. Every method in every class must be demonstrated (the best way to do that is to use setter methods in your constructors to show that they work and use getter methods in your toString methods to show that they work whenever the toString method is called). You must also attempt to add an 11th student to 1 of your courses to demonstrate your try/catch implementation for ArrayoutofboundException. Run your CourseTest class and paste screen shots of the output into a Word document to show it working. Turn in the following: Word file showing the results of your test runs Source (.java) files Compiled (.class) files The deployable JAR file
|
SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/
BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString method to print out the following: Instructor: Title Firstname Lastname Student Roster: //for each student print out first and last name, student ID, and grade Number of students: __ Average grade: __ Highest grade: __ Lowest grade: __ Person Class Properties and Behaviors Properties or attributes First name Last name Behaviors or methods Constructors Default no-argument constructor 2-argument constructor that sets the first and last name attributes Setter and getter methods for each attribute Student Class Properties and Behaviors (inherits Person class) Attributes Person Student ID Grade //0–100 point scale Methods Constructors Default no-argument constructor 2 Argument constructor (Person and Student ID) 3 Argument constructor (Person, Student ID, and Grade) Setter and getter methods for all attributes Create a getLetterGrade method that returns a letter grade instead of a point value: 0–59 F, 60–69 D, 70–79 C, 80–89 B, and 90–100 A Overload toString to print out the following: First name, Last name, Student ID, and Letter grade Instructor Class Properties and Behaviors (inherits Person class) Attributes Person Title (Prof or Dr.) Methods Constructors Default no-argument constructor 2-argument constructor (Person and Title) Setter and getter methods for all attributes Overload toString to print out the following: Title Firstname Lastname Additional Instructions Your program must use the following Java capabilities: Inheritance (is-a relationships) Composition (has-a relationships) Decision constructs Arrays Loops (to include at least 1 enhanced for-loop) Error handling (catch the ArrayoutofboundException) Overloaded methods and constructors Encapsulation Create a CourseTest class to demonstrate your project. Your CourseTest class must create at least 2 Course objects with different instructors and 5–10 students. Every method in every class must be demonstrated (the best way to do that is to use setter methods in your constructors to show that they work and use getter methods in your toString methods to show that they work whenever the toString method is called). You must also attempt to add an 11th student to 1 of your courses to demonstrate your try/catch implementation for ArrayoutofboundException. Run your CourseTest class and paste screen shots of the output into a Word document to show it working. Turn in the following: Word file showing the results of your test runs Source (.java) files Compiled (.class) files The deployable JAR file
|
|
SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/
BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString method to print out the following: Instructor: Title Firstname Lastname Student Roster: //for each student print out first and last name, student ID, and grade Number of students: __ Average grade: __ Highest grade: __ Lowest grade: __ Person Class Properties and Behaviors Properties or attributes First name Last name Behaviors or methods Constructors Default no-argument constructor 2-argument constructor that sets the first and last name attributes Setter and getter methods for each attribute Student Class Properties and Behaviors (inherits Person class) Attributes Person Student ID Grade //0–100 point scale Methods Constructors Default no-argument constructor 2 Argument constructor (Person and Student ID) 3 Argument constructor (Person, Student ID, and Grade) Setter and getter methods for all attributes Create a getLetterGrade method that returns a letter grade instead of a point value: 0–59 F, 60–69 D, 70–79 C, 80–89 B, and 90–100 A Overload toString to print out the following: First name, Last name, Student ID, and Letter grade Instructor Class Properties and Behaviors (inherits Person class) Attributes Person Title (Prof or Dr.) Methods Constructors Default no-argument constructor 2-argument constructor (Person and Title) Setter and getter methods for all attributes Overload toString to print out the following: Title Firstname Lastname Additional Instructions Your program must use the following Java capabilities: Inheritance (is-a relationships) Composition (has-a relationships) Decision constructs Arrays Loops (to include at least 1 enhanced for-loop) Error handling (catch the ArrayoutofboundException) Overloaded methods and constructors Encapsulation Create a CourseTest class to demonstrate your project. Your CourseTest class must create at least 2 Course objects with different instructors and 5–10 students. Every method in every class must be demonstrated (the best way to do that is to use setter methods in your constructors to show that they work and use getter methods in your toString methods to show that they work whenever the toString method is called). You must also attempt to add an 11th student to 1 of your courses to demonstrate your try/catch implementation for ArrayoutofboundException. Run your CourseTest class and paste screen shots of the output into a Word document to show it working. Turn in the following: Word file showing the results of your test runs Source (.java) files Compiled (.class) files The deployable JAR file
|
SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/
BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString method to print out the following: Instructor: Title Firstname Lastname Student Roster: //for each student print out first and last name, student ID, and grade Number of students: __ Average grade: __ Highest grade: __ Lowest grade: __ Person Class Properties and Behaviors Properties or attributes First name Last name Behaviors or methods Constructors Default no-argument constructor 2-argument constructor that sets the first and last name attributes Setter and getter methods for each attribute Student Class Properties and Behaviors (inherits Person class) Attributes Person Student ID Grade //0–100 point scale Methods Constructors Default no-argument constructor 2 Argument constructor (Person and Student ID) 3 Argument constructor (Person, Student ID, and Grade) Setter and getter methods for all attributes Create a getLetterGrade method that returns a letter grade instead of a point value: 0–59 F, 60–69 D, 70–79 C, 80–89 B, and 90–100 A Overload toString to print out the following: First name, Last name, Student ID, and Letter grade Instructor Class Properties and Behaviors (inherits Person class) Attributes Person Title (Prof or Dr.) Methods Constructors Default no-argument constructor 2-argument constructor (Person and Title) Setter and getter methods for all attributes Overload toString to print out the following: Title Firstname Lastname Additional Instructions Your program must use the following Java capabilities: Inheritance (is-a relationships) Composition (has-a relationships) Decision constructs Arrays Loops (to include at least 1 enhanced for-loop) Error handling (catch the ArrayoutofboundException) Overloaded methods and constructors Encapsulation Create a CourseTest class to demonstrate your project. Your CourseTest class must create at least 2 Course objects with different instructors and 5–10 students. Every method in every class must be demonstrated (the best way to do that is to use setter methods in your constructors to show that they work and use getter methods in your toString methods to show that they work whenever the toString method is called). You must also attempt to add an 11th student to 1 of your courses to demonstrate your try/catch implementation for ArrayoutofboundException. Run your CourseTest class and paste screen shots of the output into a Word document to show it working. Turn in the following: Word file showing the results of your test runs Source (.java) files Compiled (.class) files The deployable JAR file
|