Answered step by step
Verified Expert Solution
Link Copied!

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 #1(bold, underlined text is what the user types):
Num? 10
Num? 3
Num? 5
Num? 4
Num? 1
Num? -1
All (sorted): [10,5,4,3,1]
Evens: [10,4]
Odds: [3,5,1]
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

=+ (b) the August 4 warranty work.

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago