Question: If necessary, create a new project named Introductory19 Project and save it in the Cpp8Chap14 folder. Also create a new source file named Introductory19.cpp. Create

If necessary, create a new project named Introductory19 Project and save it in the Cpp8\Chap14 folder. Also create a new source file named Introductory19.cpp. Create a program that saves a company’s payroll amounts in a sequential access file. Save the amounts in fixed-point notation with two decimal places. Name the sequential access file Introductory19.txt and open the file for append. Use a negative number as the sentinel value. Save and then run the program. Enter the following payroll amounts and sentinel value: 45678.99, 67000.56, and –1. Now, run the program again. This time, enter the following payroll amounts and sentinel value: 25000.89, 35600.55, and –1. Open the Introductory19.txt file in a text editor. The file should contain four payroll amounts, with each amount appearing on a separate line in the file. Close the Introductory19.txt file.

Step by Step Solution

3.26 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include include using namespace std int main doub... 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 Microsoft Visual C# Introduction Questions!