Question: Create a class named MarketDelivery This class contains final and static constants for each possible delivery fee, including the flat rate for orders totaling over
Create a class named MarketDelivery This class contains final and static constants for each possible delivery fee, including the flat rate for orders totaling over $ The class contains data fields for the supermarket String weight of the order double total price double of the order and delivery fee amount double The constructor receives parameters for the supermarket, weight and total only. The constructor set the supermarket and weight data fields. The constructor includes logic to set the delivery fee for the order. Be sure to use your constants when setting the delivery fee data field. The constructor updates the total to include the delivery fee and sets the total data field. Include get and set methods for every data field. Also, include a method named displayDetails that will display the details of the delivery. Be sure to use printf to print double data types. Use t in between each part of the output to move the cursor to the next available tab position on that line.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
