Skip to content

Commit db7dfed

Browse files
authored
Create examination_slip
1 parent 1acfd43 commit db7dfed

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

examination_slip

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# 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
2+
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
3+
manner that you think how an examination slip should look like. Your program does not need to read any input from the user.
4+
5+
6+
7+
align_center = '{:^90}'
8+
align_left = '{:<80}'
9+
align_right1 = '{:>90}'
10+
align_left_data = '{:<30}'
11+
align_right_data = '{:>60}'
12+
print(
13+
'''
14+
''',
15+
align_center.format('<university name>'),
16+
'''
17+
''',
18+
align_center.format('<institution name'),
19+
'''
20+
''',
21+
align_center.format('EXAMINATION SLIP'),
22+
)
23+
24+
name = print('Candidate name : ')
25+
ID = print('ID : ')
26+
programme = print('Programme Name : ')
27+
semester = print('Semester : ')
28+
print('-----------------------------------------------------------------------------------------')
29+
print("\t\t\t\tPaperCode\t\tPaperName\t\t\tDate\t\t\tTime")
30+
31+
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t10am - 12pm")
32+
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t11am - 12pm")
33+
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t9.30am - 12pm")
34+
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t10am - 12pm")
35+
print("\t\t\t\t<code>\t\t\t<subject>\t\t\t<date>\t\t\t9am - 12pm")
36+
print('-----------------------------------------------------------------------------------------')
37+
38+
print("\t\t\t\t\tCHEATING IS PROHIBITED IN EXAMINATION!\t\t\t\t\t")
39+
40+
print('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprinted')

0 commit comments

Comments
 (0)