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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!