1. 学ぶ
  2. /
  3. コース
  4. /
  5. Cleaning Data in Java

Connected

演習

Computing percentiles

You have computed the mean, minimum, and maximum transaction amounts of sample coffee sales. Now find the median, 25th, and 75th percentiles of the transaction amounts formatted to two decimal places.

date coffee_name payment_method quantity amount
3/1/24 Latte cash 1 $6.26
3/5/24 Hot Chocolate card 3 $32.51
3/6/24 Americano card 2 $18.70

The necessary packages such as LocalDate, Arrays, List and DescriptiveStatistics have been imported for you.

指示

100 XP
  • Compute the median transaction amount, or the 50th percentile, of the coffee sales.
  • Compute the 25th and 75th percentiles of the transaction amounts.