The pseudocode to find the sum of all integers that are multiples of 9, from 1 to 250.
totalSum = 0
for i from 1 to 250{
if i is divided by 9 and remainder is 0{
totalSum = totalSum + i;
}
}
print(totalSum)
in python language the code will be
totalSum = 0
for i in range(1,250):
if i%9==0:
totalSum += i
If you will run the program , the answer would be 3402.
Each person has a electronic chip-enabled ID card, which lets them vote on the internet. The ID card is put into the card reader that is connected the computer. :)
Answer:
It remove all the format on a block of selected text, or a paragraph, or the whole text. The formatting such as font, size, text attributes (bold/italic) and color you applied in the text can be cleared with one click, and then the text will return to its default style.
Answer:
A lot is wrong with the program given in the question. See the corrected version below:
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> int a, b, c;</em>
<em> //Three integers</em>
<em> a = 3; b = 4; c = a + b;</em>
<em> System.out.println("The value of c is " + c);</em>
<em> }</em>
<em>}</em>
Explanation:
Errors:
1. The main method had a semi colon after it. This is wrong
2. An open brace was supposed to follow the main method
3. The declaration of the variables was supposed to end with a semi colon
4. the correct comment style is // and not \\
5. Initialization of variables was supposed to end with semi colons
6. The output statement had C and not c which is the declared and initialized variable..Java is strictly typed
7. Open and closing braces for the class and method wrongly placed
To put a number in scientific notation, you must simplify it to become a number between 1-10 and multiply it by 10 up to the number of spaces the decimal was moved to simplify the number.
For example, to put the number .000000000006789 in scientific notation, you must move the decimal 12 times ( I think) to make the number 6.789 x -10up to the 12, be cause you have to move the decimal backwards.
To do another, 0.1 in scientific notation becomes 1 x 10up to the 1.
4 doesn't need to be in scientific notation, as it is already a number between 1-10. However, if you were to do it, it would become 4 x 10up to the 0.
For one more example, 78000000000000000 in scientific notation becomes 7.8 x 10up to the 15.
And so on for the rest. I hope this helps!