Search⌘ K
AI Features

Solution: Workout Volume Tracker

Explore how to create a workout volume tracker program in C++ that uses loops, switch statements, and conditionals to gather user input, calculate total workout sets, and give feedback on training volume. This lesson helps you understand handling input, looping for repeated actions, and making decisions within your code.

We'll cover the following...

The main() function is a workout tracker that lets the user select a muscle group, enter how many days they trained it during the week, log their daily sets, and get feedback on their training volume.

  • Uses a while (true) loop to repeatedly show a workout menu until the user chooses to exit. ...