Java help on flowchart and table design as followsno program

Java help on flowchart and table design as follows...no program needed

GIVEN (Based on your analysis, answer the question: “Is any data given to me?”:

INPUT (Is the user required to enter data?):

LOGIC (Does anything need to happen with the given data or the input data?):

OUTPUT (What needs to be displayed back on the screen?) :

ALGORITHM:

(use MS Word Paragraph indent buttons to indent. Hitting tab will create a new row in the table)

Flowchart: Chapter Number and Problem Number, Page Number

RoLearn M x O Challenge x D chapter an x Chapter an x C wwwchegs x C Chegg stuc x Chapter 4 x D (Addison- x New Tab x C www.chegg.com omework-help/write-static-method-selection-sort-sort-arra y-characters-chapte problem-16PP-solution-9780132162708-exc Chegg Study Search TEXTBOOK SOLUTIONS EXPERT Q&A; home study computer science software design/software design textbook solutions /java 6th edition chapter 4/ problem 16pp Java (6th Edition) Bookmark Show all steps: a ON BE Chapter 4, Problem 16PP Problem Suppose we can buy a chocolate bar from the vending machine for $1 each. Inside every chocolate bar is a coupon. We can redeem six coupons for one chocolate bar from the machine. This means that once you have started buying chocolate bars from the machine, you always have some coupons. We would like to know how many chocolate bars can be eaten if we startwith N dollars and a Mways redeem coupons if we have enough for an additional chocolate bar. For example, with 6 dollars we could consume 7 chocolate bars after purchasing 6 bars giving us 6 coupons and then redeeming the 6 coupons for one bar This would leave us with one extra coupon. For 11 dollars, we could have consumed 13 chocolate bars and still have one coupon left. For 12 dollars, we could have consumed 14 chocolate bars and have two coupons Write a program that inputs a Value for N and outputs how many chocolate bars we can eat and how many coupons we would have left over Use a loop that continues to redeem coupons as long as there are enough to get at least one chocolate bar. Ask me anything 2.59 PM 2/1/2016 R4

Solution

GIVEN:

It is clearly presented out as to how the machine works and data in the form of examples is presented:

For eg: If you have 11 $ :

You go and buy 6 bars using 6$ and in the end you have 6 coupons.

Now you use the 6 coupons to buy another bar and the balance amount that you have is 5$

The free bar that you get also fetches you a coupon.

Now with the 5$ you buy 5 bars and again get a total of 6 coupons, and finally you buy one last bar using those coupons.

So in total you have : 6+ 1+ 5+ 1 = 13

Hence on the same lines that data that you would be using is the value of the variable n.

INPUT:

Yes the user\'s input is definitely required to know how many bars can be consumed with the amount that is entered in the variable N.

OUTPUT:

The output should be plain and simple, printing the following two messges with their appropriate amounts/values:

LOGIC AND ALGORITHM:

Java help on flowchart and table design as follows...no program needed GIVEN (Based on your analysis, answer the question: “Is any data given to me?”: INPUT (Is

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site