Question: create a program using these steps Plata 3 5 5 4 8 5 3 the 5 5 3 1. Driver Application Program Filename is based
Plata 3 5 5 4 8 5 3 the 5 5 3 1. Driver Application Program Filename is based on your last-me and _m2 For example LASTNAMEnitin 2AYA (make sure to replace LASTNAME with your) And the class definition is vem LASTNAMEfrattaital_Sendent.JAVA at the beginning of both files put your student II, location where this sigantent has been completed, and a brief deseription about this file as a comment Zip both files together and name it Le Firsinitial and submit on Blackboard The LASTNAMEfirtina Student class - Bondon UML dlagam glan 2. Attributes = name, appropriate ness modifier and data types (see UML) 3. Constructor - A constructor to initialize a LASTNAMEfirstInitial_Student object's attributes only with parameters 4. Accessor methods - will retrieve the object's attributes RetName, getMajor, checkClassification, and getGPA 5. Mutator methods - will assign the new value to object's attributes (Note that some method may not prefix with set): setName, switchMajor, updateClassification and changeGPA & calculateGPA will read in 6 numbers, each represent a grade weight (Ex. 3.7 for A., 3.0 for 3. etc.). The first 3 grades are for 3 credit-hour courses, the 4 grade is for 4-credit MAT course grade is for 2-credit HEA course, and last one for 1-credt UNI 101 course. Make sure the gpa result in only 2 decimal point. Note that no round up. just round at 2 decimal point faString method that will retum a string that is a concatenation of the object's name, major, classification, and gpa using TAB as a delimiter between each value (look up in the book index to show how toString method should be defined) The Driver Program - LastnameFirst Init_P2java (XXX is your initials, first-middle-last initials) 8 Create a Driver class that should do the following tasks 2. Create all necessary objects and variables with appropriate data types b. Read LASTNAMEfirstInitial Student information from the keyboard using Scanner class: name, major, classification, gpa. Prompt the user appropriately (see sample 10) C. Create a LASTNAMEfirstInitial Student object, called first Student_XXX. Pass in appropriate variables 1. Set this student's GPA using the appropriate mutator method 1. Print out the state of this object (all attributes, see sample 1/0) d. Create a second LASTNAME firstInitial Student object called second Student_XXX Hard code the appropriate parameters using your own information 1. Prompt the user and Read in from the keyboard 6 grados (see sample 10) I Calculate GPA ill. Print the current state of the object 1. Prompt the user and Read in from the keyboard a new major (see sample 10) V Switch the major Y. Print out the update state of the object * Make sure to formal your screen nice and neat seampie Comments should be put throughout the program to explain what is being done or computed, and programming style for readability 10. Delivery Source code artiles 2 files class and inver application as well as screenshots of your output submitted on blackboard on due date by 11:59pm-zip both files Lastname istinitial e ip 3 5 5 3 NM 2 2 3 2 2 10 5 1. Driver Application Program Filename is based on your last-name and P2 For example LASTNAMEfirstInitial_P2.java (make sure to replace LASTNAME with yours) And the class definition is save as LASTNAMEfirstinital_Student.java ## at the beginning of both files - put your name, student ID, location where this assignment has been completed, and a brief description about this file as a comment ## Zip both files together and name it LastnameFirstInitial P2.zip and submit on Blackboard The LASTNAMEfirstInitial_Student class - Based on UML class diagram given 2. Attributes - name, appropriate access modifier and data types (see UML) 3. Constructor -- A constructor to initialize a LASTNAMEfirstInitial_Student object's attributes only with parameters 4. Accessor methods -- will retrieve the object's attributes: getName, get Major, checkClassification, and getGPA 5. Mutator methods will assign the new value to object's attributes (Note that some method may not prefix with set): setName, switch Major, updateClassification and changeGPA 6. calculateGPA will read in 6 numbers, each represent a grade weight [Ex. 3.7 for A-, 3.0 for 3, etc.). The first 3 grades are for 3 credit-hour courses, the 4th grade is for 4-credit MAT course the 5" grade is for 2-credit HEA course, and last one for 1-credt UNI 101 course. Make sure the gpa result in only 2 decimal point. Note that no round up, just round at 2 decimal point 7.toString method that will return a string that is a concatenation of the object's name, major, classification, and gpa using TAB as a delimiter between each value (look up in the book index to show how toString method should be defined) The Driver Program - Lastname FirstInit_P2.java (XXX is your initials, first-middle-last initials) 8. Create a Driver class that should do the following tasks a. Create all necessary objects and variables with appropriate data types b. Read LASTNAMEfirstInitial_Student information from the keyboard using Scanner class: name, major, classification, gpa. Prompt the user appropriately (see sample 1/0) c. Create a LASTNAMEfirstInitial Student object called firstStudent_XXX. Pass in appropriate variables i. Set this student's GPA using the appropriate mutator method ii. Print out the state of this object (all attributes, see sample 1/0) d. Create a second LASTNAMEfirstInitial_Student object, called secondStudent_XXX Hard code the appropriate parameters - using your own information i. Prompt the user and Read in from the keyboard 6 grades (see sample 10) ii. Calculate GPA ii. Print the current state of the object iv. Prompt the user and Read in from the keyboard a new major (see sample 1/0) V. Switch the major vi. Print out the update state of the object ** Make sure to format your output screen nice and meat, see sample ** Comments should be put throughout the program to explain what is being done or computed: and programming style for readability 10. Delivery - a Source code (java files - 2 files: class and driver application as well as screenshot(s) of your output - submitted on Blackboard on due date by 11:59pm -- zip both files -- LastnameFirstInitial P2.zip Plata 3 5 5 4 8 5 3 the 5 5 3 1. Driver Application Program Filename is based on your last-me and _m2 For example LASTNAMEnitin 2AYA (make sure to replace LASTNAME with your) And the class definition is vem LASTNAMEfrattaital_Sendent.JAVA at the beginning of both files put your student II, location where this sigantent has been completed, and a brief deseription about this file as a comment Zip both files together and name it Le Firsinitial and submit on Blackboard The LASTNAMEfirtina Student class - Bondon UML dlagam glan 2. Attributes = name, appropriate ness modifier and data types (see UML) 3. Constructor - A constructor to initialize a LASTNAMEfirstInitial_Student object's attributes only with parameters 4. Accessor methods - will retrieve the object's attributes RetName, getMajor, checkClassification, and getGPA 5. Mutator methods - will assign the new value to object's attributes (Note that some method may not prefix with set): setName, switchMajor, updateClassification and changeGPA & calculateGPA will read in 6 numbers, each represent a grade weight (Ex. 3.7 for A., 3.0 for 3. etc.). The first 3 grades are for 3 credit-hour courses, the 4 grade is for 4-credit MAT course grade is for 2-credit HEA course, and last one for 1-credt UNI 101 course. Make sure the gpa result in only 2 decimal point. Note that no round up. just round at 2 decimal point faString method that will retum a string that is a concatenation of the object's name, major, classification, and gpa using TAB as a delimiter between each value (look up in the book index to show how toString method should be defined) The Driver Program - LastnameFirst Init_P2java (XXX is your initials, first-middle-last initials) 8 Create a Driver class that should do the following tasks 2. Create all necessary objects and variables with appropriate data types b. Read LASTNAMEfirstInitial Student information from the keyboard using Scanner class: name, major, classification, gpa. Prompt the user appropriately (see sample 10) C. Create a LASTNAMEfirstInitial Student object, called first Student_XXX. Pass in appropriate variables 1. Set this student's GPA using the appropriate mutator method 1. Print out the state of this object (all attributes, see sample 1/0) d. Create a second LASTNAME firstInitial Student object called second Student_XXX Hard code the appropriate parameters using your own information 1. Prompt the user and Read in from the keyboard 6 grados (see sample 10) I Calculate GPA ill. Print the current state of the object 1. Prompt the user and Read in from the keyboard a new major (see sample 10) V Switch the major Y. Print out the update state of the object * Make sure to formal your screen nice and neat seampie Comments should be put throughout the program to explain what is being done or computed, and programming style for readability 10. Delivery Source code artiles 2 files class and inver application as well as screenshots of your output submitted on blackboard on due date by 11:59pm-zip both files Lastname istinitial e ip 3 5 5 3 NM 2 2 3 2 2 10 5 1. Driver Application Program Filename is based on your last-name and P2 For example LASTNAMEfirstInitial_P2.java (make sure to replace LASTNAME with yours) And the class definition is save as LASTNAMEfirstinital_Student.java ## at the beginning of both files - put your name, student ID, location where this assignment has been completed, and a brief description about this file as a comment ## Zip both files together and name it LastnameFirstInitial P2.zip and submit on Blackboard The LASTNAMEfirstInitial_Student class - Based on UML class diagram given 2. Attributes - name, appropriate access modifier and data types (see UML) 3. Constructor -- A constructor to initialize a LASTNAMEfirstInitial_Student object's attributes only with parameters 4. Accessor methods -- will retrieve the object's attributes: getName, get Major, checkClassification, and getGPA 5. Mutator methods will assign the new value to object's attributes (Note that some method may not prefix with set): setName, switch Major, updateClassification and changeGPA 6. calculateGPA will read in 6 numbers, each represent a grade weight [Ex. 3.7 for A-, 3.0 for 3, etc.). The first 3 grades are for 3 credit-hour courses, the 4th grade is for 4-credit MAT course the 5" grade is for 2-credit HEA course, and last one for 1-credt UNI 101 course. Make sure the gpa result in only 2 decimal point. Note that no round up, just round at 2 decimal point 7.toString method that will return a string that is a concatenation of the object's name, major, classification, and gpa using TAB as a delimiter between each value (look up in the book index to show how toString method should be defined) The Driver Program - Lastname FirstInit_P2.java (XXX is your initials, first-middle-last initials) 8. Create a Driver class that should do the following tasks a. Create all necessary objects and variables with appropriate data types b. Read LASTNAMEfirstInitial_Student information from the keyboard using Scanner class: name, major, classification, gpa. Prompt the user appropriately (see sample 1/0) c. Create a LASTNAMEfirstInitial Student object called firstStudent_XXX. Pass in appropriate variables i. Set this student's GPA using the appropriate mutator method ii. Print out the state of this object (all attributes, see sample 1/0) d. Create a second LASTNAMEfirstInitial_Student object, called secondStudent_XXX Hard code the appropriate parameters - using your own information i. Prompt the user and Read in from the keyboard 6 grades (see sample 10) ii. Calculate GPA ii. Print the current state of the object iv. Prompt the user and Read in from the keyboard a new major (see sample 1/0) V. Switch the major vi. Print out the update state of the object ** Make sure to format your output screen nice and meat, see sample ** Comments should be put throughout the program to explain what is being done or computed: and programming style for readability 10. Delivery - a Source code (java files - 2 files: class and driver application as well as screenshot(s) of your output - submitted on Blackboard on due date by 11:59pm -- zip both files -- LastnameFirstInitial P2.zip
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
