w can I do it?

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...
icon
Related questions
Question

How can I do it?

+
X My Ques
X gle Drive
X Google
X odd num
X Lab9_Fall 6
X Course: |
X CamScar
X Post Atte
X Inbox (1,
M
elearn.squ.edu.om/pluginfile.php/1422607/mod_resource/content/3/Lab9_Fall2021_Functions.pdf A
قائمة القراءة
Google Scholar
واتساب
YouTube
ترجمة
Google hil>
Gmail M
التطبيقات
+
133%
3 / 8
Lab9_Fall2021_Functions.pdf
Exercise 1:
Write a Python program (Lab9_ex1_Id.py) that inputs five positive integer numbers, finds their maximum
and sorts them in ascending order. Each number should be a distinct number (i.e. all numbers are different).
Each number should be input and returned by a function named getValue(.....) that receives a prompt
message. A second function ascSortNumbers(...) should sort numbers and display them on screen in
ascending order. A third function maxNumber(...) should receive five numbers as parameters and returns
the maximum number to the function main(..), which then prints the maximum number.
Please input 5 numbers: 30 30 20 10 56
Invalid input, try again
Please input 5 numbers: -9 67 20 10 97
Invalid input, try again
Please input 5 numbers: 17 15 8 98 2
Sorted: 2 8 15 17 98
Maximum is: 98
Figure 1. Exercise 1 Sample Run.
Exercise 2:
II
国
...
Transcribed Image Text:+ X My Ques X gle Drive X Google X odd num X Lab9_Fall 6 X Course: | X CamScar X Post Atte X Inbox (1, M elearn.squ.edu.om/pluginfile.php/1422607/mod_resource/content/3/Lab9_Fall2021_Functions.pdf A قائمة القراءة Google Scholar واتساب YouTube ترجمة Google hil> Gmail M التطبيقات + 133% 3 / 8 Lab9_Fall2021_Functions.pdf Exercise 1: Write a Python program (Lab9_ex1_Id.py) that inputs five positive integer numbers, finds their maximum and sorts them in ascending order. Each number should be a distinct number (i.e. all numbers are different). Each number should be input and returned by a function named getValue(.....) that receives a prompt message. A second function ascSortNumbers(...) should sort numbers and display them on screen in ascending order. A third function maxNumber(...) should receive five numbers as parameters and returns the maximum number to the function main(..), which then prints the maximum number. Please input 5 numbers: 30 30 20 10 56 Invalid input, try again Please input 5 numbers: -9 67 20 10 97 Invalid input, try again Please input 5 numbers: 17 15 8 98 2 Sorted: 2 8 15 17 98 Maximum is: 98 Figure 1. Exercise 1 Sample Run. Exercise 2: II 国 ...
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY