Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to read positive numbers and print the data sorted in a variety of ways Prompt the user for integers as long as
Write a program to read positive numbers and print the data sorted in a variety of ways
Prompt the user for integers as long as the user is entering positive integers
Print out a list of all numbers in descending order
Print out a list of all even numbers, in the order they were entered
Print out a list of all odd numbers, in the order they were entered
Sample Run #bold underlined text is what the user types:
Num?
Num?
Num?
Num?
Num?
Num?
All sorted:
Evens:
Odds:
Note: This a beginner level class and this problem is meant to be completed by using tuples and lists. Please no classes and everything is meant to be put into thier own function.
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