Question: Write a program that reads an arbitrary number of real values from a userspecifiedinput data file, rounds the values to the nearest integer, and writes
Write a program that reads an arbitrary number of real values from a userspecifiedinput data file, rounds the values to the nearest integer, and writes theintegers out to a userspecified output file. Make sure that the input file exists,and, if not, tell the user and ask for another input file. If the output file exists, askthe user whether or not to delete it If the output file does not exist, prompt for adifferent output filename
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
