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
kirill115 [55]
3 years ago
13

Write a few statements that open a file called "greeting", write the message "hey!" to the file -- and then close it. declare an

y variables needed.
Computers and Technology
2 answers:
pshichka [43]3 years ago
6 0
C++:

int main () {

std::ofstream output {"greeting.txt"};
output << "hey!";
output.close();

return 0;
}
Shtirlitz [24]3 years ago
5 0

Answer:

The answer to this question can be given as:

Statement:

FILE *data1;     //create file pointer type variable

data1 = fopen("greeting","w");    //open file use fopen function

fprintf(data1,"hey!");    //print message.

fclose(data1);  //close file.

Explanation:

The description of the statement can be given as:

  • In this statement firstly we define a file pointer type variable that is "data1".This variable holds the file.  
  • Then we use the fopen() function that is used to open a file. In this function, we pass the file name and the mode to open the file.
  • Then we use the fprintf() function this function prints the value of the file.
  • In the last, we close the file, for close file we use fclose() function.
You might be interested in
Louisa wants to purchase a used SUV that costs $12,750 from an automobile superstore. She has $4,000 to make a down payment and
liq [111]

Answer:

its a numbre

Explanation:

4 0
3 years ago
Suppose that the UDP receiver computes the Internet checksum for the received UDP segment and finds that it matches the value ca
defon

Answer:

No, the receiver cannot be absolutely certain that no bit errors have occurred. This is because of the manner in which the checksum for the packet is calculated. If the corresponding bits (that would be added together) of two 16-bit words in the packet were 0 and 1 then even if these get flipped to 1 and 0 respectively, the sum still remains the same. Hence, the 1s complement the receiver calculates will also be the same. This means the checksum will verify even if there was transmission error

Explanation:

4 0
3 years ago
Which of the following should get a Page Quality (PQ) rating of Low or Lowest? Select all that apply. True False A page with a m
Vikki [24]

The statement “All queries have only one intent: Know, Do, Website or Visit-in-Person intent” is True.

The statement “The intent of a Do query is to accomplish a goal or engage in an activity on a phone” is True.

The statement “The intent of a Website query is to find information” is True.

The statement “There is absolutely no information about who is responsible for the content of the website on a YMYL topic” is True.

The statement “All the Main Content(MC) of the page is copied and created with deceptive intent” is True.

The statement “A page with a mismatch between the location of the page and the rating location; for example, an English page for an English rating task’ is True.

“A file type other than a web page, for example; a PDF, a Microsoft Word document or a PNG file” is False.

<u>Explanation:</u>

The searcher tries to find out the Know queries. The action is taken by the searcher using the Do queries. The searcher looks for a site/ page using Website queries. The queries which are the same as they appear to be are Visit-in-Person queries.

The statement is true because in Do queries, the action is taken like the control of the smartphone is given to Google.

The search for a page or a site takes place using Website queries.

It is not always true that the Wikipedia pages should get high ratings for all user intents because information is helpful.

There is no surety that who will update the content of the website on a YMTL topic.

The Main Content (MC) of the low quality YMYL page helps the page to achieve its purpose. For YMYL the content is created with deceptive intent. The pages manipulate users to take action which will not help the users .

The PQ rating is lowest when there is a mismatch between the location of the page and the rating location, for example, an English rating task. Here, the purpose of the page is required to be understood to determine the rating.

The PQ rating is not determined by the type of the page but by the purpose of the page.

6 0
4 years ago
If a database named Contacts has a table named tblEmployees and another database named Orders links to that tblEmployees table,
Vlad1618 [11]

Answer:

cache I think

Explanation:

I am not sure or memory HDD or SSD

5 0
3 years ago
How do u delete a question on here if u have a chromebook
OverLord2011 [107]

Answer: you cant

Explanation:

you can not delete a question. Have a good day

3 0
3 years ago
Read 2 more answers
Other questions:
  • One of the best examples of outcome control is the re-hiring of Steve Jobs by Apple as CEO
    14·1 answer
  • What is the focus of developers interested in the Internet of things?
    11·2 answers
  • A student has created a Book class. The class contains variables to represent the following.An int variable called pages to repr
    11·1 answer
  • Explain what is a database schema and mention one example
    9·1 answer
  • FOR ALL PLATO USERS:
    10·2 answers
  • Which of the following statements are valid in Java? (Assume that console is Scanner object initialized to the standard input de
    15·1 answer
  • You just bought a new hard drive for your computer to replace your primary hard drive. After backing your data up and, then, ins
    8·2 answers
  • 4. Use the information under the Nutrients That the Human Body Needs title to create a multilevel list. Your list should meet th
    8·2 answers
  • The sun emits invisible _____&gt; A) electromagnetic waves B) Waves C) Radiation D) Wavelength E) Ultraviolet Light
    8·1 answer
  • You want to view a list of users on a linux system. what command should you use?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!