-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexamination_slip.py
40 lines (33 loc) · 1.63 KB
/
examination_slip.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Before sitting for any examination, students need to print out their examination slip that contains their personal details such as name, matric number, name of program, name of
# faculty, and course registration details that consists of the course code and the course name. At least five courses are registered for each semester. Display all the details in a
# manner that you think how an examination slip should look like. Your program does not need to read any input from the user.
align_center = '{:^90}'
align_left = '{:<80}'
align_right1 = '{:>90}'
align_left_data = '{:<30}'
align_right_data = '{:>60}'
print(
'''
''',
align_center.format('<university name>'),
'''
''',
align_center.format('<institution name'),
'''
''',
align_center.format('EXAMINATION SLIP'),
)
name = print('Candidate name : ')
ID = print('ID : ')
programme = print('Programme Name : ')
semester = print('Semester : ')
print('-----------------------------------------------------------------------------------------')
print("\t\t\t\tPaperCode\t\tPaperName\t\t\tDate\t\t\tTime")
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t10am - 12pm")
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t11am - 12pm")
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t9.30am - 12pm")
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t10am - 12pm")
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t9am - 12pm")
print('-----------------------------------------------------------------------------------------')
print("\t\t\t\t\tCHEATING IS PROHIBITED IN EXAMINATION!\t\t\t\t\t")
print('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprinted')