Question
The local county fair has hired you to create a program for tracking the contestants in their annual pumpkin growing contest! Each year multiple contestants
The local county fair has hired you to create a program for tracking the contestants in their annual pumpkin growing contest! Each year multiple contestants bring in their largest pumpkin, weigh it, and the judges award prizes for 1st, 2nd , and 3rd place. You will write a program which requests input in lbs for each contestants pumpkins weight, the contestants name, and output the 1st, 2nd, and 3rd, largest pumpkins, the average pumpkin size this year. Your program should have the following requirements: The program should record contestants names and pumpkin weights ,The program should determine the 1st, 2nd, and 3rd place winners, The program should display the average pumpkin weight, The program should provide appropriate context for each input and output by providing text prompts Use two vectors for storing user names and pumpkin weights. The winning pumpkin sizes should have the same index as the name associated with that entry (e.g., if the biggest pumpkin is at array index 12, the name associated with that pumpkin should also be at 12). In C++ using if, for, while
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