Engineering

Computer ScienceQ&A LibraryInstructions Sahara desert explorers call us for help! They want to know some statistics about the temperature in Sahara, but sometimes their thermometer fails to record the proper temperature. Help them to find which temperature is from correct recordings and which is broken and calculate statistics on given data. During the night, temperature in Sahara varies from -4 to -10 C. During the day, the temperature varies from 20 to 5 C. Create a function check_input (temperature) that will return True if this temperature can be from Sahara and False if it is from a broken thermometer (i.e., outside of the expected range). Write a program to use the check_input to create a list of valid temperatures and compute their statistics: 1. Create a list, where you will store the "possible" temperatures. Let's say temperatures list. 2. Input five numbers one by one (in this case measurement is an integer, but great that you thought about what type to convert!). For each value, check it with your function and if the function tells that it is the possible temperature for Sahara - add this value to the temperatures list. 3. Find the minimum, maximum, and average temperature in temperatures and print it to match the example below: Example input -10 -20 20 48 21 Example Output The minimum value is -10, the maximum value is 48, the average value is 19.75.Start your trial now! First week only $4.99!*arrow_forward*

Question

Python

- Create a function to match the specifications
- Use floating-point value division
- Write a program to get the user input and call the custom function and produce the desired output using a format function and __name__ == '__main__' to output the specified precision

Hints that I've given:

- If you wrote the code to work with one input value (including reading it) you can copy-paste it 5 times. Soon we will learn how to do it easier and simpler.
- To calculate the minimum and maximum search for the function that we've learned in the List section. For average think about sum and len functions.
- Average of some values is the sum of this values, divided by the number of values.

Tagged in

Engineering

Computer Science

Find answers to questions asked by students like you.

Q: P 2.7-7 + The circuit shown in Figure P 2.7-7 contains a dependent source. Determine the value of th...

A: Consider the following circuit diagram: The voltage across the 10Ω resistor is,va=10200×10-3va=2 V

Q: Based on market research, a film production company in Ectenia obtains the following information abo...

A: Since you have posted a question with multiple sub-parts, we will solve first three sub parts for yo...

Q: P3-10 Summary of payroll procedures Megerle Custom Cabinet Co. uses the job order cost system. In re...

A: Accrued payroll refers to all types of remuneration owing to workers but not yet delivered to them. ...

Q: The coordinates of points A and B are A(4, -2) and B(12, 10). What are the coordinates of the point ...

A: Click to see the answer

Q: Mistakes in a Song A random sample of six music students played a short song, and the number of mist...

A: Given, Student Before After A 9 8 B 10 7 C 9 12 D 4 3 E 7 2 F 8 7

Q: Given. 7 cos(x?) dx Do the following. (a) Find the approximations T8 and Mg for the given integral. ...

A: Given: a) ∫017cosx2dx T8 approximation : ∫abf(x)dx=∆x2fx0+2fx1+2fx2+...+2fxn-2+2fxn-1 ...

Q: What volume of a .32 M Mg(NO3)2 solution contains 45 g of Mg(NO3)2?

A: Click to see the answer

Q: 4. Compute gross profit earned by the company for each of the four costing methods. (Round your aver...

A: Gross Profit = Sales -Cost of goods sold Total sales = 440*90 + 200*100 =5960...

Q: Ning owns an Iphone 5. One day she loses her phone and contemplates a replacement. She considers bu...

A: Prof. Samuelson's theory of demand is based on the revealed preference axiom or hypothesis which sta...

Q: PPetzelmaniá, Inc., issues 7%, 10-year bonds with a face amount of $70,000 for $70,000 on January 1,...

A: The bonds are issued at par when market rate is similar to coupon rate of bonds.

Q: High density lipoprotein (HDL) in healthy males follows a normal distribution with a mean of 50 and ...

A: Given Information

Q: Draw all missing reactants and/or products in the appropriate boxes by placing atoms on the canvas a...

A: A. At first OH oxygen gets protonated to give better leaving group-OH2^+ . Then it undergo eliminati...

Q: Complete the table shown to the right for the half-life of a certain radioactive substance. Decay Ra...

A: To find half life.

Q: Let A be the set of integers that are multiples of 3 between 1 and 15 inclusive and B be the set of ...

A: If you like the solution then please give it a thumbs up.. The Answer is: Result : A intersec...

Q: A cannon elevated at some angle ? (unknown) fires a shell with some initial speed v0 (unknown) that ...

A: Click to see the answer

Q: Steam, initially at 700 lbf/in.2, 550°F undergoes a polytropic process in a piston–cylinder assembly...

A: Given: The pressure of steam initially, P1 = 700 lbf/in^2 The temperature of steam initially, T1 =...

Q: 2. For the function g(x)=9-(x+1)° do the following. (a) Sketch the graph of g on the axes provided. ...

A: Given data is: gx=9-x+12 To find the a Sketch the graph of g on the axes provided.(b) State the zero...

Q: Jack is using a ladder to hang lights upon his house. He places the ladder 5 feet from the base of h...

A: The angle of elevation is defined as the angle made by the line of sight to a point above the ground...

Q: Find the value of x if A, B, and C are collinear points and B is between A and C. AB = = 28 = 2x, BC...

A: Given A,B,C are collinear points and B is between A and C. AB=2x, BC=x-2 and AC=28 We know that Coll...

Q: 6.9. On a toy assembly line, daily output for each worker averages 46.7 units with a standard deviat...

A: (a) Obtain the percentage of workers have a daily output over 50 units. The percentage of workers ha...

Q: These equations represent precipitation reactions. Rewrite them as complete ionic equations. Include...

A: The chemical equation in which the dissolved ionic compounds or ionic compounds present in aqueous p...

Q: A trust officer at the Blacksburg National Bank needs to determine how to invest $100,000 in the fol...

A: Given data: Bond Annual Return Maturity Risk Tax-Free A 9.5% Long High Yes ...

Q: Rubbing alcohol is 70.% isopropyl alcohol by volume. How many millilitersof isopropyl alcohol are in...

A: According to guidelines i can answer only first question

Q: Researchers compared the effectiveness of a mood induction technique (exposure to depressing film fo...

A: The ANOVA F-test is used to compare the means of more than 2 groups. If there are k number of groups...

Q: The number of reviews for each of the local restaurants is counted. The results are normally distrib...

A: Click to see the answer

Q: A nurse is preparing to administer penicillin G intravenous bolus to a child. What is the lowest rec...

A: As a nurse its her responsibility to remember the formula while calculating the drug to avoid medica...

Q: Traceback (most recent call last): File "main.py", line 11, in user_artist = Artist(user_artist_nam...

A: From the main method provided above, I assume all three files are in the same directory.-Folder ...

Q: The potential energy of a 40 kg cannon ball is 14,000 Joules. How high (in meters) was the cannon b...

A: Click to see the answer

Q: You need to test a claim that more than 18% of students at your campus do not know their blood types...

A: Thanks for giving opportunity to serve for bartleby students, Hey, There ! Thank you for posting y...

Q: Which of the following items is not a product cost? Multiple Choice Freight cost on goods delivered ...

A: Cost included in manufacturing a product are called product costs. Cost of goods sold comprises of p...

Q: Tom Corp.'s bonds currently sell for $880. They have a 6.5% semiannual coupon rate and a 15-year mat...

A: Rate of return: It is a rate at which one can earn gain or loss from the investment over a period of...

Q: Suppose the MARR is 12%. Use the following table to answer the question-Which option should be selec...

A: Calculation of NPV for CMS: Initial Investment = $20,000 Annual Revenue = $6,688 Useful Life = 5 yea...

Q: A sphere of radius r has surface area A = 4πr2 and volumeV = (4/3)πr3. If the radius of sphere 2 is ...

A: a)The ratio of the areas, A2/A1

Q: Calculate the volume of a sample of nitrogen gas (N2) at 275°C if this sample has a volume of 10 L a...

A: Data given : T1= 275 ° C V1 = ? T2 = 500 ° C V2 = 10 L At constant pressure, V α T ( Charles' La...

Q: assume that markup is based on selling price. find the dollar markup and percent of markup on sellin...

A: Click to see the answer

Q: For each of the following scenarios, indicate whether the individual made a correct choice or an inc...

A: Budget is prepared at the beginning of the accounting period. It should includes the expenses and re...

Q: Determine the fair value in excess of book value for Persoff's acquisition date investment in Sea Cl...

A: You have asked 4 sub-parts under a single question, kindly repost the question to get the solution o...

Q: Select and use the most direct method to solve 2x(x + 1.5) = -1. Solve this equation using the most...

A: a) Simplify the given quadratic equation and solve it using factorization: 2x(x+1.5)=-1⇒2x2+3x=-1⇒2x...

Q: The average height of adult males in a certain country is 68.2 in., and 95% of adult males have heig...

A: To determine the solution to the inequality.

Q: 1-If vector C = A - B, then which statement is true: B - A = - C B - A = C None of these 2-If...

A: here, A, B, and C are vectors.

Q: Two blocks with masses m1 = 0.20 kg and m2 = 0.60 kg start at opposite ends of a frictionless U-shap...

A: Given data: The mass of blocks are, m1=0.2 kg m2=0.6 kg The initial height of block 1 is h1=36 cm=0....

Q: What is the correct oxidation of lead to lead sulfate half-reaction?

A: A question based on oxidation state, which is to be accomplished.

Q: If you need to set an experiment at 0 degree C, what will be the physical state of the water in the ...

A: Water is present in three forms: solid, liquid, and gas. Conversion from one form to another depends...

Q: one of the band members Darius wants to explore the Waters of the Great Barrier Reef there's is curr...

A: Given: Currently the band member is at -5 feet from the surface of water and shipwreck is at -75. Al...

Q: 6-67. Determine the force that the smooth roller C exerts on member AB. Also, what are the horizonta...

A: Click to see the answer

Q: Find the test statistic for a proportion "p" given the following information. Malloree ordered 15 pa...

A: Click to see the answer

Q: 21 The wheel in Figure 2.76 rolls with- out slipping and maintains contact with the ground. The pin-...

A: If we have a right angle triangle, say ∆ABC such that, AB is the hypotenuse, BC is the base and CA i...

Q: Given the timing Diagram below, Construct a truth table and find write the equation for the function...

A: A B C D F 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 1 0 0 0 1 ...

Q: When someone tells us to do an industry analysis, we should employ: a. The “tools of t...

A: We would understand and solve the problem in step 2. Please refer to step 2 for the correct solution...

Q: Which of the following is an incorrect conversion unit for magnesium oxide, MgO? a) 6.02 x 102...

A: MgO has a molecular mass of 40.3 g/mol. It can be written in different conversion units according to...