This preview shows page 1. Sign up to view the full content.
Unformatted text preview: second and third into doubles. 3) Calculates the profit made from selling a pitcher of lemonade, to two decimal places. (This can be broken down into calculating the income from selling a pitcher of lemonade and subtracting out the cost of making it.) 4) Prints out this value to the screen. Note: Steps 1 and 2 are intertwined. Sample Run (User input in bold and italics) How many lemons did you use to make your pitcher of lemonade? 10 How many bags of sugar did you use to make your pitcher of lemonade? 0.2 How much did you sell a cup of lemonade for, in dollars? 0.50 Your profit for selling a pitcher of lemonade was $2.75....
View Full Document
This note was uploaded on 06/09/2011 for the course COP 3223 taught by Professor Guha during the Spring '08 term at University of Central Florida.
- Spring '08