Question
How. Python. Q4a. Q4b. For simulation purpose, the following data structure is setup to contain the outcomes for TMA and TOA. In each assessment, 'Pass',
How. Python.
Q4a.
Q4b.
For simulation purpose, the following data structure is setup to contain the outcomes for TMA and TOA. In each assessment, 'Pass', 'Fail' and 'In Progress' are keys and the values are the list of student Ids.
{ 'TMA': { 'Pass': ['G123123', 'E223344'],
'Fail': ['E177890', 'M563746'],
'In Progress': ['M998877', 'G432432'] },
'TOA': { 'Pass': ['E223344'],
'Fail': ['G123123'],
'In Progress': ['E177890', 'M563746', 'M998877', 'G432432'] }
Indicate how this dictionary structure should be declared based on code given. Indicate the line number where the statement should be inserted.
Q4c.
Write statements that will implement the event handler for Equire button.
A prototype GUI is developed to allow students to enquire for their TMA and TOA results. The GUI allows student to enter their student Id, select TMA or TOA, and click "Enquire" to find out if they "Pass", "Fail" or the marking is still "In Progress". The initial design of the GUI is shown in Figure Q4(a). The following is the initial code for the GUI shown in Figure Q4(a). The user has commented that the scrolled text is not properly placed and the radio buttons for TMA and TOA should be align at the right as shown in Figure Q4(b). Nrgure (14) Based on the code given, write the necessary changes to correct the placement of the scrolled text and reflect the new position of the radio buttons. Bel Submit your codes for the enquire() function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started