NEW HERE? USE "AFORUM20" TO GET GET 20 % OFF CLAIM OFFER

UK: +44 748 007-0908 USA: +1 917 810-5386
My Orders
Register
Order Now

c program

    Write a complete program (with all the headings, etc.) that reads in 50 lines with two items per line (an int CubeBox ID and a float Length which represents the Length of a Box). All 50 lines of input are from a file. Similarly, the program must create an output file. You must prompt (to the screen) for the two filenames (a filename is to be read in as a string that is certain to be less than 30 chars long). Open both files, etc., read the input file; then write to the output file, writing three quantities per line: the CubeBoxID, the Length, and the computed Volume (which is the value Length x Length x Length). Remember to close both files before ending, and do not use a struct for this program. DO NOT make the program check for any errors.