Question: a) Write a function with the name doubler. The function should take an integer parameter and return twice the value of the integer Test the

a) Write a function with the name doubler. The function should take an integer parameter and return twice the value of the integer Test the function with the following code: print(Double of 6 is,doubler(6)) The printout should be: Double of 6 is 12 b) Write a function with the name scoreToLetter. The function should take an integer parameter and give out a letter grade according to the following grade table: Score >=90 A 80<=score<90 B 70<=score< 80 C Test the function with the following code: X = 85 Print (Your grade is,scoreToLetter(x)) This should print: Your grade is B c) Move all functions to a module with name myFunctions.py. Import the myFunctions module and test all functions. d) Submit both myFunction.py and the file with your tests named tests.py Bonus (5 points) e) Write a function fullName that takes two parameters string parameters firstName and lastname. The function should return the full name, combining the first and last name, with a space in between. Test the function. print(My name is,fullName(sam,gff) The printout should be: My name is sam gff

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!