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 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.

Step by Step Solution

3.26 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ModifyThis18cpp saves numbers from 10 through 25 along ... View full answer

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 An Introduction Programming Questions!