1 attachmentsSlide 1 of 1

  • attachment_1attachment_1
  •  Add these data to a student: Student ID, Major, total credits taken. • You can choose student ID number format and length. • Major: select one common format for your program such as short major name (i.e. FIN for finance, ACCT for accounting, IDS for Information and decision sciences, etc) or full name (choose one format). • Your application program demonstrates to modify/update GPA, Major, total credits values of an object (i.e. first student). • Provide at least three students by the application as default (like lab 4.2 but with above additional data fields). • When program starts, display the three students as the output format of the lab 4.2 SID Name Year Major GPA Credit ============================================== 12345 Steve Jobs 2020 IDS 3.8 64 23456 Mat Damon 2018 FIN 3.6 114 32145 Nancy Jordan 2021 IDS 3.5 18 • Update GPA, major, and/or credit of a student and display the updated list. ** Available majors: IDS, FIN, ACCT, BA, SCN, MIS ** Enter new major of the first student: MIS Enter new GPA of the first student: 3.9 Enter new total credit of the first student: 72 SID Name Year Major GPA Credit ============================================= 12345 Steve Jobs 2020 MIS 3.9 72 • The application program can add a new user and display new list of student. Add a new student ===================== Enter new student ID (5 digits): 11111 Enter new student first name: Arnold Enter new student last name: Pam Enter new student accepted year (4 digits): 2019 Enter new student major: BA Enter new student GPA: 4.0 Enter new student total credits: 118 SID Name Year Major GPA Credit ============================================== 12345 Steve Jobs 2020 MIS 3.9 72 23456 Mat Damon 2018 FIN 3.6 114 32145 Nancy Jordan 2021 IDS 3.5 18 11111 Arnold Pam 2019 BA 4.0 118 • Make your program output as similar as the sample output. 2 source code files: revised Student class and application class files 2 Java bytecode: Student.class and HW2.class 1 pseudocode file and 1 PPT file Submission (through BB) due: BB sets the data/time (all based on US CST) Again, no email submission is allowed. Lab 4.1 Display three students’ data • Write a pseudo code to display output like below Student Name Admission GPA ===================================== Steve Jobs 2020 3.8 Mat Damons 2018 4.0 Nancy Jordan 2021 3.5 Lab 4.1 Display three students’ data • Write a pseudo code to display output like below Declare three variables (String, integer, double) per student Write output of header Write output of each student per line Student Name Admission GPA ===================================== Steve Jobs 2020 3.8 Mat Damons 2018 4.0 Nancy Jordan 2021 3.5 Lab 4.1 Display three students’ data String nameStudent1= “Steve Jobs”; int yearStudent1 = 2020; double gpaStudent1 = 3.8; String nameStudent2= “Mat Damons”; int yearStudent2 = 2018; double gpaStudent2 = 4.0; String nameStudent3= “Nancy Jordan”; int yearStudent3 = 2021; double gpaStudent3 = 3.5; // display header System.out.print(“Student Name” ); System.out.print(“\tAdmission”); System.out.print(“\tGPA”); System.out.println(“\n=====================================”); // continue to next slide Lab 4.1 Display three students’ data // continue from the previous slide // display the first student System.out.print(nameStudent1); System.out.print(“\t” + yearStudent1); System.out.println(“\t\t” + gpaStudent1); // display the second stduent System.out.print(nameStudent2); System.out.print(“\t” + yearStudent2); System.out.println(“\t\t” + gpaStudent2); // display the third student System.out.print(nameStudent3); System.out.print(“\t” + yearStudent3); System.out.println(“\t\t” + gpaStudent3); Lab 4.2 Create a student class to modify the lab 4.1 • Write a pseudo code Student Name Admission GPA ================================ Steve Jobs 2020 3.8 Mat Damons 2018 4.0 Nancy Jordan 2021 3.5 • You need two classes for this program 1. Application with main method 2. A student class without main method Lab 4.2 Student class • Write a pseudo code to create a student class Create a new class: Student Declare three variables: String for name, integer for Admission, double for GPA Add a constructor to assign values to an object Add a method to return Name Add a method to return Year Data Add a method to return GPA Student Name Admission GPA ===================================== … Steve Jobs Mat Damons Nancy Jordan 2020 2018 2021 3.8 4.0 3.5 Lab 4.2 Student class public class Student { private String name; private int year; private double gpa; // constructor to create an object public Student(String Xname, int Xyear, double Xgpa) { name = Xname; year = Xyear; gpa = Xgpa; } // continue.. Lab 4.2 Student class // continued.. // method to return name of an object public String getName() { return name; } // method to return admitted year of an object public int getYear() { return year; } // method to return GPA of an object public double getGpa() { return gpa; } } Lab 4.2 Application // Create an object Student student1 = new Student(“Steve Jobs”, 2020, 3.8); // display a processing message System.out.println(“first object is created…”); // display object data values System.out.println(“Name of student: ” + student1.getName()); System.out.println(“Year of admission: ” + student1.getYear()); System.out.println(“GPA of student: ” + student1.getGpa()); Lab 4.3 Modify Student class and application • Modify Student class of lab 4.2 • Add these data to a student: Student ID, Major, total credits taken • Let the application also update GPA, Major, total credits Novice Proficient File submission -3(-3.75%) Missing a file gets 3 points penalty 10 (12.50%) Submit all required files (by Assignment Rubrics: Pseudocode 1(1.25%) Pseudocode uses too long description and does not make sense 3 (3.75%) Pseudocode steps are the same as program source code Begin comment 1 (1.25%) Lack of starting comments with author name and brief description of the program 3 (3.75%) Source code starts with proper comments Good documentation 1(1.259) Poor whitespace, indentation, less comments in the body of the program ranges 1..3 (5.00%) Source code includes good documentation Program Run 0 (0.00%) Program does not run or having compiling or other types of error (partial credit applies depends on result) 25 (31.2596) Program must run without any problem. Output 2 (2.50%) Poor output format 5 (6.25%) Reasonable output display Data 1 (1.25%) Lack of variable to store data 5 (6.25%) Declare adequate variables to store data 5(6.25%) Display a proper message of program Start and End Begin and End message 1 (1.25%) No message to start/end of program Output format 2 (2.50%) Poor layout of whitespace, indentation of program display 5 (6.25%) Display good whitespace and indentation of program output PPT 1 (1.25%) Poor PPT content 5 (6.25%) Quality PPT contents includes source code, self-evaluation (if applicable), screenshots of program run Command Prompt run 0 (0.00%) class file does not run in the command prompt 5(6.25%) Java Bytecode runs in the command prompt Output 1 (1.25%) Output is not correct in case 5 (6.25%) Output is correct.

Do you similar assignment and would want someone to complete it for you? Click on the ORDER NOW option to get instant services at essayloop.com

Do you have a similar assignment and would want someone to complete it for you? Click on the ORDER NOW option to get instant services at essayloop.com. We assure you of a well written and plagiarism free papers delivered within your specified deadline.