id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com fundamentals > fund_donutSale
prev  |  next  |  chance

Another donut shop is having a sale! If you buy a kolache, a donut, and a drink, on your birthday, you only have to pay for the most expensive item between the three items!

For example, if the cost of the kolache is $1.50, the donut is $1.00, and the drink is $0.75, then you only have to pay $1.50!


fund_donutSale(1.5, 1.0, 0.75) → 1.5
fund_donutSale(1.0, 1.5, 0.75) → 1.5
fund_donutSale(1.0, 1.5, 1.25) → 1.5

...Save, Compile, Run (ctrl-enter)

public double fund_donutSale(double kolachePrice, double donutPrice, double drinkPrice) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy