Question
Please solve!!! program, first, prompt the user for a # of years to enter for a player. Then, prompt the user for the player's starting
Please solve!!! program, first, prompt the user for a # of years to enter for a player. Then, prompt the user for the player's starting year and then read in the statistics of the player for each of those years. The program should finish by printing out the highest year and lowest year for the player. It should behave like the sample below:
Sample 1
# of years: 5
Starting year: 1999
Stat for year 1999: 4
Stat for year 2000: 3
Stat for year 2001: 8
Stat for year 2002: 10
Stat for year 2003: 12
Best stat was 12 in year 2003
Worst stat was 3 in year 2000
Sample 2
# of years: 6
Starting year: 2012
Stat for year 2012: 85
Stat for year 2013: 36
Stat for year 2014: 77
Stat for year 2015: 32
Stat for year 2016: 10
Stat for year 2017: 48
Best stat was 85 in year 2012
Worst stat was 10 in year 201
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started