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
svetlana [45]
3 years ago
8

Given an ofstream object named output, associate it with a file named yearsummary.txt for output in a way that truncates (erases

) any existing data in the file.
Computers and Technology
1 answer:
timurjin [86]3 years ago
4 0

Answer:

The answer is output.open("yearsummary.txt", ios::trunc)

Explanation:

Given an ofstream object named output, associate it with a file named yearsummary.txt for output in a way that truncates (erases) any existing data in the file. The file is output.open("yearsummary.txt", ios::trunc)

You might be interested in
Write the code to compute and output how many times the value 99 is found in an array of integers named numbers
astraxan [27]
Thank you for being the rare question where you actually provide what language you want your answer in; I approve, and encourage this.

In Java, the following will work.
I made it a bit more versatile to work with others numbers, other than 99, if you so please (if not, just hardcode the 99 in yourself).

// Example list - fill this with numbers yourself.
ArrayList<Integer> nums = new ArrayList<>();
int n = 99;
int count = (int)nums.stream().filter(i -> i == n).count();
System.out.println(n + " occurences.");
8 0
4 years ago
Keisha wants to change the default printer before printing an e-mail. Which steps will accomplish this task?
Angelina_Jolie [31]

Answer:

The steps that will accomplish the task are;

On the File tab, clicking Print and choosing the desired printer from the Printer drop-down list

Explanation:

In steps required to change the default printer on Microsoft Outlook before printing as e-mail are as follows;

1) Select the File tab on the Menu bar

2) Click on the Print option on the File's Menu

3) From the Print window displayed under the File Menu in Microsoft Outlook select the desired printer from the Printer options drop-down list

The steps that will accomplish the task are On the File tab, clicking Print and choosing the desired printer from the Printer drop-down list.

8 0
3 years ago
You can easily view the ruler on a document by selecting the Show Ruler button located _____.
Ket [755]
In the “View” tab in the Ribbon.
7 0
3 years ago
Read 2 more answers
Will there be another season in Star vs the forces of evil?
valentina_108 [34]
The world may never kno
3 0
3 years ago
In a CSS document, within what must you enclose properties and values when you define a rule for a specified selector?
natulia [17]

Answer:

Curly Braces {}.

Explanation:

The syntax for writing a CSS is as following:-

selector {

property : value;

}

CSS is used for providing the style to the HTML page.Such as fonts,background,height,width etc.

For example:

h1{

font:20px;

background:red;

}

The above written CSS is for the h1 tag in HTML.The font size will be 20 pixels and background color will be red.

So we can say that we need to enclose properties and values in curly braces.

4 0
3 years ago
Other questions:
  • What will be a fundamental aspect of future games??
    12·2 answers
  • The physical address assigned each network adapter is called its ________.
    6·1 answer
  • You use different office apps to accomplish specific tasks, such a creating a newsletter or producing a sales presentation, yet
    8·1 answer
  • BOTH INTERNATIONAL &amp; INLAND Which procedure(s) shall be used to determine risk of collision?
    14·1 answer
  • The ____ command displays the last 10 lines of a text file.
    5·1 answer
  • Write the Python code to implement each step of the following algorithm. Your code should use descriptive variable names and per
    7·1 answer
  • Who creates Virus ? virus is not made for what?
    14·2 answers
  • customer seeks to buy a new computer for private use at home. The customer primarily needs the computer to use the Microsoft Pow
    5·1 answer
  • Can someone please give me Python test 3 it would help me tremendously
    5·1 answer
  • Cho dãy A gồm N số nguyên a1,...aN. Hãy đếm tất cả các số âm hoặc không chia hết cho 5 trong dãy
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!