Question: 8:47 AM Wed Mar 13 6.scanner_string_DogFood_lab java_aplus.doc At Computer Science DOG FOOD Lab Goal This lab was designed for you to learn more about using

 8:47 AM Wed Mar 13 6.scanner_string_DogFood_lab java_aplus.doc At Computer Science DOG
FOOD Lab Goal This lab was designed for you to learn more
about using Scanner to chop up Strings. Lab Description over a 6-week

8:47 AM Wed Mar 13 6.scanner_string_DogFood_lab java_aplus.doc At Computer Science DOG FOOD Lab Goal This lab was designed for you to learn more about using Scanner to chop up Strings. Lab Description over a 6-week period. Determine how many 10-pound bags of large breed puppy food you will need to buy Usage is based on the puppy's weight. The puppy is weighed on day #1 of each week. The first integer is the puppy's weight on day 1 of the period, the second is the puppy's weight on day 8 of the period, etc. A 10-pound bag of puppy food yields 60 cups. You must buy enough whole 10-pound bags of puppy food to provide the number of cups of food needed. Use the chart below to help you determine the amount of food you need. iles Needed ogFood.java Sample Data 6 10 14 18 25 32 12 15 20 26 35 42 33 38 45 51 60 65 40 50 60 77 90 101 FoodRunner ava aily Dog Food sage eight (pounds) F Sample Output od -40.5 5-71.0 8-91.5 10-19 2.0 20-39 3.5 40-59 4.5 60-79 6.0 2 - 10 POUND BAGS 3.0 3- 10 POUND BAGS 80 7.5 4- 10 POUND BAGS 8:47 AM Wed Mar 13 93%- DogFood.java //(c) A+ Computer Science //www.apuscompsci.com /Name - import java.util.Scanner; import static java.lang.System. import java.lang.Math; public class DogFood private double amount; public DogFood) public DogFood(String line) Scanner chopper new Scanner(line) double cups 0 calc code goes here public double getAmount0 return 0; public String toString) return 8:47 AM Wed Mar 13 93%- DogFoodRunner.java //(c) A+ Computer Science //www.apuscompsci.com /Name import java.util.Scanner; import static java.lang.System. import java.lang.Math; public class DogFoodRunner public static void main(String[] args)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!