Question: Write the main 5 _ student function, that takes a list of Student objects and prints out the expected income for ten hours work (

Write the main5_student function, that takes a list of Student objects and prints out the expected income for ten hours work (for those students who are employed). Example usage:>> stud =[Student('Cleo',21, 'Adelaide', 'Adelaide', 218918, True), Student('Jake',20, 'Clovelly Park', 'Flinders', 218121, True), Student('Callum',22, 'Blackwood', 'Flinders', 218958, True), Student('David',24, 'Blackwood', 'Flinders', 218432, False), Student('Claudia',26, 'Blackwood', 'Flinders', 218301, False), Student('Mona',23, 'Royal Park', 'Adelaide', 218321, False), Student('Clay',18, 'Clovelly Park', 'Flinders', 218900, True), Student('Amy',21, 'Blackwood', 'Flinders', 218200, False), Student('William',20, 'Clovelly Park', 'Adelaide', 218761, False), Student('Luka',19, 'Royal Park', 'Adelaide', 218311, True)]>> main5_student(stud)output:Working students with 10 hours payment ------------------------------1. Cleo, payment: 210.02. Jake, payment: 165.03. Callum, payment: 210.04. Clay, payment: 165.05. Luka, payment: 165.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!