100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Unit 4: Programming Assignment 2 Python Code Application $9.66
Add to cart

Other

Unit 4: Programming Assignment 2 Python Code Application

 116 views  0 purchase
  • Course
  • Institution

code for assignment 2 unit 4: Programming for the following criteria: P4 - Produce a design for a computer program to meet client requirements M3 - Optimise the computer program to meet client requirements Code is in Word Document with no problem download word document and copy and past ...

[Show more]

Preview 4 out of 176  pages

  • June 16, 2022
  • 176
  • 2021/2022
  • Other
  • Unknown
avatar-seller
print("Welcome to the competition")

print("")

import sys

T1=0

T2=0

T3=0

T4=0

Person1=0

Person2=0

Person3=0

Person4=0

Person5=0

Person6=0

Person7=0

Person8=0

Person9=0

Person10=0

Person11=0

Person12=0

Person13=0

Person14=0

Person15=0

Person16=0

Person17=0

Person18=0

Person19=0

Person20=0



point1=[]

point2=[]

point3=[]

,point4=[]

point5=[]

#place=[]




teams=4



Team=[]

Person=[]



print("Please enter (teams) for Teams and (individual) for Individual")



team_names1=[]

team_names2=[]

team_names3=[]

team_names4=[]

event=[]

event_names1=[]

event_names2=[]

event_names3=[]

event_names4=[]

event_names5=[]

rankings_1=[]

rankings_2=[]

rankings_3=[]

rankings_4=[]

rankings_5=[]

def singlesports():

waffle=[" 1st place"," 2nd place"," 3rd place"," 4th place"," 5th place"," 6th place"]

global point1

global point2

,global point3

global point4

global point5

global Person

global Person1

global Person2

global Person3

global Person4

global Person5

global Person6

global Person7

global Person8

global Person9

global Person10

global Person11

global Person12

global Person13

global Person14

global Person15

global Person16

global Person17

global Person18

global Person19

global Person20

while True:

for i in range(6):

try:



point=int(input("Input points for sports event" +waffle[i]))

if point > 0 and point < 20:

print("Score is set to", point)

, point5.append(point)



else:

print("Enter number between 1 and 20 ")

singlesports()

except ValueError:

print("Please make sure you enter a number!")

continue




option=str(input("Input name of individual who came 1st for sports" +waffle[i]))

if option == Person[0]:

Person1=Person1+point5[0]



elif option == Person[1]:

Person2=Person2+point5[0]



elif option == Person[2]:

Person3=Person3+point5[0]



elif option == Person[3]:

Person4=Person4+point5[0]



elif option == Person[4]:

Person5=Person5+point5[0]



elif option == Person[5]:

Person6=Person6+point5[0]



elif option == Person[6]:

Person7=Person7+point5[0]

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller fawazislam. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.66. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.66
  • (0)
Add to cart
Added