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
kakasveta [241]
3 years ago
6

The student cd contains a file named random.txt. This file contains a long list of random numbers. copy the file to your hard dr

ive and then write a program that opens the file, reads all the numbers from the file, and calculates the following:_________.
a) the number of numbers in the file
b) the sum of all the numbers in the file (a running total)
c) the average of all the numbers in the file
the program should display the number of numbers found in the file, the sum of the numbers, and the average of the numbers.
Computers and Technology
1 answer:
Minchanka [31]3 years ago
8 0

Answer:rick roll

Explanation:

trrrrrrrrrrwgd

You might be interested in
(Count the occurrences of words in a text file) Rewrite Listing 21.9 to read the text from a text file. The text file is passed
Oksanka [162]

Answer:

Explanation:

The following is written in Java. It uses File input, to get the file and read every line in the file. It adds all the lines into a variable called fullString. Then it uses regex to split the string into separate words. Finally, it maps the words into an array that counts all the words and how many times they appear. A test case has been created and the output can be seen in the attached image below. Due to technical difficulties I have added the code as a txt file below.

3 0
3 years ago
To use the styles in an external style sheet, you can drag and drop the style sheet file into the head section of the aspx file
Neporo4naja [7]

Answer:

False

Explanation:

Cascading style sheet (CSS) is a web development tools used to create web pages. They give style or determine how a HTML file is a parse in a web browser.

There are three ways of adding CSS to a HTML file. First is the inline css, in which the styles of an element in the HTML file is described in that element tag. The second is using the style element in the HTML file to create css for elements in the file.

The third is external CSS file. The CSS file is created and linked to the HTML file through the link element in the head tag.

4 0
3 years ago
Define the following Window class:
Olenka [21]

Answer:

The following Window class are given below:

class Window  // define a class Window

{

private:   //access modifier

int width, height;   // integer type variable which is width and height

public:   //access modifier

Window(int w,int h)   //constructor that accepts two integer parameters

{

 width = w;

  height = h;

}

friend bool areSameSize(Window a, Window b)

{

 if ((a.height == b.height) && (a.width == b.width))

  return true;

 else return false;

}

};

Explanation:

According to the question: Firstly we have define a class which name is 'Window' and then we take two integer type data member and after that we have constructor that takes two integer type parameters and after all we have a areSameSize, friend function, which can take two objects and then it give output in the form of true or false, if they are the equal size and finally we check that if the width and the height  match then it returns the true and else it returns the false

3 0
4 years ago
What decimal value does the 8-bit binary number 10011110 have if it is on a computer using signed-magnitude representation?
Ymorist [56]

1 0 0 1 1 1 1 0

0 * 2^{0} + 1 * 2^{1} + 1 * 2^{2} + 1 * 2^{3} + 1 * 2^{4}  + 0 * 2^{5} + 0 * 2^{6} = 30

The sign digit is a 1, so the entire number is negative, which gives -30.

3 0
4 years ago
What processes can move a solute against its concentration gradient?
Rudiy27

Explanation:

To move substances against a concentration or electrochemical gradient, the cell must utilize energy in the form of ATP during active transport. Primary active transport, which is directly dependent on ATP, moves ions across a membrane and creates a difference in charge across that membrane.

7 0
3 years ago
Other questions:
  • Check your tire pressure every _____. A. month B. two months C. six months D. year
    7·2 answers
  • Thumbnails in the picture gallery display the more common color saturation, color tone, and recolor adjustments. true or false.
    12·1 answer
  • Do you think children should have their own mobile phones? Why or why not?
    10·2 answers
  • (ACCESS 2016)
    7·2 answers
  • Multiple Intelligence Theory explains that...
    8·2 answers
  • Answer is B because portrait is define that they take only photographs of people and like to communicate with people they are we
    10·1 answer
  • 2. Select the things you can do when working with rows in columns in a spreadsheet:
    5·1 answer
  • To summarize means to
    11·2 answers
  • What is meant by a control plane that is based on logically centralized control? In such cases, are the data plane and the contr
    8·1 answer
  • A technician is troubleshooting a Windows computer and needs to stop the explorer.exe process.Multiple attempts to open Task Man
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!