Find Jobs
Hire Freelancers

Create a java program class named Package with data fields for weight in ounces, shipping method, and shipping cost.

$30-40 USD

进行中
已发布超过 19 年前

$30-40 USD

货到付款
Create a class named Package with data fields for weight in ounces, shipping method, and shipping cost. The shipping method is a character: A for air, T for truck, or M for mail. The Package class contains a constructor that requires arguments for weight and shipping method. The constructor calls a private calculateCost() method that determines the shipping cost based on the following: see below for rest..... (i have attached the work in a .doc file) ## Deliverables **Shipping Method ($) Weight (ounce) Air Truck Mail 1 to 8 2.00 1.50 0.50 9 to 16 3.00 2.35 1.50 17 and over 4.50 3.25 2.15** The Package class also contains a display() method that displays the values using appropriate fields. Create a subclass named InsuredPackage that adds an insurance cost to the shipping cost based on the following: **Shipping Cost Before Insurance ($) Additional Cost ($) **0 to 1.00 2.45 1.01 to 3.00 3.95 3.01 and over 5.55 ## Platform PLATFORM: java Write a program that instantiates at least three objects of each type (Package and InsuredPackage) using a variety of weights and shipping method codes. Display the result for each Package and [login to view URL]: Pass parameters from the command line. _ Evaluation_ The submitted assignment will be evaluated on the basis of the code logic, documentation, and code style. The code is expected to exhibit the proper use of input handling, and encapsulation. MUST BE COMPLETED BY: NOV. 29
项目 ID: 3446756

关于此项目

5提案
远程项目
活跃19 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$6.21 USD 在6天之内
5.0 (321条评论)
6.0
6.0
5威客以平均价$14 USD来参与此工作竞价
用户头像
See private message.
$17 USD 在6天之内
5.0 (124条评论)
5.1
5.1
用户头像
See private message.
$21.25 USD 在6天之内
5.0 (16条评论)
3.8
3.8
用户头像
See private message.
$14.45 USD 在6天之内
4.8 (9条评论)
3.3
3.3
用户头像
See private message.
$12.75 USD 在6天之内
4.9 (14条评论)
3.2
3.2

关于客户

CANADA的国旗
Canada
5.0
17
会员自11月 23, 2004起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。