Question: (JAVA) I am writing a candy consumption app on Android Studio. Each time the candy is taken out of the jar, one candy is consumed.

(JAVA) I am writing a candy consumption app on Android Studio. Each time the candy is taken out of the jar, one candy is consumed. User will input the candy amount and the Projections section below will display the projections of candy consumption for the rest of the week, month, and year. This is going to be done on Andriod application but I am confused about how to calculate the rate of consumption as the user input amount of candies decrease. The display of projection data will be live as the total number of candies decrease. Just pseudocode would be fine, I need some clarification. THANK YOU SO MUCH.

Candy Consumption Projections

Rest of the week: ___ //display estimated candy consumption projection for rest of the week

Rest of the month: ___ //display estimated candy consumption projection for rest of the month

Rest of the Year: ___ //display estimated candy consumption projection for rest of the year

How many candies do you have? ____ //user input

This will last you __ days. //display of how many days will the total candies last at the rate of consumption

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!