Computers and Technology

Can i get a python code for this ? 1. populate a list of size n = 25 with random integers in the range 10 60 inclusive but do not include any duplicates. the list of n integers should include only unique values strategy generate a random integer (1) if it not in the list add the integer to the list (see the python in operator) else return to (1) and generate another random integer use the fill() function in the template below but note it has to be modified to eliminate duplicates 2. display the list using the display() function. but with 5 integers per line (total of 5 lines) 3. display the list in sorted order (largest to smallest) by calling sortdescending 4. display the sum of all the integers in the list using your sum() function 5. display the minimum integer in the list using your minvalue() function min 6. display the maximum integer in the list using your function maxvalue() 7. display the average of the integers in the list using your function ave() 8. display the number of even integers using your function evens() and 9. display the number of odd integers (use function odds() ) 10. display the number of integers in the list that have 1 as their first digit i. e how many integers are of the form 1x using the function digit1xx() 11. display the number of integers in the list that have 1 as their last digit i. e how many integers are of the form x1 using the function digitxx1() 12. display the number of integers in the list that are divisible by 3 evenly with no remainder ( if x % 3 == 0 count the integer ) using function div3() 13. ask the user for an integer and display the number of times the integer appears in the list by calling the ncount() function hint: see the count function in lab 06 14. print the median call median() function 15. display the average of the largest and smallest integers in the list use your maxvalue() and minvalue() functions use the maxminave()

n = 25
a = 10
b = 60
myarray = []
myarray = fill (myarray, n,a, b)
display(myarray)

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, willwhitlock803
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
image
Computers and Technology, 22.06.2019 14:40, Kathryn014
You are working with a professional edition organization. they wish to install the expense tracker which requires the use of 4 custom tabs, 3 custom objects, and one custom app. if the company is already using 4 applications, 36 custom objects, and 7 custom tabs, what will happen when they try to install expense tracker?
Answers: 1
image
Computers and Technology, 22.06.2019 19:00, detrickboucicaut
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
image
Computers and Technology, 23.06.2019 07:00, MissSmartyPants88
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
Do you know the correct answer?
Can i get a python code for this ? 1. populate a list of size n = 25 with random integers in the ra...

Questions in other subjects:

Konu
Health, 04.11.2019 08:31