In this exercise, you will modify the program from TRY THIS Exercise 17. If necessary, create a

Question:

In this exercise, you will modify the program from TRY THIS Exercise 17. If necessary, create a new project named ModifyThis18 Project and save it in the Cpp8\Chap14 folder. Copy the instructions from the TryThis17.cpp file into a new source file named ModifyThis18.cpp. Change the filename in the first comment to ModifyThis18.cpp.Also change the name of the sequential access file in both the open function and the cout statement to ModifyThis18.txt. Modify the program so that each record contains an additional field: the cube of the number in the first field. For example, the first record will contain 10#100#1000 followed by the newline character. Save and then run the program. Verify that the program worked correctly by opening the ModifyThis18.txt file in a text editor. Close the ModifyThis18.txt file.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: