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
saul85 [17]
4 years ago
8

Given the availability of an ofstream object named output, write the other statements necessary to write the string "3.14159" in

to a file called pi. (Do not define a main function.)
Computers and Technology
1 answer:
mixas84 [53]4 years ago
4 0

Answer:

The statements are given below:

output.open("pi"); // opening the file by the of stream object

output << "3.14159";  

output.close(); // closing the file  

Explanation:

In this we open the file with the help of output stream object .The statement output.open("pi"); is opening the file after after opening the file "pi". The output object print the 3.14159 message in console and finally the output stream file is close with the help of output.close() statements .

You might be interested in
Cellular digestion associated by what organelles?​
expeople1 [14]

Answer:

<u>lysosomes</u>

Explanation:

Cell Digestion and the Secretory Pathway. The primary sites of intracellular digestion are organelles known as the lysosomes, which are membrane-bounded compartments containing a variety of hydrolytic enzymes.

7 0
3 years ago
Read 2 more answers
The Backstage view is where you can see information and options pertaining to the user account and settings. How is the Backstag
Georgia [21]

Answer:b) Mail settings can be changed under the options menu

Explanation: I fr just guessed so y’all can have an answer and I ended up getting it rights

6 0
3 years ago
How do you do these questions? The first two questions could have multiple answers and the third is one answer only.
mr_godi [17]

Answer:

1. c is the correct option, a and b are false

2. It is always desirable that all the object instance variables contribute to calculating the hash code.

3..( getfirstname +getSecondName).Hashcode()

Explanation:

1. Two same hashcode cannot be in same hashset, and if two keys are equal then it does not mean, their hash code should also be equal. And if a key is greater, then its hashcode will definitely be greater.

2. Each object instance variable must contribute to calculating the hash code, as we need one hash code for each key or object. However, set.Contains(Obj) must return true if we have a hash code for that object, as it must be present in HashSet then.

3. Also for each of the key we need one hash code, and here the first name and the last name together are making one key, and hence we should concatenate both, and then generate a hash code for that concatenated key, and hence the correct option is (getFirstName + getSecondName).Hashcode()

8 0
3 years ago
What is string literal in Java?
4vir4ik [10]

Answer:

A string literal in Java is basically a sequence of characters from the source character set used by Java programmers to populate string objects or to display text to a user. These characters could be anything like letters, numbers or symbols which are enclosed within two quotation marks.

Explanation:

8 0
3 years ago
What are the common uses of joysticks? ​
Anon25 [30]

Answer:

To play games in the computer

follow me

6 0
3 years ago
Other questions:
  • What are 7 key traits for knowing your audience
    6·2 answers
  • Create a SavingsAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the sav
    10·1 answer
  • What is the default view in a Word document?
    10·2 answers
  • A user reports that a workstation is continually rebooting. What can a technician do to stop the rebooting in order to troublesh
    12·1 answer
  • An investigator has proposed a multi-site study of PSA (Prostate Specific Antigen) test results among patients with prostate can
    6·1 answer
  • Write a short assembly language program in either our 8088 SCO DOSBox or 80386+ MASM Visual Studio 2017 environment that demonst
    11·1 answer
  • True/False - According to CP-14 Sale of Modular Homes, a licensee who sells land and a modular home to be affixed to the land, t
    11·1 answer
  • For local patterns that change quickly, these methods are preferred 1. data driven 2. model drive 3. trend and seasonality drive
    10·1 answer
  • You have searched a database to locate US cities with population counts above 1 million people. You need to present the results
    6·2 answers
  • Write a sub-program to display the acceleration of car. The program should ask initial velocity, final velocity, and time taken
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!