100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Unit 4: Programming Assignment 2 Python Code Application

Rating
-
Sold
-
Pages
176
Uploaded on
16-06-2022
Written in
2021/2022

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 code onto Python.

Show more Read less











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
June 16, 2022
Number of pages
176
Written in
2021/2022
Type
Other
Person
Unknown

Content preview

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]

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
fawazislam Bristol, City of Bristol College
View profile
Follow You need to be logged in order to follow users or courses
Sold
46
Member since
4 year
Number of followers
45
Documents
8
Last sold
1 year ago

3.0

11 reviews

5
3
4
1
3
3
2
1
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions