I need a java project completed asap
- or -
Post a project like this1619
$120
- Posted:
- Proposals: 3
- Remote
- #2593143
- OPPORTUNITY
- Awarded
Description
Experience Level: Intermediate
1. Consider the following scenario: An internet service provider has three different subscription packages
for its customers.
• Package A: For $9.95 per month, 10 hours of access are provided. Additional hours are $2.00 per
hour.
• Package B: For $14.95 per month, 20 hours of access are provided. Additional hours are $1.00 per
hour.
• Package C: For $19.95 per month, unlimited access is provided.
2. Create a class named ISP that models a customer’s internet usage and billing. Your class should:
• have fields for the letter of the package the customer has purchased (A, B, or C) and the number
of hours of access that the customer has used. The field for the letter of the package should be
a field of type char named pkg, and the field for the number of hours of access used should be a
field of type double named hoursUsed.
• have accessors and mutators for all fields.
• have a no-arg constructor that defaults to Package A and no hours used.
• have a constructor that sets all fields using its parameters (the parameter for the selected package
should be first).
• have a method named calculateCharges that calculates a customer’s total charges for the package they have chosen and returns that (double) value.
More activities in the attached file
for its customers.
• Package A: For $9.95 per month, 10 hours of access are provided. Additional hours are $2.00 per
hour.
• Package B: For $14.95 per month, 20 hours of access are provided. Additional hours are $1.00 per
hour.
• Package C: For $19.95 per month, unlimited access is provided.
2. Create a class named ISP that models a customer’s internet usage and billing. Your class should:
• have fields for the letter of the package the customer has purchased (A, B, or C) and the number
of hours of access that the customer has used. The field for the letter of the package should be
a field of type char named pkg, and the field for the number of hours of access used should be a
field of type double named hoursUsed.
• have accessors and mutators for all fields.
• have a no-arg constructor that defaults to Package A and no hours used.
• have a constructor that sets all fields using its parameters (the parameter for the selected package
should be first).
• have a method named calculateCharges that calculates a customer’s total charges for the package they have chosen and returns that (double) value.
More activities in the attached file
James M.
97% (51)Projects Completed
16
Freelancers worked with
11
Projects awarded
47%
Last project
22 May 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies