Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Redesign this program and make it more complex. Create new flowchart(s) and table(s). Explain the changes made to the program Explain why the changes were
Redesign this program and make it more complex.
- Create new flowchart(s) and table(s).
- Explain the changes made to the program
- Explain why the changes were made
11 2 my_list [] 3 4 #2 5 total = int(input("How many numbers you want to add to the list : ")) 6 7 #3 8 for i in range(0, total): 9 my_list.append(int(input("Enter : "))) 10 11 print("You have entered: ", my_list) 12 13 #4 14 odd_product 15 even_product 1 16 17 #5 18 for i in my_list: 19 if(i % 2 == 20 even_product *= i 21 else: 22 odd_product *= i 23 24 #6 25 print("Product of all even numbers: , even_product) 26 = 1 *): 11 2 my_list [] 3 4 #2 5 total = int(input("How many numbers you want to add to the list : ")) 6 7 #3 8 for i in range(0, total): 9 my_list.append(int(input("Enter : "))) 10 11 print("You have entered: ", my_list) 12 13 #4 14 odd_product 15 even_product 1 16 17 #5 18 for i in my_list: 19 if(i % 2 == 20 even_product *= i 21 else: 22 odd_product *= i 23 24 #6 25 print("Product of all even numbers: , even_product) 26 = 1 *)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started