Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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,idrate,level, and hours. I had set up my class but Im 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 $ and $ A student cannot get more
than hours of tutoring per week. Couse level can only be either or A student needs
to be created using at least student's name and ID
Design an objectoriented 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 the student will get a 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.
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