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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started