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
dedylja [7]
3 years ago
14

Given the availability of an ofstream object named output, and a string variable name tweet, write the other statements necessar

y to open a file named "mytweet", display the prompt tweet: and then read an entire line into tweet and then write it out to the file mytweet. (Do not define a main function.)
Computers and Technology
1 answer:
stich3 [128]3 years ago
4 0

Answer:

The answer to this question can be given as:

code:

cout << "tweet:";  //print message.

getline(cin,tweet);   //calling function getline.

output.open("mytweet");  //calling open by creating object of ofstream.

output << tweet;

output.close(); //close file.

Explanation:

In the above c++ programming language code firstly we print the tweet variable as a message. Then we call the getline() function. In this function, we pass two variables that is cin and tweet. Then we create the object of the ofstream class that is output Then we open a file and call this file by output. In the next line, we use the output as a class function to print the value of the tweet variable. At the last, we close the file.

You might be interested in
What is software ownership
kipiarov [429]
Software ownership is a common talking point within organisations. Who owns the license, or who has taken responsibility for ownership.
8 0
3 years ago
A technician has been asked to upgrade a processor and needs to do some research. The computer is just a couple of years old. Wh
DanielleElmas [232]

Answer:

The two best options can be processors like inlet i7 4.0 GHZ 8th generation processor, and two popular models are core and Pentium for inlet. Similarly for AMD we have 4 GHZ 8 core AMD processors. And two very popular examples are Athlon and Phenom.

You need to check the Graphics, clock speed etc. as well to end up with the best processor. Also make sure that it is motherboard compatible, and to the motherboard that you are having, If number of core is more and frequency is high, it means Processor is better, and same thing applies for generations as well.

Explanation:

The answer is self explanatory.

6 0
4 years ago
Solution is c language please help me.​
nordsb [41]

Explanation:

in c++

#include<iostream.h>

#using namespace std;

main()

{ float x,y,z,r, phi, theta;

cout<<" enter the value of x";

cin>>x;

cout<<" enter the value of y";

cin>>y;

cout<<" enter the value of z";

cin>>z;

r = (sqrt(pow(x,2) + pow(y, 2) + pow(z, 2)));

phi = (asinf(y/r)*180.0f)/PI;

theta = (asinf(-x/(r*cosf(phi)))*180.0f)/PI;

cout<<"The radius r= "<<r;

cout<<"The phi angle= "<<phi;

cout<<"The theta angle= "<<theta;

return 0;

}

4 0
3 years ago
A spreadsheet contains the maximum weight and maximum height for fifty dog breeds. The breeds are located in rows, and the weigh
MrRa [10]

Answer:

a. Locate

Explanation:

Question options (obtained on the net):

a. Locate

b. Sort

c. Filter

d. Replace

Explanation:

The largest value of the weights of the dog breed in row 43 is the maximum weight of the dog breed in the row

The 'MAX' formula or the 'Autosum' tool can be used to give the largest value in a row, or column

To locate the maximum value in MS Excel, the ADDRESS and MATCH and MAX functions are combined and entered into the blank cell on the right, specifying the same range for the MAX and MATCH functions, and a '0' for the MATCH function as well as a '1' for the ADDRESS function as follows;

=ADDRESS(MATCH(MAX(A1:E1), A1:E1, 0), 1)

Therefore, to navigate to the maximum weight, Emily should use a <em>locate</em>(ing) tool navigate to the information on the spread sheet

8 0
3 years ago
What is a feature of Print Preview?
Leviafan [203]
D: fit to size because it has to fit whatever your putting it on
8 0
3 years ago
Other questions:
  • Describe a situation where it would be appropriate to use each of the six leadership styles described by Daniel Goleman
    7·1 answer
  • While traveling in India, Sabina notes all of her daily expenses in rupees in her spreadsheet. At the end of the day, she wants
    5·2 answers
  • A virus that propagates using the internet or another computer network is called __________.
    10·1 answer
  • Java allows you to declare methods with the same name in a class. this is called
    10·1 answer
  • Write a function named remove_duplicates that takes a list (of numeric and/or string values) and returns a new list with only th
    9·1 answer
  • You work part time at a computer repair store. You are in the process of building a new computer system. The customer wants a mo
    6·1 answer
  • Do you think you should learn to program? Why? why not?
    11·1 answer
  • Which of the following is not a strategy to help build empathy for your users?
    7·1 answer
  • Lists Five Examples of simple statement<br>​
    5·2 answers
  • you are sitting in a coffee shop with your laptop computer and have connected to the internet through an unrestricted wi-fi conn
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!