After reading the assigned sections of the textbook for the week, complete the following program. Note: I highly recommend modularizing your work with functions as in Chapter 5 but, you can design this program as you see fit (as long as you don't use things we have not covered). Write a program that initializes a list with ten random integers between 1 and 1,000 (check the Random Numbers and Simulations section of Chapter 4). The program should then print, with descriptions, the following: 1. the list in original order 2. every element of the list at an odd index 3. every element of the list at an even index 4. all elements of the list in reverse order Note: There is no user input in this program. It just runs. But, it should display different results each time. Also, it will be manually graded by me. There are no test cases for this one. Write your program directly in the IDE. When done, after following the usual guidelines, submit the completed, tested, and fully documented program here. Submit the whole, completed program. Here is an example of the output. The original list is: [875, 38, 575, 1, 765, 865, 858, 183, 739, 417] The values at even indexes are: [875, 575, 765, 858, 739] The values at odd indexes are: [38, 1, 865, 183, 417] The list in reverse order is: [417, 739, 183, 858, 865, 765, 1, 575, 38, 875]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Alert dont submit AI generated answer.

After reading the assigned sections of the textbook for the week, complete the following program. Note: I highly recommend
modularizing your work with functions as in Chapter 5 but, you can design this program as you see fit (as long as you don't use
things we have not covered).
Write a program that initializes a list with ten random integers between 1 and 1,000 (check the Random Numbers and Simulations
section of Chapter 4). The program should then print, with descriptions, the following:
1. the list in original order
2. every element of the list at an odd index
3. every element of the list at an even index
4. all elements of the list in reverse order
Note: There is no user input in this program. It just runs. But, it should display different results each time. Also, it will be manually
graded by me. There are no test cases for this one.
Write your program directly in the IDE. When done, after following the usual guidelines, submit the completed, tested, and fully
documented program here. Submit the whole, completed program.
Here is an example of the output.
The original list is: [875, 38, 575, 1, 765, 865, 858, 183, 739, 417]
The values at even indexes are: [875, 575, 765, 858, 739]
The values at odd indexes are: [38, 1, 865, 183, 417]
The list in reverse order is: [417, 739, 183, 858, 865, 765, 1, 575, 38, 875]
Transcribed Image Text:After reading the assigned sections of the textbook for the week, complete the following program. Note: I highly recommend modularizing your work with functions as in Chapter 5 but, you can design this program as you see fit (as long as you don't use things we have not covered). Write a program that initializes a list with ten random integers between 1 and 1,000 (check the Random Numbers and Simulations section of Chapter 4). The program should then print, with descriptions, the following: 1. the list in original order 2. every element of the list at an odd index 3. every element of the list at an even index 4. all elements of the list in reverse order Note: There is no user input in this program. It just runs. But, it should display different results each time. Also, it will be manually graded by me. There are no test cases for this one. Write your program directly in the IDE. When done, after following the usual guidelines, submit the completed, tested, and fully documented program here. Submit the whole, completed program. Here is an example of the output. The original list is: [875, 38, 575, 1, 765, 865, 858, 183, 739, 417] The values at even indexes are: [875, 575, 765, 858, 739] The values at odd indexes are: [38, 1, 865, 183, 417] The list in reverse order is: [417, 739, 183, 858, 865, 765, 1, 575, 38, 875]
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education