Question: Hello, I would like help answering this Java question. I am suppose to be working with methods as a beginner. Please explain in detail what
Hello, I would like help answering this Java question. I am suppose to be working with methods as a beginner. Please explain in detail what you do.
Here is the question:

PROGRAM 2 Print the source code of this program plus the output of the following four executions: Execution 1: Input the weight as a negative number of ounces. Execution 2: Input the weight as Oounces. Execution 3: Input the weight as 5 ounces. Execution 4: Input the weight as 42 ounces. Write three methods for this program assignment as follows: One method to read the required input values. A second method to perform the required calculations using the input values from the first function. A third method to display the results of the second method. Speedy-Pants Delivery Inc. charges by weight for delivery of packages. The delivery charge for the first pound is $3.00 and $0.50 is added onto the charge for each additional four ounces. For example, A package weighing more than 16 but at most 20 ounces costs $3.50 to deliver. A package weighing more than 20 but at most 24 ounces costs $4.00 to deliver. etc. Write a program that inputs the weight of a package in ounces, computes the charge for delivery, and displays it to the screen. NOTE: One pound equals 16 ounces. Note: (1) Use a double-valued method, get WeightInput, to prompt the user for input. (2) Use a double-valued method, computeDeliveryCharge, to compute the charge for delivery. (3) Use a void method, display Delivery Charge, to display the delivery charge
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
