XXXX=4755(Use the value) Write a code in Python to do the following things: (a) To calculate...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
XXXX=4755(Use the value) Write a code in Python to do the following things: (a) To calculate the area of a trapezoid, (b) To calculate the distance of two points with given coordinates (x, y) and (x2, y2), (c) To calculate the mean value of items in a Dictionary of monthly total rainfall (mm). Give the Dictionary name myDictionaryXXXX = {'Jan': 154.9, 'Feb': 147.9, 'Mar': 180.0, 'Apr': 200.8, 'May': 165.9, 'Jun': 115.6, Jul': 118.1, Aug': 143.8, 'Sept': 171.2, 'Oct': 219.9, 'Nov': 271.2, 'Dec': XXX.X}. (d) To insert the following values of 'A' and 'B' to a list, myList1 = [11, 12, 13, [14, 15, 16, [17, 18, 19], 20, 21]] after items with value of 17 and 20. (e) Using the list in (d), myList1, retrieve the values 15 and 16 and store it as a new list, myList2, with 16 in the index 0, 15 in the index 1 and your student ID in the index 2 of the new list. XXXX=4755(Use the value) Write a code in Python to do the following things: (a) To calculate the area of a trapezoid, (b) To calculate the distance of two points with given coordinates (x, y) and (x2, y2), (c) To calculate the mean value of items in a Dictionary of monthly total rainfall (mm). Give the Dictionary name myDictionaryXXXX = {'Jan': 154.9, 'Feb': 147.9, 'Mar': 180.0, 'Apr': 200.8, 'May': 165.9, 'Jun': 115.6, Jul': 118.1, Aug': 143.8, 'Sept': 171.2, 'Oct': 219.9, 'Nov': 271.2, 'Dec': XXX.X}. (d) To insert the following values of 'A' and 'B' to a list, myList1 = [11, 12, 13, [14, 15, 16, [17, 18, 19], 20, 21]] after items with value of 17 and 20. (e) Using the list in (d), myList1, retrieve the values 15 and 16 and store it as a new list, myList2, with 16 in the index 0, 15 in the index 1 and your student ID in the index 2 of the new list.
Expert Answer:
Answer rating: 100% (QA)
XXXX4755Use the value Write a code in Python to do the following things To calculate the area of a trapezoid A top bottom 2 height A XXXX bottom 2 height A 4755 bottom 2 height A 4755 9999 2 5 A 4755 ... View the full answer
Related Book For
Principles of heat transfer
ISBN: 978-0495667704
7th Edition
Authors: Frank Kreith, Raj M. Manglik, Mark S. Bohn
Posted Date:
Students also viewed these marketing questions
-
2. The table below shows the data obtained during the series of Charpy impact tests on a commercial low-carbon steel alloy. At the end of the test, it was discovered that there was error of 1.5 J in...
-
The following 1H NMR absorptions were obtained on a spectrometer operating at 200MHz and are given in hertz downfield from the TMS standard. Convert the absorptions to units. (a) 436 Hz (b) 956 Hz...
-
The following 1H NMR absorptions were obtained on a spectrometer operating at 300MHz. Convert the chemical shifts from units to hertz downfield from TMS. (a) 2.1 (b) 3.45 (c) 6.30 (d) 7.70
-
Erin McQueen purchased 50 shares of BMW, a German stock traded on the Frankfurt Exchange, for 64.5 euros () per share exactly 1 year ago when the exchange rate was 0.67 /US$. Today the stock is...
-
Leos Auto Repairs Inc. borrowed $5500 to be repaid by end-of-month payments over four years. Interest on the loan is 9% compounded monthly. (a) What is the size of the periodic payment? (b) What is...
-
The circuit in Figure P8-50 is operating in the sinusoidal steady state with \(\omega=1 \mathrm{krad} / \mathrm{s}\). Use node-voltage analysis to find the steady-state response...
-
Summarize the evidence regarding the impact of the minimum wage on employment.
-
The net income for Freeman Co. for 2014 was $280,000. For 2014, depreciation on plant assets was $70,000, and the company incurred a loss on disposal of plant assets of $28,000. Compute net cash...
-
Discuss at least two reasons why job analysis is often described as the foundation of human resources management. Provide specific examples to support.
-
It is now January 2018. The year 2017 finished well. The finalized year-end financial statements for 2017 are provided in the excel file associated with this assignment. Randolf and Tenisa at Comfy...
-
Write a research paper about SAP ABAP developer and Benefits of ABAP developer.
-
The criminal justice system in the United States is based on the adversarial process. Does the same adversary principle apply in the juvenile justice system?
-
One of the most significant reforms in dealing with the juvenile offender was the opening of the New York House of Refuge in 1825. What were the social and judicial consequences of this reform on the...
-
The term discretion is often defined as selective decision making by police and others in the juvenile justice system who are faced with alternative modes of action. Discuss some of the factors...
-
What are comprehensive community-based delinquency prevention programs?
-
Prevention and control are the two broad-based approaches that can be used to reduce delinquency. How do these approaches differ?
-
If ON=8x-8, LM=7x+4, NM=x-5, and OL=3y-6, find the values of x and y for which LMNO must be a parallelogram. The diagram is not drawn to scale.
-
What is the difference between adsorption and absorption?
-
Derive an expression for the geometric shape factor F1??2 for a rectangular surface A1, 1 by 20 m placed parallel to and centered 5 m above a 20-m-square surface A2.GIVENRectangular surface A1 and...
-
Liquid benzene (specific gravity = 0.86) is to be heated in a counterflow concentric-pipe heat exchanger from 30 to 90?C. For a tentative design, the velocity of the benzene through the inside pipe...
-
Determine the rate of heat loss in Btu/h from the wall of a building in a 10-mph wind blowing parallel to its surface. The wall is 80 ft long, 20 ft high, its surface temperature is 80?F, and the...
-
A cone shaped recess at the top of drilled hole can be made by (a) countersinking (b) counterboring (c) taper drilling (d) grooing.
-
Climb milling is chosen while machining because (a) the chip thickness increases gradually (b) it enables the cutter to dig in and start the cut (c) the specific power consumption is reduced (d)...
-
Which of the machine tools can be used for boring ? 1. Lathe 2. Drilling machine 3. Vertical milling machine 4. Horizontal milling machine. (a) 1,2,3, (b) 1,3,4 (c) 2 and 4 (d) 1, 2, 3, 4
Study smarter with the SolutionInn App