Question: Create a program that will read a CSV - f or - file of exercises ( default exercises.csv ) and create a Workout of the

Create a program that will read a CSV -f or -file of exercises (default exercises.csv) and create a Workout of the Day
- The program should accept an alternate -file
- The program should accept an -n or -num argument to control the number of exercises which are randomly chosen from the input file.
The "Reps" value will be randomly chosen from the given low/high range in the "reps" column
- The program should accept a -s or -seed value for the random seed to ensure reproducibility
- As well as a -e or -easy flag to indicate that the reps should be halved The file structure looks like this
C:> cat .\inputs\exercises.csv
exercise,reps
Burpees, 20-50
Situps, 40-100
Pushups, 25-75
Squats, 20-50
Pullups,10-30
Hand-stand pushups,5-20
Lunges, 20-40
Plank, 30-60
Crunches,20-30
Create a program that will read a CSV - f or -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!