LAB ASSIGNMENT IMPORTANT: you need to complete the PDP thinking process for each program. Turn in item 1): one complete PDP 2) random_num list.py make a copy of the mipo_ex.py file from Chapter 3*. Rename and use it to create the new program. docx, on the program of your choice. Welcome to our random number game. How many integers should the computer pick for your list? Please enter a whole number: five You can only enter a number 1 or higher: 5 In inputs() set up an empty list, and ask the user how many numbers he/she wants the program to pick for the list. Set up a loop that runs the user-defined number of times. In the loop, the program will pick a random integer, and add each one to the list. Finish by sorting and returning the list. randomly selected & sorted: (0, 2, 3, 4, 91 Here is your list - printed w/shortcut method: 0, 2, 3, 4, 9 Tea0a yaTA 'door UTA paauTzd Your list minimum was 0 and maximum was 9. this time. 8T = 6 + +E + 2 +0 Would you like to pick again? Entery or n: In processing(), take in the number list as a parameter, and use Python list functions to find & return the total, minimum and maximum of the number list. In outputs(), take in all of the variables that the program has produced, as parameters. Then print 4 ways, showing options to display list info (see slide 13-15 & output sample) The user decides how many numbers will be picked for the list. HINT: PPT ch. 3 has code to pick random numbers. *Features in place > Functions: main, inputs, processing, outputs & get pos_int, with exception handling & restart in main(). Also includes comments - ""docstring"" at top and # short throughout. 2
LAB ASSIGNMENT IMPORTANT: you need to complete the PDP thinking process for each program. Turn in item 1): one complete PDP 2) random_num list.py make a copy of the mipo_ex.py file from Chapter 3*. Rename and use it to create the new program. docx, on the program of your choice. Welcome to our random number game. How many integers should the computer pick for your list? Please enter a whole number: five You can only enter a number 1 or higher: 5 In inputs() set up an empty list, and ask the user how many numbers he/she wants the program to pick for the list. Set up a loop that runs the user-defined number of times. In the loop, the program will pick a random integer, and add each one to the list. Finish by sorting and returning the list. randomly selected & sorted: (0, 2, 3, 4, 91 Here is your list - printed w/shortcut method: 0, 2, 3, 4, 9 Tea0a yaTA 'door UTA paauTzd Your list minimum was 0 and maximum was 9. this time. 8T = 6 + +E + 2 +0 Would you like to pick again? Entery or n: In processing(), take in the number list as a parameter, and use Python list functions to find & return the total, minimum and maximum of the number list. In outputs(), take in all of the variables that the program has produced, as parameters. Then print 4 ways, showing options to display list info (see slide 13-15 & output sample) The user decides how many numbers will be picked for the list. HINT: PPT ch. 3 has code to pick random numbers. *Features in place > Functions: main, inputs, processing, outputs & get pos_int, with exception handling & restart in main(). Also includes comments - ""docstring"" at top and # short throughout. 2
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Python
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY