PROGRAM STATEMENT AND REQUIREMENTS: Great Tutors Inc. is a company that provides tutoring services to elementary school students. Parents bring their students after school to their offices where one...

1 answer below »


PROGRAM STATEMENT AND REQUIREMENTS:


Great Tutors Inc. is a company that provides tutoring services to elementary school students. Parents bring their students after school to their offices where one tutor is assigned to each student. The same tutor is assigned to the student for every visit.


A tutor teaches his/her assigned student for several hours and charges a flat rate per hour for any student. Each tutor can only teach for a maximum of 40 hours. The program must ask the tutor to enter the hours taught after each tutoring session and deduct it from the maximum allowed. If the tutor has reached or exceeded the maximum number of hours taught, he or she cannot continue tutoring (charging for the service).


The company also needs to know the name and age of each student.


The company needs to produce an invoice for the student showing the name of the student, the name of the tutor, hours of instruction, rate per hour, and total amount to pay. If the student is less than 10 years old, a 20% discount must be applied to the amount due.




PART 1 (2pts):Using the drawing software of your choiceand the technique shown in the lectures to identify classes, methods, and fields,create aUML class diagramfor the program described above and save it in a singleMicrosoft Word filetogether with a short description of the reasoning for your design as shown in the lectures.




PART 2 (8pts):
Implement your UML class diagram in Javato fulfill the program's goals and requirements.



  • Remember that each class must be coded in a separate file, including the driver class that should be named "Driver" (Hint: there should be 3 classes and a driver class. Check the examples given in class for reference).

  • All class fieldsmust be private,and every class must containgetters,setters,a constructor method, and atoString methodshowing the state of the object to the user with appropriate messages.

  • Test your program by creating at least 1 instance of all the objects and obtaining an invoice.

    • Format the invoice so it will look organized and shows description prompts for the output.

    • Use printf to show only two decimals for numbers.

    • Submit all your source code files (.java) and Word file to Canva’s corresponding assignment folder.





      • Since your submission includes more than one file, you must compress them all in a single .zip file. This file name must follow the following format:LastName_FirstName_A#.zipwhere # is the assignment number (e.g. Perez_Jose_A4.zip).



    • Remember to:

      • Add all necessary comments to your code, including the header comment.





        • Test your program several times and paste the testing output show in the console as a comment at the bottom of your source code in the driver/main class program file.

        • Add all necessary explaining comments in the body of the code.

        • Correctly name your classes, methods, and variables.





Answered Same DayOct 14, 2021

Answer To: PROGRAM STATEMENT AND REQUIREMENTS: Great Tutors Inc. is a company that provides tutoring services...

Arun Shankar answered on Oct 18 2021
142 Votes
Tutor Project/.classpath

    
        
            
        
    
    
    
Tutor Project/.project

     Tutor Project
    
    
    
    
    
    
             org.eclipse.jdt.core.javabuilder
            
            
        
    
    
         org.eclipse.jdt.core.javanature
    
Tutor Project/bin/Tutor.class
Tutor Project/bin/Driver.class
Tutor Project/bin/Student.class
Tutor Project/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=14
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=14
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=14
Tutor Project/src/Driver.java
Tutor...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here