Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

2. Why does email facilitate straight talk?

Answered: 1 week ago

Question

Which job has the highest profit?

Answered: 1 week ago

Question

On average, what is the largest revenue component measure?

Answered: 1 week ago

Question

What is managements expected profit margin for each product?

Answered: 1 week ago