(Solved) : Ng Fundamentals Ii Java Programming Fundamentals Semester Replacement Project Optional Nam Q41379054 . . .

JAVA 1336

IN ng Fundamentals II - JAVA Programming Fundamentals Semester Replacement Project OPTIONAL NAME This is an OPTIONAL project

IN ng Fundamentals II – JAVA Programming Fundamentals Semester Replacement Project OPTIONAL NAME This is an OPTIONAL project and is intended to allow the student to raise their course average by completing the project and demonstrating their knowledge of Java classes, inheritance, and polymorphism. The grade received on this project will be used to replace the LOW exam grade OR the LOW lab grade, but not both, and NOT the final exam. I will determine where the grade will be most beneficial and apply it there. I will also expect that the class will be properly tested, including all methods. This is not a group project; all work is to be completed by the individual. I will be looking for any violations. Problem: Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the engine (type int), and the owner (type Person). Use the Person class developed this semester. Create a class automobile that is derived from Vehicle and has additional properties: number of passengers (type int) and weight in tons (type double). Create a class Truck which is derived from Vehicle and has additional properties: the load capacity in tons (type double, since it may contain a fractional part) and towing capacity in tons (type double). The classes should have: • dispose no Two constructors, a default and an overloaded constructor All appropriate accessor and mutator methods (getters and setters). An ‘equals’ method (must conform to the Person example and the Object class ). A ‘toString’ method A ‘copy’ constructor A clone’ method A ‘finalize method • • • Write a driver (client/test) class that tests ALL the methods. Be sure to invoke each of the constructors, and ALL methods. Demonstrate polymorphism by creating an array of various types of vehicles with varying property values. Due: December 7, 2018 at Midnight. NO LATE LABS WILL BE ALLOWED!!!! May 10, 2019. Note: Late projects WILL NOT be accepted, regardless of circumstance. Course grades are due the Monday following finals and I must have time to grade these as well as the final and get your grades developed. Show transcribed image text IN ng Fundamentals II – JAVA Programming Fundamentals Semester Replacement Project OPTIONAL NAME This is an OPTIONAL project and is intended to allow the student to raise their course average by completing the project and demonstrating their knowledge of Java classes, inheritance, and polymorphism. The grade received on this project will be used to replace the LOW exam grade OR the LOW lab grade, but not both, and NOT the final exam. I will determine where the grade will be most beneficial and apply it there. I will also expect that the class will be properly tested, including all methods. This is not a group project; all work is to be completed by the individual. I will be looking for any violations. Problem: Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the engine (type int), and the owner (type Person). Use the Person class developed this semester. Create a class automobile that is derived from Vehicle and has additional properties: number of passengers (type int) and weight in tons (type double). Create a class Truck which is derived from Vehicle and has additional properties: the load capacity in tons (type double, since it may contain a fractional part) and towing capacity in tons (type double). The classes should have: • dispose no Two constructors, a default and an overloaded constructor All appropriate accessor and mutator methods (getters and setters). An ‘equals’ method (must conform to the Person example and the Object class ). A ‘toString’ method A ‘copy’ constructor A clone’ method A ‘finalize method • • • Write a driver (client/test) class that tests ALL the methods. Be sure to invoke each of the constructors, and ALL methods. Demonstrate polymorphism by creating an array of various types of vehicles with varying property values. Due: December 7, 2018 at Midnight. NO LATE LABS WILL BE ALLOWED!!!! May 10, 2019. Note: Late projects WILL NOT be accepted, regardless of circumstance. Course grades are due the Monday following finals and I must have time to grade these as well as the final and get your grades developed.

Expert Answer


Answer to IN ng Fundamentals II – JAVA Programming Fundamentals Semester Replacement Project OPTIONAL NAME This is an OPTIONAL pro…