Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago

Question

=+1 What are the major issues related to international T&D?

Answered: 1 week ago