Question: We had to make a java object that defined a name,id , rate,level, and hours. I had set up my class but I ' m

We had to make a java object that defined a name,id,rate,level, and hours. I had set up my class but I'm at a lose for the implementation part. We were told that we couldn't use an array but had to collect and then total the ratexhour when completeed as well as display it all.Your friend who runs a tutoring service has asked you to create Java program to calculate weekly
tutoring charge for the tutoring service he provides for all of his students. Each student has a
name, id, hourly tutoring rate, course level and number of hours tutored. Name and id must be
nonempty strings. Hourly tutoring rate must be within $20 and $30. A student cannot get more
than 10 hours of tutoring per week. Couse level can only be either 100 or 200. A student needs
to be created using at least student's name and ID.
Design an object-oriented solution that will create a data definition class for the student object.
The student class must define all the constructors, mutators with proper validation, accessors,
and special purpose methods. The student class should have a method that returns the total
tutoring charge, which is calculated as the number of hours tutored multiplied by the hourly
tutoring rate. For course level 200 the student will get a 10% discount on the total tutoring
charge for the week.
With a completed data definition class, create your implementation class that will prompt the
user to enter all the data for students and instantiate student objects. At the end, the program
should print out a report containing all the student's information. The report should also display
the total tutoring charge over all the students.
 We had to make a java object that defined a name,id,rate,level,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!