Concept explainers
Write a python program to solve this problem.
You have been hired by the Abahani football club to write a function that will calculate the total bonus on the yearly earnings of each player for the total goals they have scored.
Since the number of players will vary, you decide to use the "*args" technique that you learned in your CSE110 class. (No need to take any input from the user. Call the functions and print the values inside the function.)
For each player: pass the name, yearly earning, the total goal scored this season, bonus percent per goal.
Additionally,
- If the goal scored is above 30, add an extra bonus of 10000 taka.
- If it is between 20 and 30 inclusive, add an extra 5000 taka.
Function call:
function_name("Neymar", 1200000, 30, 10, "Jamal", 700000, 19, 5)
Output:
Neymar earned a bonus of 3605000 Taka for 30 goals.
Jamal earned a bonus of 665000 Taka for 19 goals.
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images
- How would I fill in the blank for this question in pythonarrow_forwardThis is for python, how would i go about doing this?arrow_forwardI can't seem to figure this out.. for python You have a business that cleans floors in commercial space and offices. You charge customers $0.45 per square yard, and some customers require multiple cleanings every month. You need two custom functions for your business. The first function takes a floor's length and width in feet and returns the area in square yards. The second void function takes the area, charge per square yard, and number of monthly cleanings as arguments and prints the cleaning cost. This latter function uses selection logic to print different output for single and multiple monthly cleanings (see Sample Outputs). Use a properly named constant for the charge per square yard, too.arrow_forward
- Solve the following problem with Python IDLE. The goal is to generate digital number signs. For simplicity, you will use only the numerals 0, 1, and 2, and the signs will be vertical. You will develop a collection of functions that can be used to draw numerals in the format commonly used to digital clocks and other displays. You will build the functions in a systematic way, writing a series of steps that build on one another, so it's important to progress through this assignment in order. Use the indicated function names. # function: horizontal_line# input: a width value (integer)# processing: prints a single horizontal line of the desired size# output: does not return anything# function: vertical_line# input: a shift value and a height value (both integers)# processing: generates a single vertical line of the desired height. the line # is offset from the left side of the screen using the shift value# output: does not return anything# function: two_vertical_lines# input: a width value…arrow_forwardUse Python to write a function display(num). The value of num is the parameter. If num is even, the function will display the even numbers in the range of 1 to num (both inclusive). If num is odd, the function will display the odd numbers in the range of 1 to num (both inclusive).arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education