YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Is This Discount the Same - Intro to Java Programming

Get Embed Code
6 Languages

Showing Revision 5 created 05/25/2016 by Udacity Robot.

  1. The flight for Las Vegas won't change and the flight to New York City won't
  2. change, but the flight to Chicago will be less this time. When we write the
  3. condition this way, the original price 100 will not be less than 100, so it
  4. will go into the L's and subtract 20. Whereas before, it went into the L's and
  5. subtracted only 10. For the threshold value, it matters whether we say original
  6. price is greater than 100 or original price is less than 100. Even if we switch
  7. the if and else clauses because it changes which group 100 falls in.