0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Weekly Sales Report

Create a small report by visiting every sales value, displaying it, adding it to a total, and counting strong days.

Your task

Use the supplied sales array. Display each value as Day 1: 12 through Day 4: 21, then display Total: 60 and Strong days: 2. A strong day has sales of at least 15.

Hint

One pass can update a total and a conditional count.