1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Input/Output and Streams in Java

Connected

Bài tập

Calculate total sales

An online store processes daily sales transactions. Each sale amount needs to be increased by 10% tax before calculating the total revenue for financial reporting.

Hướng dẫn

100 XP
  • Use .map() to increase each sale amount by 10%.
  • Sum all updated values using .reduce().