subject

Write a python code that executes the following:Input a sorted list of integers in the range 0-99. Without using built-in libraries, methods, or functions, calculate the mean, median, and mode of your input data. The median is the middle value in a sorted list of numbers. If the number of values is even, then the median is the average of the two middle values. The mode is the most common value occurring in the list. In the event of a tie, pick the smallest value for the mode. To find the mode, use the counting list trick from question 3 to keep track of the number of occurrences of each integer. Hint: To create a counting list of length 100, initially containing all 0’s, you can say: counter = [0] * 100.Example: python stats. pyEnter a sorted list of integers each in the range (0-99): 1 2 3 99Values: 4Mean : 26.2Median: 2.5Mode : 1

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
Me2540 week 5 assignment what do i want to know?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
You know the right answer?
Write a python code that executes the following:Input a sorted list of integers in the range 0-99. W...
Questions
question
Mathematics, 16.10.2020 18:01
question
Geography, 16.10.2020 18:01
question
Mathematics, 16.10.2020 18:01
question
Mathematics, 16.10.2020 18:01
question
Mathematics, 16.10.2020 18:01
question
Mathematics, 16.10.2020 18:01
Questions on the website: 13722363