Which of the following writes the contents of the city variable to an output file named address.txt?
Question:
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 << city << endl;
c. outFile << city << endl;
d. outFile >> city >> endl;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 63% (19 reviews)
c ou...View the full answer
Answered By
PALASH JHANWAR
I am a Chartered Accountant with AIR 45 in CA - IPCC. I am a Merit Holder ( B.Com ). The following is my educational details.
PLEASE ACCESS MY RESUME FROM THE FOLLOWING LINK: https://drive.google.com/file/d/1hYR1uch-ff6MRC_cDB07K6VqY9kQ3SFL/view?usp=sharing
3.80+
3+ Reviews
10+ 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 writes the contents of the city and state variables to an output file named address.txt? The file is associated with the outFile object. a. address.txt < < city < < state < <...
-
Which of the following reads a number from an input file named managers.txt and stores the number in the salary variable? The file is associated with the inFile object. a. managers.dat < < salary; b....
-
Which of the following compares the contents of an int variable named quantity with the number 5? a. if (quantity = 5) b. if (quantity == 5) c. if (quantity is 5) d. if (quantity =! 5)
-
A recent PwC Supply Global Chain survey indicated that companies that acknowledge the supply chain as a strategic asset achieve 70% higher performance. The Leaders in the survey point to...
-
Federated Shipping, a competing overnight delivery service, informs the customer in Problem 65 that they would ship the 5-pound package for $29.95 and the 20-pound package for $59.20. (A) If...
-
How can organizations anticipate and plan for investment decision? uncontrollable external events, such as weather?
-
What is meant by exclusive dealing?
-
Horizon Books is a bookstore in downtown Philadelphia. It carries an inventory of approximately 5,000 books. Customers come in and browse the shelves, select their books, and take them to the...
-
Ali is considering the decision of whether or not to go and study a Master degree. He is currently working as an accountant in XYZ Company. He is thinking of getting a Master Degree. If he decided to...
-
Presented below are the financial statements of Stillwater Company. Stillwater Company Comparative Balance Sheets December 31. 2020 Assets: Cash Accounts receivable Inventory Prepaid Rent Equipment...
-
Which function determines whether the open function was successful? a. is_open b. isopen c. isFileOpen d. is_FileOpen
-
Which of the following tells the computer to repeat the loop instructions until the end of the file is reached? The file is associated with the inFile object. a. while (inFile.eof()) b. while...
-
Kyocera is a Japanese telecommunications company that publishes IFRS-based financial statements. On its March 31, 2009, statement of cash flows in the operating section it reported a provisions for...
-
Dr. Burgess oversees the pharmacy center within Hughes Regional Hospital. Dr. Burgess is planning on purchasing two medication dispensing units which she wants to pay back in a short-term period. The...
-
On January 1, 2021, Wetick Optometrists leased diagnostic equipment from Southern Corp., which had purchased the equipment at a cost of $1,831,401. The lease agreement specifies six annual payments...
-
Prevosti Farms and Sugarhouse pays its employees according to their job classification. The following employees make up Sugarhouse's staff: Employee Whatis late and Address Payroll information A -...
-
Image caption
-
Jamie Lee and Ross, now 57 and still very active, have plenty of time on their hands now that the triplets are away at college. They both realized that time has just flown by, over twenty-four years...
-
State whether each statement is true or false. If the statement is false, explain why. If A B = { }, then A and B are disjoint sets.
-
Draw two scatterplots, one for which r = 1 and a second for which r = 21.
-
Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to the following methods: A method that displays...
-
Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to the following methods: A method that displays...
-
Create the logic for a program that calls a method that computes and returns a homeowners profit from the homes sale. Arguments passed to the method include the sale price and the following which...
-
Famas Llamas has a weighted average cost of capital of 8.8 percent. The companys cost of equity is 12 percent, and its pretax cost of debt is 6.8 percent. The tax rate is 22 percent. What is the...
-
The common stock of a company paid 1.32 in dividens last year. Dividens are expected to gros at an 8 percent annual rate for an indefinite number of years. A) If the company's current market price is...
-
(1 point) Bill makes annual deposits of $1900 to an an IRA earning 5% compounded annually for 14 years. At the end of the 14 years Bil retires. a) What was the value of his IRA at the end of 14...
Study smarter with the SolutionInn App