Answered step by step
Verified Expert Solution
Link Copied!

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,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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

LO2 Discuss important legal areas regarding safety and health.

Answered: 1 week ago