Question
The class GPA below defines the gpa of a student in terms of its value. The value of the GPA is a floating point number
The class GPA below defines the gpa of a student in terms of its value. The value of the GPA is a floating point number between 0.0 and 4.0. Writeup a class Student, that represents a student with a given name and gpa. The Student class should have two attributes: name and gpa objects. The gpa of a student is defined by the class GPA. The class should also have these members: - A constructor that take parameters to initialize B - A getter for gpa - A setter for name - A method honorRoll() that takes a gpa object parameter and returns true if the student's gpa value is greater than or equal to the parameter gpa value and false otherwise - A toString() method returning the name of the students and his/her gpa value.
b.Writeup an application GraduatingClass that prompts the user for the class size as well as the school'gpa value threshold in order to qualify for Honor Roll. The program creates and populates an array of that many Student objects with their names entered by the user, while their gpa values randomly generated. The program will calculate and print to the screen the number of students who qualify for the Honor Roll
c. A family consisting of several members, each with their own cell phone is analyzing the cellphone bills received over a number of months.
Writeup a method bestInMonths() that takes one parameter: 1. famCellBills, a two-dimensional array of doubles, where each row represents a member of the family and the columns represent the months included in the analysis The method returns an array containing the lowest bill received in each month over all members of the family. For example, the following table illustrate a sample of an analysis, where Best Bill represents the best (lowest) amounts received by a family member for each month
Jan | Feb | March | |
Jane | 34.56 | 75.34 | 23.87 |
Jack | 87.79 | 32.05 | 23.54 |
Sophie | 89.78 | 66.76 | 87.99 |
Kylie | 45.34 | 56.45 | 16.54 |
Best Bill | 34.56 | 32.0516.54 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started