Find the minimum and maximum values

Assignment Help Python Programming
Reference no: EM133852538

Programming Fundamentals and Techniques

Assessment Question

Question: You are given a file named "data.txt" that contains integer numbers, one per line. Your task is to write a Python program to read these numbers from the file, find the minimum and maximum values, calculate the average, and create a new file named "result.txt" to store these statistics. Book assignment help service now!

data.txt >>>

10
5
7
13
20

 

Reference no: EM133852538

Questions Cloud

Risk for suicide and developing mental illness : Discuss four factors that place the client at risk for suicide and developing a mental illness.
Which factor the nurse can attribute decrease in baseline : The rate of 110 beats/min persists for more than 10 minutes. The nurse can attribute this decrease in baseline to which factor?
Which event would pose a potential risk to the fetus : The nurse finds that a pregnant patient is Rh negative and the fetus is Rh positive. Which event would pose a potential risk to the fetus?
What icd-ten-cm codes are reported : Shenita was seen in the emergency department after being bitten by a dog. She received treatment for the puncture wounds. What ICD-10-CM codes are reported?
Find the minimum and maximum values : Find the minimum and maximum values, calculate the average, and create a new file named "result.txt" to store these statistics
Which nursing intervention be performed for administration : The nurse is instructed to administer 12 mg of betamethasone. Which nursing intervention should be performed for the safe administration of the drug?
What are the barriers that reduce the ability for patients : What are the barriers (if any) that reduce the ability for patients to choose their care pathway? What type of leadership is used to ensure that policy?
Particular or unique patterns of nonverbal communication : Describe how you typically communicate nonverbally? Do you have particular or unique patterns of nonverbal communication?
Write a python program to read these numbers : Write a Python program to read these numbers from the file, find the minimum and maximum values, calculate the average, and create a new file named result.txt

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd