Question: Need these 2 coding questions completed. 9. Write a program that computes and prints the average of the numbers in a text file. You may

Need these 2 coding questions completed.  Need these 2 coding questions completed. 9. Write a program that

9. Write a program that computes and prints the average of the numbers in a text file. You may use the techniques in the textbook (higher order functions: mapping, reduce), or use other ways to calculate the average. I decided not to have you write statements where the user must enter a file with the numbers in the file. Rather, you may create a list that includes the numbers that are in the JW numbers.txt file, and just type the numbers in your list. Run the program and save it as a .py, file 10. Define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle's center point, and the circle's radius as arguments. The function should draw the specified circle. The algorithm should draw the circle's circumference by turning 3 degrees and moving a given distance 120 times. Calculate the distance moved with the formula 2.0 * ? * radius / 120.0 Hint: Use the examples on page 209, drawSquare and 215, def main), to help guide you. You can also look at the Turtle methods table on page 208, if needed, for an understanding of what the methods do

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!