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
tresset_1 [31]
3 years ago
13

Consider a method defined with the header:

Computers and Technology
1 answer:
Alex Ar [27]3 years ago
6 0
The floating point number will be demoted to an int, so 1 and 4 are fine. 2 is fine naturally, but 5 is invalid (2 params passed where 1 is expected).
Therefore option 3 is correct: <span>all of the options are legal except for 5</span>
You might be interested in
Discuss three ways you could (or currently do) use the Excel software in your personal or professional life. Provide examples an
professor190 [17]
Both in my personal and professional life, I use the Excel software in order to create tables and lists. It's much easier to do that in Excel rather than in Word, for example, because Excel was actually created for that purpose, whereas Word was created for writing, above all. I use Excel for work to create tables of various things, such as names, emails, payments, etc. whereas I use it in my personal life to create lists of things such as movies, books, etc.
3 0
3 years ago
Write a program that writes 10 random numbers into a file named numbers using loops.
MariettaO [177]

Answer:

The program in cpp for the given scenario is shown below.

#include <stdio.h>

#include <iostream>

#include <fstream>

using namespace std;

int main()

{

   //object created of file stream

   ofstream out;

   //file opened for writing

   out.open("numbers.txt");

   std::cout << "File opened." << std::endl;

   //inside for loop, random numbers written to numbers.txt using rand()

   for(int n=0; n<10; n++)

   {

       out<<rand()<<endl;

   }

   //file closed

   out.close();

   std::cout << "File closed." << std::endl;

   return 0;

}

Explanation:

1. An object of the ofstream is created. The ofstream refers to output file stream. This is used to create file for write and append operations.

ofstream out;

2. The file named, numbers.txt, is opened using the open() method with the object of ofstream.

out.open("numbers.txt");

3. The message is displayed to the user that the file is opened.

4. Inside a for loop, which executes 10 times, a random number is generated. This random number is written to the file and a new line inserted.

5. The random number is generated using rand() method. Every number is written on  new line.

out<<rand()<<endl;

6. Every execution of the for loop repeats steps 4 and 5.

7. When the loop ends, the file is closed using close() method with the object of ofstream.

out.close();

8. A message is displayed to the user that the file is closed.

9. The header file, fstream, is included to support file operations.

10. The extension of the file can be changed from .txt to any other type of file as per requirement.

11. The program can be tested for writing more numbers to the file.

12. The program can be tested for writing any type of numeric data to the file.

13. The program is written in cpp due to simplicity.

14. In other languages such as java or csharp, the code is written inside classes.

15. In cpp, all the code is written inside main() method.

16.    The screenshot of the output messages displayed is attached.

3 0
3 years ago
Printers, monitors, tablets, cpus, and laptops are examples of
myrzilka [38]
Technology 
Cpus is a Central Processing Unit  
Tablets Are well, Tablets  
laptops are laptops

7 0
2 years ago
Sort the following everyday examples of sedimentary processes into the bins labeled with the sedimentary processes they most clo
Firlakuza [10]

The Sorting of the  examples of sedimentary processes are:

  • Sediment Erosion/transport - The dirt going down the drain after you give your dog a bath and drain the tub Dirt being blown off a patio
  • Deposition of sediment - Dust collecting on furniture
  • Weathering of rock - Tree roots extending into a rock layer and breaking it down Ice expanding in a crack in the road creating a pothole
  • Compaction/lithification - A dump truck dumps a load of gravel on your lawn. The dirt below it becomes more consolidated

<h3>What is the sedimentary process known as?</h3>

Sedimentary rocks are said to be the outcome of

1) The weathering of preexisting rocks,

2) The transport of the weathering products,

3) The  deposition of the material.

4) The  compaction process.

5) The cementation of the sediment to form a rock.

This is known to be the most vital geological processes that has lead to the making of sedimentary rocks such as due to erosion, weathering, dissolution, and others

Therefore, The Sorting of the  examples of sedimentary processes are:

  • Sediment Erosion/transport - The dirt going down the drain after you give your dog a bath and drain the tub Dirt being blown off a patio
  • Deposition of sediment - Dust collecting on furniture
  • Weathering of rock - Tree roots extending into a rock layer and breaking it down Ice expanding in a crack in the road creating a pothole
  • Compaction/lithification - A dump truck dumps a load of gravel on your lawn. The dirt below it becomes more consolidated

See full question below

Sort the following everyday examples of sedimentary processes into the bins labeled with the sedimentary processes they most closely represent. Drag the appropriate items into their respective bins View Available Hint(s) Reset Heip A dump truck dumps a load of gravel on your lawn. The dirt below it becomes more consolidated Dirt being blown off a patio Ice expanding in a crack in the road Dust collecting on furniture creating a pothole Tree roots extending into a rock layer you give your dog The dirt going down the drain after a bath and drain the tub and breaking it down Sediment Erosion/transport Deposition of sediment Weathering of rock Compaction/lithification

Learn more about sedimentary processes from

brainly.com/question/13291293

#SPJ1

4 0
1 year ago
Software that covertly monitors and records pieces of information such as web surfing activities is referred to as:
nekit [7.7K]
<span>Software that covertly monitors and records pieces of information such as web surfing activities is referred to as </span>spyware.
6 0
3 years ago
Other questions:
  • MORE THAN ONE ANSWER!
    15·2 answers
  • Design and implement a class Country that stores the name of the country, its population, its area, and the population density (
    6·1 answer
  • A firewall relies on or a that determine what traffic should or should not be allowed to pass through
    15·1 answer
  • Explain SATA peripheral bus operation?
    14·1 answer
  • Why is democracy the best form of government
    5·1 answer
  • What is the best definition of the 7x7 rule for maximizing audience comprehension
    13·1 answer
  • Describe the advantages of this trend from the point of view of the patient or the healthcare provider.
    5·1 answer
  • Billy used to take care of his laptop. However, one day he lost his laptop. He lost all his data, and there was no way to retrie
    11·1 answer
  • Why, y did brainly just do that........or did it just happen to me
    12·2 answers
  • Python is an example of a low level programming language true or false?​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!