Question
19.3 Do problem 11.8 in the textbook: Write a program that reads an aritrary number if real values from a user-specified input data file, rounds
19.3 Do problem 11.8 in the textbook: Write a program that reads an aritrary number if real values from a user-specified input data file, rounds the values to the nearest integer, and writes the integers out to a user-specified output file. Make sure that the inout file exists, and if not, tell the user and ask for another input file. If the output file exists, ask the user whether or not to delete it. If not, prompt for a different output file name.
Run the script on a file containing the following data set: Use error detection and associated messaging for opening and closing of the file.
67.970, 65.510, 16.261, 11.900, 49.836, 95.974, 34.039, 58.527, 22.381, 75.127
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started