Question: Today you will write code to create a Dog Food Calculator that does the following: Ask the User for the target weight of their dog.

Today you will write code to create a Dog Food Calculator that does the following:
Ask the User for the target weight of their dog.
Tell the User their dog must eat X calories to meet the target (Assume a dog must consume 20 calories per pound of weight)
Then create 1 Wet food option that:
Has a set # of calories per pound of food (Less than Dry)
Has a cost per pound (More than Dry)
Then create 1 Dry food option that:
Has a set # of calories per pound of food
Has a cost per pound
The User must be presented all information about each product, then:
The User may select ANY combination of Wet and/or Dry food.
Food breakdown by wet weight, dry weight, and total weight.

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 Programming Questions!