1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
My name is Ann [436]
2 years ago
9

Assuming dataFile is an ofstream object associated with a disk file named payroll.dat, which of the following statements would w

rite the value of the salary variable to the file
A) cout < B) ofstream C) dataFile << salary;
D) payroll.dat <
Computers and Technology
1 answer:
svet-max [94.6K]2 years ago
8 0

Answer:

dataFile << salary;

Explanation:

To write salary to a file (payroll.dat) using ofstream, you make use of the following instruction:

<em>ofstream dataFile; </em>

<em>myfile.open ("payroll.dat"); </em>

<em>myfile <<salary; </em>

<em>myfile.close();</em>

<em />

This line creates an instance of ofstream

<em>ofstream dataFile; </em>

This line opens the file payroll.dat

<em>myfile.open ("payroll.dat"); </em>

This is where the exact instruction in the question is done. This writes the value of salary to payroll.dat

<em>myfile <<salary; </em>

This closes the opened file

<em>myfile.close();</em>

<em />

<em />

You might be interested in
Which of the following are examples of IT
Advocard [28]

Answer:

Computer hardware engineer

Systems analyst

Database administrator

7 0
3 years ago
Considering all of the time and effort that is put into creating an online business, it is in a merchant’s best interest to make
givi [52]

Search engine optimization will help increase the number of clicks on the business' website and help to drive the sales by targeting the appropriate audience for buying the products.

<h3>What is search engine optimization?</h3>

Search engine optimization, or SEO, is one of the most important functions of the generation of organic clicks on the website for an online ecommerce business.

It helps in creating a brand awareness, the costs of advertising are much lower, and also helps in improving the experience of the customers of ecommerce site.

Hence, the uses of search engine optimization in online business are as aforementioned.

Learn more about Search Engine Optimization here:

brainly.com/question/14850803

#SPJ1

4 0
1 year ago
What technology provides secure access to websites
wlad13 [49]

The technology is HTTPS or Hypertext Transfer Protocol Secure

6 0
3 years ago
Read 2 more answers
Any help , and thank you all
Paladinen [302]

Answer:

There are 28 chocolate-covered peanuts in 1 ounce (oz). Jay bought a 62 oz. jar of chocolate-covered peanuts.

Problem:

audio

How many chocolate-covered peanuts were there in the jar that Jay bought?

Enter your answer in the box.

Explanation:

3 0
2 years ago
Name box _________. a. Used to move horizontally or vertically within a worksheet b. A group of selected cells c. The cell refer
MA_775_DIABLO [31]

Answer:

The answer is "Option c".

Explanation:

The name box is a part of the Microsoft Excel, that provides an input box on the left side of the formula row, which is usually shown on the "working cell" address on the worksheet. It can also use the name box is to easily switch to any location in the Worksheet, and wrong choices can be described as follows:

  • In option a, It is used in worksheet but it's not a worksheet.
  • In option b, It can't select cells.
  • In option d, It is used to input a value not to identify the program.

5 0
2 years ago
Other questions:
  • What is the maximum number of colors that should be used on a slide?
    5·2 answers
  • An administrator needs to set up an authentication server for users connecting to a network through a VPN. What kind of server c
    10·1 answer
  • The person who Oversee the direct work of employees and is responsible for the day-to-day tasks the employees complete is likely
    7·2 answers
  • You coded the following class: public class N extends String, Integer { }When you compile, you get the following message:N.java:
    9·1 answer
  • Creating a newsletter
    8·1 answer
  • 12) If the image's name is filename.gif, how can I make this image the background of my page?
    6·1 answer
  • Tim has several workbooks open in the Excel application. He would like to view them all at the same time, so he should use the _
    14·1 answer
  • State the keyboard key used to move the cursor to the line​
    10·1 answer
  • The type value ____ for the input element may cause modern browsers to validate entries to ensure that they are valid web addres
    14·1 answer
  • 1. image-editing software
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!