Question: i need help with this i am in initial java class. need to make a utility class and call it in method please follow the

Design and create a complete, correct Java program for the following: 1. StickySyrup.java The Sticky Syrup Company wants to know the weight of its delivery trailers when they leave the loading dock and the value of the syrup on the truck. (10 points) The Sticky Syrup Company delivers three types of syrup at the following costs: Molasses: $25.90/gallon Maple syrup: $75.99/gallon Honey: $20.48/gallon The weight of each gallon of syrup: Molasses: 11.46 pounds Maple syrup: 11 pounds Honey : 12 pounds Your program will request the number of gallons of each type of syrup on the trailer, calculate the value of each type of syrup, the total value of all syrup, the weight of each type of syrup and the total weight of the trailer. The trailer itself weighs 7.540 pounds. Syrup is packaged in whole gallons Your program will utilize an external class to store the constants provided above, put these in your Utilities class. Your utilities class will also provide the mechanism for input from the user (this was demonstrated in class on Feb 2). A sample run of your program might look like this (user entry is in bold and red): Number of gallons of molasses: 5 Honey : 12 pounds Your program will request the number of gallons of each type of syrup on the trailer, calculate the value of ea syrup, the total value of all syrup, the weight of each type of syrup and the total weight of the trailer. The tra weighs 7.540 pounds. Syrup is packaged in whole gallons. Your program will utilize an external class to store the constants provided above, put these in your Utilities cl utilities class will also provide the mechanism for input from the user (this was demonstrated in class on Feb A sample run of your program might look like this (user entry is in bold and red): Number of gallons of molasses: 5 Number of gallons of maple syrup: 25 Number of gallons of honey: 400 Sticky Syrup Delivery: Syrup Number of gallons Value Molasses Weight 5 129.50 Maple Syrup 57.3 25 1899.75 Honey 275.0 400 8192.00 4800.0 Total value of syrup: $10,221.25 Total weight of syrup: 5132.30 lbs Total weight of trailer: 12672.30 Can
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
