Answer:
The solution code is as follows:
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int main()
- {
- ifstream data;
- float number;
- float sum = 0;
-
- data.open("numbers.txt");
-
- while (data >> number) {
- sum = sum + number;
- }
- cout<<sum;
- return 0;
- }
Explanation:
Firstly, we create a ifstream object, <em>data</em> (Line 9). Then we can use the ifstream object to open the "numbers.txt" (Line 13) and use while loop to traverse through the number in the text file line by line (Line 15). White the loop is ongoing the number in each line is read by >> operator in a similar way to cin and then add each read number to sum variable (Line 16).
At last, display the output (Line 18).
Answer:
D. 100 volts
Explanation:
Electrostatic discharge (ESD) can be defined as a swift or sudden discharge of static electricity between two (2) objects coming in contact. An electrostatic discharge occurs between the two objects because the objects are having a different amount of electrons and charge. Thus, when they come in contact it results in a huge buildup of electromagnetic field known as an electrostatic discharge (ESD).
Also, voltages from an electrostatic discharge (ESD) are capable of destroying the internal components of a computer. Generally, a 100 volts ESD would be the minimum to short circuit a computer's hardware components.
Additionally, an electrostatic discharge (ESD) can be prevented through the use of an antistatic wrist strap, antistatic bags etc.
<span>its called a Java Applet</span>