Answer:
The algorithm to find A is even or odd.
- input A.
- Check the remainder on diving by 2 by A%2.
- If remainder is 1 then A is odd Print(Odd).
- If remainder is 0 print(Even).
Explanation:
To check if the number is even or odd we use modulo operator(%).Which gives the remainder on dividing.So if we do this A%2 it will give the remainder that will come out on dividing the value of A by 2.
So if the remainder comes out is 1 then the number is odd and if the remainder is 0 then the number is odd.
FAFSA will send you back a SAR (Student Aid Report). They will send you an email giving you instructions on what to do what not to do. Which will be sent to you in a week. Then they will decide if the application is Approved or complete and rejected.
Answer:
System.out.println("i = " + i + " f = " + f);
Explanation:
The code above has been written using Java's syntax.
To print or display statements to the console, one of the methods to use is the System.out.println() method.
According to the question, the statement to output is i=value-of-i f=value-of-f which is a string of texts.
Note that value-of-i and value-of-f are already stored in variables i and f respectively. Therefore to print them as part of the string text statement, it is important to concatenate them using the "+" operator as follows:
"i = " + i + " f = " + f
If the value of i is 25 and the value of f is 12.34 then the above statement, after successful concatenation reads:
"i = 25 f = 12.34"
which can then be shown on the console using System.out.println() method as follows:
System.out.println("i = " + i + " f = " + f);
Hope this helps!
Yes, I think that the answers are D and C. I think thats correct.
Hope I helped!