Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COURSEWORK 2 To complete this coursework, you will design the behaviour of complex programs involving the fundamental programming constructs functions, operations, and file reading/writing. A

COURSEWORK 2 To complete this coursework, you will design the behaviour of complex programs involving the fundamental programming constructs functions, operations, and file reading/writing. A template Jupiter notebook and a text file are provided to complete the tasks. Time in class can be used to troubleshoot and get feedback on your program. The prestigious football club who originally hired our Software Development company is very pleased with the outcome and has requested an extension. The program that you have crafted for coursework 1 takes in rates of 6 skills of new players in the form of a score between 0 and 5 (shouldnt take inputs outside of this range). The six main criteria to rate the skills of the player should be: 1. Speed 2. Shooting 3. Passing 4. Defending 5. Dribbling 6. Physicality The program uses these individual skill rates to calculate an overall rating out of 100 using the formula: overall rate = summation of skills rate * 100 / 30 The resulting number (should be between 0 and 100) is then used to estimate the salary using the salary dataset: No Salary Overall rate 1 1000 80 2 700 60 3 500 45 4 400 30 From the dataset above, If the overall rate is greater than or equal 80, the salary should be: 1000 If the overall rate less than or equal to 30, the salary should be: 400 If the overall rate is in between two numbers, like 45 and 30, the output should be a range of the maximum salary and the minimum salary: 500 400 You are asked to add the following functionality (up to 68 points, depending on scoring an Excellent score in each rubric component): 1. Functions (8 points): Split and pack up your coursework 1 code into functions. The program must contain a main() function and at least two other functions called calculate_rating() and calculate_salary(). Use the main() function to call the other functions to receive the 6 players skill ratings, calculate the players score and their salary range. 2. Input expansion (8 points): Adjust your program to ask users to enter

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

More Books

Students also viewed these Databases questions

Question

Examine risk factors for sexual assault victimization.

Answered: 1 week ago