readings in redemptive history 5
October 10, 2021
4 6 discussion forum 2 consumer genetic testing graded discussion
October 10, 2021

java netbeans 6

Deliverables

  • app.java, student.java, and group.java as requested below.

Contents

A03_group.png

Create a project that:

  • has a student class
    • Build upon the solutions of the previous labs (e.g., using app.java and student.java)
    • You will need a version of student.java that has a working semesterGPA( ) method as specified in the last assignment
      • very important:
        • for this lab it is important that you run semesterGPA() just once.
        • when semesterGPA() is executed, it should update the GPA attribute
        • again, for this lab it is necessary that the student GPA is calculated just once. Otherwise the group average GPA will never match with the displayed values because on the randomness in semesterGPA.
        • when should you run semesterGPA then?
          • running it in the constructor seems a good choice
  • has a group class
    • group has a name
    • group has 4 students
    • group has at least 2 methods
      • A method that displays the group name and the name of each student in the group
      • A method that calculates and displays the average GPA of a group. Group average GPA is the average of all the group members’ (students’) GPA.
        • group GPA starts in student using the student GPA attribute.
        • For instance, we may have:
          • student #1, John, with a semesterGPA of 3.2;
          • student #2, Mary, with a semesterGPA of 3.5;
          • student #3, Emily, with a semesterGPA of 3.0, and
          • student #4, Peter, with a semesterGPA of 2.5,
          • which will give a group average GPA of (3.2 + 3.5 + 3.0 + 2.5)/4 = 3.05.
  • in app.java (the class with the main method)
    • create 4 student objects
    • create a group object g1 using the 4 student objects above
    • Using the group object (instance, variable) in app.java:
      • Display the group name, and information about each student in the group
      • Display the group average GPA
      • Display the semesterGPA of the third student in the group (retrieving information from the student class variables in the group, not from student variables in the app).
      • Pay attention, you have to use the group object (instance, variable) in app.java
        • Something like System.out.println(g1.______________);
    • repeat the same process for another group object g2.

WHAT TO TURN IN:

  • .zip file exported from NetBeans
  • Also upload a PDF File of the source code (you can copy and paste the text of each class into a Word Doc or Google Doc and upload either the .doc or .docx file or a pdf file)
 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.