CITX1401 Computational Thinking with Python

Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due

CITX1401 Computational Thinking with Python

Group project Trimester 1 2024

Project description:

Your group should construct a Python 3 program containing solution to the following problem. Your group will present the findings (i.e., explain the purpose of the program, explain the assumptions/conditions involved when designing the program etc) in class in the final teaching week. This assignment is worth 20%, partitioned as follows: 12% for designing the program, 3% for class presentation, and 5% for ‘live’ questioning-and-answering session. You will also need to email the program to Kam ([email protected]) just prior to the class presentation. All students within each group will receive the same grade, unless if there is disagreement, in which you need to inform me. If the allegation is determined to be true, the student in question will receive a grade reduction.  Reasons such as “I don’t have time to contribute to my group because of my on-going internship” or “I don’t know how to help my group” are not acceptable.

You are expected to have read and understood the University’s guidelines on academic conduct. The use of generative AIs (e.g., chatGPT, Llama, Baird) is strictly prohibited. Following UWA policy, “A penalty of 5 per cent of the total mark allocated for the assessment item is deducted per day for the first 7 days (including weekends and public holidays) after which the assignment is not accepted. Each 24-hour block is recorded from the time the assignment is due.

Task: Choose only one of the following problems and solve it

Problem #1

Write a Python 3 program to simulate the outcomes (win, draw and lose, and their corresponding percentages) of an upcoming soccer match between Manchester United (MU) and Arsenal. The match is scheduled on 12 May 2024. The simulation should consider various factors such as team form over the past 10 matches, head-to-head record between both clubs, home advantage, current season performance/current league position, fatigue/fixture congestion, injuries/suspensions to key players etc.

The following websites provide some useful information:

https://www.footballwebpages.co.uk/manchester-united/

https://www.footballwebpages.co.uk/arsenal

Problem #2

Write a Python 3 program to simulate the outcome of a bank’s home loan application. The simulation should consider various factors such as those described in the websites below. The program should ask the user to input the intended borrowing amount and if the application successful, the program should provide the following outputs: (i) the success rate/percentage, and (ii) the amount that the bank would lend to the applicant.

https://www.ratecity.com.au/home-loans/articles/standard-home-loan-eligibility-criteria

https://www.homeloanexperts.com.au/home-loan-articles/7-factors-that-affect-your-home-loan-eligibility/

Marking Criteria (100 points = 12%)

1. Design / Planning (10 points):

· Include a brief overview of your program.

· Include a complete design (flow chart) and show it during class presentation

· Your design should be logical and clear.

2. Functionality, execution and practicality of the program (50 points):

· Is the program practical? Are the conditions/inputs realistic?

3. Inputs and outputs (10 points + 10 points):

· Display the inputs received from the user.

· Display the outcomes clearly.

· GUI (10 points)

4. Error handlings (10 points):

· Implement basic error handling for unexpected inputs. Ensure the simulation program gracefully handles invalid choices without crashing.

5. Code Quality (10 points):

· Comment by inserting your names and date

· Comment by explaining complex sections or decision-making logic.

· Make sure your code is readable and clear.

IMPORTANT:

Other than the ‘random’ module, you are strictly not permitted to use other Python in-built/third-party libraries. Mark penalty will occur if your group violates this condition. If you are unclear about this restriction, please consult Kam in advance.

发表评论

电子邮件地址不会被公开。 必填项已用*标注