COP 3804 Intermediate Java - COP3804pgm3_4Fall2021 Professor: Michael Robinson e-mail : michael.robinson@cs.fiu.edu - At the beginning of your program add the following: /********************************************************************* Author : Your Name Course : Java section. Example Java-1, Java-2, Java-3, or Java-4 Professor : Michael Robinson Program # : Program Purpose/Description { A brief description of the program } Due Date : MM/DD/YYYY Certification: I hereby certify that this work is my own and none of it is the work of any other person. ..........{ your signature }.......... *********************************************************************/ -------------------------------------------------------------------------------- Worth 12 Points (2 extra credit points) - Make sure the program is properly documented and aligned uniformally, according to our "JAVA Programming Rules", discussed in class and located at: http://users.cis.fiu.edu/~mrobi002/includes/JAVA_programmingRules I will take points off if you do not follow the programming instructions. Purpose of this program: ======================== a) Super Classes begins Chapter 13 page 327 in our book b) Sub Classess c) Interfaces begins at page 379 in our book Questions: Super and Sub Classes --------------------- 1) Worth 2 points Write a super class program called lastNameFirstNameInitialSuperPgm3 containing: a) methodOne that accepts one int and can not be inherited displaying the the int value received. b) methodTwo that accepts two strings and displays I am super methodTwo c) methodThree that accepts nothing and displays I am super methodThree 2) Worth 2 point Write a sub-class program named lastNameFirstInitialSubOne that inherets all methods from your super class in question 1 ( lastNameFirstNameInitialSuperPgm3 ), and also display I am sub-class One. 3) Worth 2 points Write a sub-class program called lastNameFirstInitialSubTwo containing all inheritable methods from your super class in question 1 ( lastNameFirstNameInitialSuperPgm3 ) overloading methodTwo by displaying "Hello I am sub class Two inhereting Super Class Pgm3" 4) Worth 2 points Write a DRIVER class (with a main method) named lastNameFirstNameInitialPgm3 using all methods in all classes from questions 1, 2 and 3 All of the above programs must be on the same folder. Interfaces ---------- 5) Worth 2 points Create an interface named lastNameFirstNameFirstLetterInterface ex: robinsonMinterface with a) The usual documentation /* Author : Michael Robinson Program : robinsonMinterface.java Purpose : This is an Interface example Due : Thursday October 28th, 2021 */ b) And the following String global public variables: personPanterID = ""; personLastName = ""; personFirstName = ""; c) And the following method templates returning void and accepting Strings thePersonSchool thePersonID thePersonLastName thePersonFirstName 6) Worth 2 points (these are 2 extra credit points) Create a program that implements the interface in question 5) and name it lastNameFirstNameFirstLetterDriver ex: robinsonMDriver a) Make sure to initialize your global variables. b) Create a new global variable named school, containing the String FIU c) In the thePersonSchool method display the global variable containing FIU d) In the thePersonID method display a String passed in from the main method e) In the thePersonLastName method display your global variable f) In the thePersonFirstName method display a String passed in from the main method This should be the results: --------------------------- C:\Users\michael\Downloads>java robinsonMPgm3 1) Displaying the methods in the SuperClass I am super methodTwo I am super methodThree 2) Displaying the methods in the robinsonMSubOneClass I am super methodTwo I am super methodThree I am sub-class One 3) Displaying the methods in the robinsonMSub2 Class Hello I am sub class Two I am super methodThree more answers to come..... Program submission: - ZIP source code for all four programs above, from question 1, 2, and 3 - Upload your zipped source code to your Canvas account NOTE: If you have any question, please email me at michael.robinson@cs.fiu.edu We have FREE tutoring from Monday thru Saturday, please visit: https://users.cs.fiu.edu/~mrobi002/tutoring/includes/tutoringOnline2021Fall.php Office Hours Tuesdays and Thursdays from 4pm until 5pm Please remember that we are here to help you succeed in your classes