Which of the following opens the payroll.txt file for output? The file is associated with the outPayroll
Question:
Which of the following opens the payroll.txt file for output? The file is associated with the outPayroll object.
a. outPayroll.open("payroll.txt");
b. outPayroll.open("payroll.txt", ios::out);
c. outPayroll.open("payroll.txt", ios::output);
d. Both a and b
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (12 reviews)
d ...View the full answer
Answered By
William Otieno
I am a professional tutor and a writer with excellent skills that are important in serving the bloggers and other specialties that requires a great writer. The important aspects of being the best are that I have served so many clients with excellence
With excellent skills, I have acquired very many recommendations which have made it possible for me to survive as an excellent and cherished writer. Being an excellent content writer am also a reputable IT writer with essential skills that can make one turn papers into excellent result.
4.70+
83+ Reviews
354+ Question Solved
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Question Posted:
Students also viewed these Computer science questions
-
Which of the following opens the payroll.txt file for input? The file is associated with the inFile object. a. inFile.open("payroll.txt", ios::app); b. inFile.open("payroll.txt"); c....
-
Which of the following creates an object named outPayroll that represents an output file in the program? a. fstream outPayroll; b. ofstream outPayroll; c. outPayroll as ofstream; d. outPayroll as...
-
Which of the following writes the contents of the city variable to an output file named address.txt? The file is associated with the outFile object. a. address.txt < < city < < endl; b. ofstream < <...
-
Five separate projects have calculated rates of return of 8, 11, 12.4, 14, and 19% per year. An engineer wants to know which projects to accept on the basis of rate of return. She learns from the...
-
Physics. Repeat Problem 73 if the object is 240 feet above the ground after 1 second and 192 feet above the ground after 2 seconds.
-
Describe the strategic nature of the investments by for anticipating uncontrollable future events and their RealNetworks, Time Warner, and Benetton described in likelihood of occurrence? Cost...
-
State whether the following are capital or revenue: 1. Cost of acquisition of copyrights 2. Repairs to building 3. Additions to factory building 4. Freight for bringing new furniture for office 5....
-
A vacuum system, as used in sputtering electrically conducting thin films on microcircuits, is comprised of a base plate maintained by an electrical heater at 300 K and a shroud within the enclosure...
-
CH 12 Est. Cash Flows on Projects and CH 13 Weighi... 0 Saved Helps KADS, Inc. has spent $300,000 on research to develop a new computer game. The firm is planning to spend $100,000 on a machine to...
-
The Sanding Department of Richards Furniture Company has the following production and manufacturing cost data for March 2012, the first month of operation. Production: 9,000 units finished and...
-
You use the _____________________ class to instantiate an output file object. a. cout b. fstream c. ofstream d. outstream
-
Which mode is used in the open function to add records to the end of an existing output file? a. add b. ios::add c. ios::app d. ios::out
-
In a particular suburb, 30% of the households have installed electronic security systems. a. If a household is chosen at random from this suburb, what is the probability that this household has not...
-
Drs. Draper and Keys run a partnership family medical practice in Brownsville, Texas. While the practice is profitable, both physicians are making payments on heavy debt loads for student loans that...
-
Sweetlip Ltd and Warehou Ltd are two family-owned flax-producing companies in New Zealand. Sweetlip Ltd is owned by the Wood family and the Bradbury family owns Warehou Ltd. The Wood family has only...
-
Small Sample Weights of M&M plain candies are normally distributed. Twelve M&M plain candies are randomly selected and weighed, and then the mean of this sample is calculated. Is it correct to...
-
Swain Athletic Gear (SAG) operates six retail outlets in a large Midwest city. One is in the center of the city on Cornwall Street and the others are scattered around the perimeter of the city....
-
The Tokyo Olympics After watching How the Tokyo Olympics Became the Most Expensive Summer Game Ever video answer the following questions. * * The numbers can be made up . I just need help with an...
-
Show that the set is infinite by placing it in a one-to-one correspondence with a proper subset of itself. Be sure to show the pairing of the general terms in the sets. {6, 8, 10, 12, 14, . . . }
-
On March 31, 2018, Gardner Corporation received authorization to issue $30,000 of 9 percent, 30-year bonds payable. The bonds pay interest on March 31 and September 30. The entire issue was dated...
-
A program contains a method with the header num calculateTaxes(num amount, string name). Which of the following methods can coexist in the same program with no possible ambiguity? a. Num...
-
Methods in the same program with identical names and identical parameter lists are _____. a. Overloaded b. Overworked c. Overwhelmed d. Ambiguous
-
Methods in different programs with identical names and identical parameter lists are _____. a. Overloaded b. Illegal c. Both of the above d. None of the above
-
Slow Roll Drum Co. is evaluating the extension of credit to a new group of customers. Although these customers will provide $198,000 in additional credit sales, 13 percent are likely to be...
-
Wendell's Donut Shoppe is investigating the purchase of a new $39,600 conut-making machine. The new machine would permit the company to reduce the amount of part-time help needed, at a cost savings...
-
1.Discuss the challenges faced with Valuing Stocks and Bonds. As part of this discussion, how will the selected item be implemented in an organization and its significance? 2. Discuss how Valuing...
Study smarter with the SolutionInn App