Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Simple Java lemonade program.

OpenStudy (anonymous):

Write a program that prompts the user for the following pieces of information concerning the raw materials the user has to make lemonade: 1) The number of lemons they have 2) The number of bags of sugar they have Given this information, along with the three following constants you should define in your program, static final int LEMONS_PER_PITCHER = 12; static final int SPOONS_PER_BAG = 1000; static final int SPOONS_PER_PITCHER = 50; you should determine the maximum number of pitchers of lemonade that the user can make. Your answer should be a non-negative integer. Thus, even if there are leftover ingredients to create .3 of a pitcher, you should not count this at all. You may assume that the water is free and the lemonade only consists of water, lemons and sugar. (Note: Determine the meaning of the constants by looking at the sample data. Ask a TA if necessary.) Input Specification 1. The number of lemons will be a non-negative integer. 2. The number of bags of sugar will be a non-negative integer. Output Specification Output the number of pitchers of lemonade the user can make. Your output should follow the format below, where X represents the number of pitchers: You can make a maximum of X pitchers.

OpenStudy (e.mccormick):

What did you come up with and where are you having trouble?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!