This assignment is worth 24% of the final mark for ICT133, Structured Programming.
The cut-off date for this assignment is Sunday, 12 October 2025, 2355 hours.
All TMAs must be submitted electronically through Canvas. No partial submission of TMA will be accepted unless otherwise specified.
Assignment Requirements:
FullName_133TMA.docx. Rename the file with your SUSS PI and full name join with “_133TMA” e.g., “SUSS_PI-TomTanKinMeng_133TMA.docx” (without the quotes).
Native Singapore Writers Team
This question covers materials in Seminar 1 and 2. Use and express selection structure for this question. Functions, repetition, or collections are not necessary for this question.
(a) Write a program to find the colour of square X on a board with colour patterns. Your program will ask a user to input the size of the board, which can be any odd integer from 3 to 9 inclusive. Imagine 2 diagonal lines cutting across the board with no colours. The top triangle with be Green, bottom Red, left Yellow and right Blue. A size 7 board example is shown below.

The program will ask the user for the row and column numbers of square X. Column numbers start from 1 and run from left to right. Row numbers start from 1 and run from top to bottom. If X falls on the diagonals, the program shall print ‘No colour’, else it shall print the colour of square X. The program shall do error checking on size, row, column numbers and not ask the user for unnecessary inputs if the previous input already failed the check. Sample runs are given below. Submit and paste screenshots of at least FOUR program executions, with different inputs.
Sample 1:
Enter size of board (3-9, odd): 8
Invalid board size! Please enter an odd integer between 3 and 9
Sample 2:
Enter size of board (3-9, odd): 3
Enter the row number: 2
Enter the column number: 1
Colour is Yellow
Sample 3:
Enter size of board (3-9, odd): 7
Enter the row number: 3
Enter the column number: 4
Colour is Green
Sample 4:
Enter size of board (3-9, odd): 9
Enter the row number: 7
Enter the column number: 3
No colour
(10 marks)
(b) The pattern of the board has been changed to the type below. Write a program to ask a user to input the size of the board, which now must be an even integer from 4 to 10 inclusive. The program will ask the user for the row and column numbers of square X and print out the colour of square X or ‘No colour’ if it falls within the central white space. Submit and paste screenshots of at least FOUR program executions, with different inputs.

Sample 1:
Enter size of board (4-10, even): 4
Enter the row number: 3
Enter the column number: 1
Colour is Yellow
Sample 2:
Enter size of board (4-10, even): 6
Enter the row number: 3
Enter the column number: 1
Colour is Green
Sample 3:
Enter size of board (4-10, even): 8
Enter the row number: 6
Enter the column number: 7
Colour is Red
Sample 4:
Enter size of board (4-10, even): 10
Enter the row number: 7
Enter the column number: 3
No colour
(10 marks)
This question covers materials up to Seminar 3. Make use of functions, selection and repetition structures. NO data structures like sets, lists or dictionary should be used for this question. The eval() function should not be used. Keep the program modular by defining other functions if necessary.
For example,
(10 marks)
Sample 1:
Enter size of board (4-10, even): 3
Invalid board size! Please enter an even integer between 4 and 10
Sample 2:
Enter size of board (4-10, even): 6
GGGBBB
GG–BB
G—-B
Y—-R
YY–RR
YYYRRR
Sample 3:
Enter size of board (4-10, even): 8
GGGGBBBB
GGG–BBB
GG—-BB
G——B
Y——R
YY—-RR
YYY–RRR
YYYYRRRR
Sample 4:
Enter size of board (4-10, even): 10
GGGGGBBBBB
GGGG–BBBB
GGG—-BBB
GG——BB
G——–B
Y——–R
YY——RR
YYY—-RRR
YYYY–RRRR
YYYYYRRRRR
(10 marks)
(c) Enhance the above to print out a board where rings of numbers cover the region with no colours, starting with 1 at the outermost ring and increasing by 1 as it moves towards the centre. Sample runs are given below. NO data structures like sets, lists or dictionaries should be used. Submit and paste screenshots of at least FOUR program executions, with different inputs.

Sample 1:
Enter size of board (4-10, even): 4
GGBB
G11B
Y11R
YYRR
Sample 2:
Enter size of board (4-10, even): 6
GGGBBB
GG11BB
G1221B
Y1221R
YY11RR
YYYRRR
Sample 3:
Enter size of board (4-10, even): 8
GGGGBBBB
GGG11BBB
GG1221BB
G123321B
Y123321R
YY1221RR
YYY11RRR
YYYYRRRR
Sample 4:
Enter size of board (4-10, even): 10
GGGGGBBBBB
GGGG11BBBB
GGG1221BBB
GG123321BB
G12344321B
Y12344321R
YY123321RR
YYY1221RRR
YYYY11RRRR
YYYYYRRRRR
(10 marks)
This question covers materials up to seminar 4. Employ structure programming and use of functions to make the program modular.
Write a multi-player game where everyone starts with a score of 501 points, with the aim of deducting it to 0 points within the least number of turns.
A sample run is given below. Submit and paste screenshots to show a sample run of your game.
| Enter player 1’s name (empty to end): alan
Enter player 2’s name (empty to end): Please enter at least 2 players Enter player 2’s name (empty to end): Alan Player names must be unique Enter player 2’s name (empty to end): tom Enter player 3’s name (empty to end): john Enter player 4’s name (empty to end): Tom’s turn 1, current score is 501 points Tom’s round 1, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, Tom’s new score is 481 points Tom’s round 2, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, Tom’s new score is 461 points Tom’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a double, total 2×20=40 points, Tom’s new score is 421 points Next player… Alan’s turn 1, current score is 501 points Alan’s round 1, choose a number from 1 to 20 inclusive, or 25: 25 It’s a double, total 2×25=50 points, Alan’s new score is 451 points Alan’s round 2, choose a number from 1 to 20 inclusive, or 25: 25 It’s a double, total 2×25=50 points, Alan’s new score is 401 points Alan’s round 3, choose a number from 1 to 20 inclusive, or 25: 25 It’s a single, total 1×25=25 points, Alan’s new score is 376 points Next player… John’s turn 1, current score is 501 points John’s round 1, choose a number from 1 to 20 inclusive, or 25: 20 It’s a triple, total 3×20=60 points, John’s new score is 441 points John’s round 2, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, John’s new score is 421 points John’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, John’s new score is 401 points Next player… Tom’s turn 2, current score is 421 points Tom’s round 1, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, Tom’s new score is 401 points Tom’s round 2, choose a number from 1 to 20 inclusive, or 25: 20 It’s a double, total 2×20=40 points, Tom’s new score is 361 points Tom’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 |
It’s a double, total 2×20=40 points, Tom’s new score is 321 points
Next player…
Alan’s turn 2, current score is 376 points
Alan’s round 1, choose a number from 1 to 20 inclusive, or 25: 25
It’s a double, total 2×25=50 points, Alan’s new score is 326 points
Alan’s round 2, choose a number from 1 to 20 inclusive, or 25: 25
It’s a single, total 1×25=25 points, Alan’s new score is 301 points Alan’s round 3, choose a number from 1 to 20 inclusive, or 25: 25 It’s a single, total 1×25=25 points, Alan’s new score is 276 points
Next player…
John’s turn 2, current score is 401 points
John’s round 1, choose a number from 1 to 20 inclusive, or 25: 20
It’s a triple, total 3×20=60 points, John’s new score is 341 points John’s round 2, choose a number from 1 to 20 inclusive, or 25: 20
It’s a triple, total 3×20=60 points, John’s new score is 281 points
John’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a triple, total 3×20=60 points, John’s new score is 221 points
Next player…
Tom’s turn 3, current score is 321 points
Tom’s round 1, choose a number from 1 to 20 inclusive, or 25: 20
It’s a double, total 2×20=40 points, Tom’s new score is 281 points
Tom’s round 2, choose a number from 1 to 20 inclusive, or 25: 20
It’s a single, total 1×20=20 points, Tom’s new score is 261 points
Tom’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, Tom’s new score is 241 points
Next player…
Alan’s turn 3, current score is 276 points
Alan’s round 1, choose a number from 1 to 20 inclusive, or 25: 25
It’s a double, total 2×25=50 points, Alan’s new score is 226 points
Alan’s round 2, choose a number from 1 to 20 inclusive, or 25: 25
It’s a double, total 2×25=50 points, Alan’s new score is 176 points Alan’s round 3, choose a number from 1 to 20 inclusive, or 25: 25 It’s a single, total 1×25=25 points, Alan’s new score is 151 points
Next player…
John’s turn 3, current score is 221 points
John’s round 1, choose a number from 1 to 20 inclusive, or 25: 20
It’s a double, total 2×20=40 points, John’s new score is 181 points John’s round 2, choose a number from 1 to 20 inclusive, or 25: 20
It’s a double, total 2×20=40 points, John’s new score is 141 points
John’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a triple, total 3×20=60 points, John’s new score is 81 points
Next player…
Tom’s turn 4, current score is 241 points
Tom’s round 1, choose a number from 1 to 20 inclusive, or 25: 20
It’s a double, total 2×20=40 points, Tom’s new score is 201 points
Tom’s round 2, choose a number from 1 to 20 inclusive, or 25: 20
It’s a single, total 1×20=20 points, Tom’s new score is 181 points
Tom’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a single, total 1×20=20 points, Tom’s new score is 161 points
Next player…
Alan’s turn 4, current score is 151 points
Alan’s round 1, choose a number from 1 to 20 inclusive, or 25: 25
It’s a double, total 2×25=50 points, Alan’s new score is 101 points
Alan’s round 2, choose a number from 1 to 20 inclusive, or 25: 25 It’s a single, total 1×25=25 points, Alan’s new score is 76 points Alan’s round 3, choose a number from 1 to 20 inclusive, or 25: 25 It’s a double, total 2×25=50 points, Alan’s new score is 26 points
Next player…
John’s turn 4, current score is 81 points
John’s round 1, choose a number from 1 to 20 inclusive, or 25: 20
It’s a single, total 1×20=20 points, John’s new score is 61 points John’s round 2, choose a number from 1 to 20 inclusive, or 25: 19
It’s a double, total 2×19=38 points, John’s new score is 23 points
John’s round 3, choose a number from 1 to 20 inclusive, or 25: 7
It’s a triple, total 3×7=21 points, John’s new score is 2 points
Next player…
Tom’s turn 5, current score is 161 points
Tom’s round 1, choose a number from 1 to 20 inclusive, or 25: 20
It’s a triple, total 3×20=60 points, Tom’s new score is 101 points
Tom’s round 2, choose a number from 1 to 20 inclusive, or 25: 20
It’s a triple, total 3×20=60 points, Tom’s new score is 41 points
Tom’s round 3, choose a number from 1 to 20 inclusive, or 25: 20 It’s a double, total 2×20=40 points, Tom is busted, reverting to
initial score 161! Try again next turn
Next player…
Alan’s turn 5, current score is 26 points
Alan’s round 1, choose a number from 1 to 20 inclusive, or 25: 20 It’s a double, total 2×20=40 points, Alan is busted, reverting to
initial score 26! Try again next turn
Next player…
John’s turn 5, current score is 2 points
John’s round 1, choose a number from 1 to 20 inclusive, or 25: 1
It’s a double, total 2×1=2 points, John wins in 5 turns!
Tom’s score is 161
Alan’s score is 26
John’s score is 0
(15 marks)
Native Singapore Writers Team
This question covers materials up to seminar 4. Employ structure programming and use of functions to make the program modular.
Silver Screen is a cinema operator looking for a simple application to help them manage seat bookings.
Screen
A B C D E F G H
(a) Write a menu-driven application to manage the seat booking process. The application will first ask the user to input the number of rows and the number of seats per row to initialize a seating plan as a nested list. This nested list shall consist of a list of rows where each row is a list of seats. For example, the initial seating plan of the above cinema is represented by the nested list below.
seatingPlan = [[‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’],
[‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’],
[‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’],
[‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’],
[‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’, ‘O’]]
Sample 1:
Enter number of rows (3-10 or 0 to quit): 5
Enter number of seats per row (3-10 or 0 to quit): 11
Invalid input! Please try again
Enter number of seats per row (3-10 or 0 to quit): 0
Program end
Sample 2:
Enter number of rows (3-10 or 0 to quit): 6
Enter number of seats per row (3-10 or 0 to quit): 8
Booking Menu
————
Enter option: 1
Screen
A B C D E F G H
Booking Menu
————
Enter option: 2
Screen
A B C D E F G H
Enter seats to book (eg C05-4) or 0 to cancel): ABC
Invalid input! Please enter in @NN-# format where @:seat label,
NN:row, #:number of seats
Enter seats to book (eg C05-4) or 0 to cancel): A07-1
Invalid row! Please enter in @NN-# format where @:seat label, NN:row,
#:number of seats
Enter seats to book (eg C05-4) or 0 to cancel): I01-1
Invalid seat label! Please enter in @NN-# format where @:seat label,
NN:row, #:number of seats
Enter seats to book (eg C05-4) or 0 to cancel): D03-3
Seats booked
Screen
A B C D E F G H
Booking Menu
————
Enter option: 2
Screen
A B C D E F G H
Enter seats to book (eg C05-4) or 0 to cancel): A03-4
Not all seats at those locations are available! Please try again
Enter seats to book (eg C05-4) or 0 to cancel): A03-3
Seats booked
Screen
A B C D E F G H
Booking Menu
————
Enter option: 2
Screen
A B C D E F G H
Enter seats to book (eg C05-4) or 0 to cancel): A01-9
Invalid number of seats! Please enter in @NN-# format where @:seat label, NN:row, #:number of seats
Enter seats to book (eg C05-4) or 0 to cancel): 0
Cancelled
Booking Menu
————
Enter option: 0
Program end
(20 marks)
(b) Enhance the above application with a new option to auto select the best seats to book. With this option, the user will only need to input the number of seats required and the application will find the best seats to book. It will start from the last row and work forward towards the screen. In each row, it will try to find available seats as close to the centre of the row as possible. Selected seats should form a continuous row that has the required number of seats. The seats cannot span multiple rows and cannot have gaps in between seats.
Enter number of rows (3-10 or 0 to quit): 4
Enter number of seats per row (3-10 or 0 to quit): 6
Booking Menu
————
Enter option: 3
Enter number of seats (0 to cancel): 7
Invalid input! Please try again
Enter number of seats (0 to cancel): 0
Cancelled
Booking Menu
————
Enter option: 3
Enter number of seats (0 to cancel): 1
Screen
A B C D E F
Would you like to book the seat C04 (y/n or 0 to cancel): n
Screen
A B C D E F
Would you like to book the seat D04 (y/n or 0 to cancel): n
Screen
A B C D E F
Would you like to book the seat B04 (y/n or 0 to cancel): n Screen
A B C D E F
Would you like to book the seat E04 (y/n or 0 to cancel): y
Seats booked
Screen
A B C D E F
Booking Menu
————
Enter option: 3
Enter number of seats (0 to cancel): 5
Screen
A B C D E F
Would you like to book the seats A03 to E03 (y/n or 0 to cancel): n
Screen
A B C D E F
Would you like to book the seats B03 to F03 (y/n or 0 to cancel): y
Seats booked
| Screen
A B C D E F 01 O O O O O O 02 O O O O O O 03 O X X X X X 04 O O O O X O Booking Menu ———— 1. Show seats 2. Book seats 3. Auto select seats 0. Quit Enter option: 3 Enter number of seats (0 to cancel): 6 Screen A B C D E F 01 O O O O O O 02 O O O O O O 03 O X X X X X 04 O O O O X O Would you like to book the seats A02 to F02 (y/n or 0 to cancel): n Screen A B C D E F 01 O O O O O O 02 O O O O O O 03 O X X X X X 04 O O O O X O Would you like to book the seats A01 to F01 (y/n or 0 to cancel): n Unable to find available seats Booking Menu ———— 1. Show seats 2. Book seats 3. Auto select seats 0. Quit Enter option: 0 Program end |
(15 marks)
—- END OF ASSIGNMENT —-
The post ICT 133 Structured Programming Tutor-Marked Assignment July 2025 Presentation appeared first on Singapore Assignment Help.
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.