Create a folder named lastnameCh6Sum where the last name is your last name. Example: summersCh6Sum Inside your new folder place a copy of the attached numbers.txt file I have attached below. Write the following python program and save it in your new folder This program must open up the numbers.txt file, read all the numbers in the file, calculate their total, output the sum to a new file named sum.txt as well as display the sum to the screen. Make sure to display a message to the user before you print the sum to the screen that lets the user know that the sum has been calculated and saved in the sum.txt file. Also display the total on the screen.
Create a folder named lastnameCh6Sum where the last name is your last name. Example: summersCh6Sum Inside your new folder place a copy of the attached numbers.txt file I have attached below. Write the following python program and save it in your new folder This program must open up the numbers.txt file, read all the numbers in the file, calculate their total, output the sum to a new file named sum.txt as well as display the sum to the screen. Make sure to display a message to the user before you print the sum to the screen that lets the user know that the sum has been calculated and saved in the sum.txt file. Also display the total on the screen.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 1DE
Related questions
Question
- Create a folder named lastnameCh6Sum where the last name is your last name. Example: summersCh6Sum
- Inside your new folder place a copy of the attached numbers.txt file I have attached below.
- Write the following python
program and save it in your new folder - This program must open up the numbers.txt file, read all the numbers in the file, calculate their total, output the sum to a new file named sum.txt as well as display the sum to the screen.
- Make sure to display a message to the user before you print the sum to the screen that lets the user know that the sum has been calculated and saved in the sum.txt file. Also display the total on the screen.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT