Question
Please read instructions thoroughly and show screenshot of your output. Please do in java as simply as possible with the code available for copy and
Please read instructions thoroughly and show screenshot of your output.
Please do in java as simply as possible with the code available for copy and with comments.
Create a class Client. Your Client class should include the following attributes:
Company Name (string)
Company id (string)
Billing address (string)
Billing city (string)
Billing state (string)
Write a constructor to initialize the above Employee attributes.
Create another class HourlyClient that inherits from the Client class. HourClient must use the inherited parent class variables and add in hourlyRate and hoursBilled. Your Hourly Client class should contain a constructor that calls the constructor from the Client class to initialize the common instance variables but also initializes the hourlyRate and hoursBilled. Add a billing method to HourlyClient to calculate the amount due from a service provided. Note that billing amount is hourlyRate * hoursBilled
Create a test class that prompts the user for the information for five hourly clients, creates an arraylist of 5 hourly client objects, display the attributes and billing for each of the five hourly clients. Display the company name and billing amount for each company and the total billing amount for all five companies.
---------------------------------
I have no theoretical structures or any hard set way to solve. Just give your best shot!! :)
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