Answer please Use Sypder to develop your code for the following problems and drop your python (...py)
Fantastic news! We've Found the answer you've been seeking!
Question:
Answer please
Transcribed Image Text:
Use Sypder to develop your code for the following problems and drop your python (...py) code into the DB T2P2 in the Tests folder. This test and Drop Box will be active till Midnight of 11/13/2022 [15] 1. Use the radius of 4 inch and pi value of 3.14159 (r=4.0 and pi=3.14159) to calculate the area and circumference of a circle. You are asked: i. ii. iii. To develop a main function as driver which will have the call function of the circle (call function to circle will pass the radius and pi value to the function that calculate area and circumference), To develop a function (you can name it as circle) that takes r and pi, calculates area and circumference, and returns these two values to the main function, To display the area and circumference inside the main function to the user. [10] Start with the following list of numbers. numbers = [10, 3, 7, 1, 9, 4, 2, 8, 5, 6] 2. You can use filter, map and sum to calculate the total (sum) of the squared values of even integers in that list. [Even integers in the list of "numbers" are selected, squared, and added]. You can also use list comprehensions, or list processing operations with functions to accomplish the objective. Your output may look like: Numbers=[10, 3, 7, 1, 9, 4, 2, 8, 5, 6] Sum of squared even numbers in the list: 220 Use Sypder to develop your code for the following problems and drop your python (...py) code into the DB T2P2 in the Tests folder. This test and Drop Box will be active till Midnight of 11/13/2022 [15] 1. Use the radius of 4 inch and pi value of 3.14159 (r=4.0 and pi=3.14159) to calculate the area and circumference of a circle. You are asked: i. ii. iii. To develop a main function as driver which will have the call function of the circle (call function to circle will pass the radius and pi value to the function that calculate area and circumference), To develop a function (you can name it as circle) that takes r and pi, calculates area and circumference, and returns these two values to the main function, To display the area and circumference inside the main function to the user. [10] Start with the following list of numbers. numbers = [10, 3, 7, 1, 9, 4, 2, 8, 5, 6] 2. You can use filter, map and sum to calculate the total (sum) of the squared values of even integers in that list. [Even integers in the list of "numbers" are selected, squared, and added]. You can also use list comprehensions, or list processing operations with functions to accomplish the objective. Your output may look like: Numbers=[10, 3, 7, 1, 9, 4, 2, 8, 5, 6] Sum of squared even numbers in the list: 220
Expert Answer:
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Consider the following loan information. . Total acquisition price: $3,000,000. Property consists of twelve office suites, five on the first floor and seven on the second. Contract rents: three...
-
The four employees for ACWorks are paid on an hourly basis. During the week of December 25-31, 2019, these employees worked the hours indicated. Information about their hourly rates, marital status,...
-
A ship is pulled at a constant speed by two small boats, A and B, as shown. The engine of the ship does not produce any force. The tension in each cable between A and B and the ship is 4000 N. a....
-
A motor, operating on 60 Hz power, has high vibration in the axial direction on the end brackets. The vibration frequency is 7,200 cpm. The motor is only running at 1,180 rpm. What is the excitation...
-
A Chinese manufacturing subsidiary produces items sold in Australia. The items cost the equivalent of $7.00 to produce and are sold to customers for $9.50. A Cayman Islands subsidiary buys the items...
-
Did the government have an easy time convicting Elizabeth Holmes?
-
A bank categorizes its customers into one of three groups based on their banking habits. A random sample of 30 customers from each group was selected, and the number of times each customer visited...
-
Determine the points (if any) on the curve C at which the vector field F is tangent to C and normal to C. Sketch C and a few representative vectors of F. 1. F = (x, y) , where C = { (x, y): x 2 + y 2...
-
The scale of a drawing placed on a sheet is determined by the scale set in that views Properties. A) True B) False
-
Fill in the blank field in this text: You use the[1]_______________________________________________________ tool to make various components temporarily invisible.
-
Cabinets typically come in 2" increments. A) True B) False
-
To casually look at a Revit project set up for Worksharing, simply copy it to the Desktop using Windows Explorer. A) True B) False
-
Creating photo-realistic renderings can take a significant amount of time for your computer to process. A) True B) False
-
Our country experienced shortage of alcohol and facial masks due to the COVID-19 crisis. Explain this event/issue using one of the four concepts of economic practices in the choices we make in...
-
An item of depreciable machinery was acquired on 1 July 2009 for $120,000 by cash It is expected to have a useful life of 10 years and zero salvage value On 1 July 2012, it was decided to revalue the...
-
In the game of soccer, players are sometimes awarded a penalty kick. The player who kicks places the ball 12 yards from the 24-foot-wide goal and attempts to kick it past the goalie into the net....
-
Suppose that GLC earns a $2000 profit each time a person buys a car. We want to determine how the expected profit earned from a customer depends on the quality of GLCs cars. We assume a typical...
-
Suppose you work for a survey research company. In a typical survey, you mail questionnaires to 150 companies. Of course, some of these companies might decide not to respond. Assume that the...
-
What is a P-value for a hypothesis test?
-
You plan a survey to estimate the proportion of students on your campus who carry an iPad regularly. How many students should be in the sample if you want (with 95% confidence) a margin of error of...
-
What is a hypothesis test?
Study smarter with the SolutionInn App