Question: 10. Complete the below program to achieve the functionality. (5 Mark) Write a program that will calculate the TOTAL POINTS for a team when they

 10. Complete the below program to achieve the functionality. (5 Mark)

10. Complete the below program to achieve the functionality. (5 Mark) Write a program that will calculate the TOTAL POINTS for a team when they have finished the marathon The team can be of any size. For each team member, you wi11 take the number of miles run by that team member Then calculate the total les run by the team. For each mile a teamber run, he/she get 2 points. Finally, you want to calculate the total points for the team. mr your team run Eor a total distance of less than 5 miles, no bonus points are given, the points are calculated nomly each mile - 2 points) It your team run for a total distance of 50miles or more, your team will be awards BONUS 5 points. Examplel, Please input the no. of members: 1 Enter the minn ran by members 10 Enter the many ? Enter them by t 15 inter the man byter 20 Your team to point are 94pointe. Example Prevent the cart 5 Enter the mean by membert 15 Enter than by member: 19 Enter the mile meer! 12 Enter the mil mio 5 Enter them intymeter Your tout pointa 11 points

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 Databases Questions!