Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q#2 Write a program that reads the contents of file Numbers.txt into a list. The lowest number in the list. The highest number in the

Q#2 Write a program that reads the contents of file Numbers.txt into a list.

  • The lowest number in the list.
  • The highest number in the list.
  • The total of the numbers in the list.
  • The average of the numbers in the list.

Here is an example:

input: Enter the number to be checked: 15490

output: Number 15490 is not found in the list Low: 1350 High: 952310 Total: 6,116,015 Average: 339,778.61

Numbers.txt

56845 420125 795122 777541 45127 1350 800152 45655 555212 50052 782587 10255 952310 655231 38085 76651 7881 45834

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

Step: 3

blur-text-image

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions