public class JavaApplication64 {
public static void main(String[] args) {
int count = 0;
for (int i = 23; i <= 89; i++){
if (count == 10){
System.out.println("");
count = 0;
}
System.out.print(i+" ");
count += 1;
}
}
}
I hope this helps!
Answer:
The Basic Program is as follows:
10 LENGTH = 50
15 WIDTH = 30
20 AREA = WIDTH * LENGTH
25 PRINT AREA
30 END
The Algorithm is as follows:
1. Start
2. Let Length = 50
3. Let Width = 30
4. Compute Area = Length * Width
5. Display Area
6. Stop
See Attachment for flowchart (flowchart is designed using draw io tools)
Explanation:
The flowchart, algorithm and basic program all follow the same sequence and explanation
Using the basic program as a case study;
Line number 10: The program starts by initializing LENGTH to 50
Line number 15: It then initializes WIDTH to 30
Line number 20: The AREA is calculated by LENGTH * WIDTH
Line number 25: The value of AREA is printed afterwards
Line number 30: Lastly, the program stops execution
Answer:
In a flashdisk,
If you are windows: click "my computer", and under the "cpmputer" section, you will find your flashdisk's name, and click it, in there you can find and also open your files.
If you are Mac: click "Finder", click "Desktop" and find your flashdisk's name, and click it, in there you can find and also open your files.
Answer:
Following are the code block in the Java Programming Language.
//define recursive function
public static long exponentiation(long x, int n) {
//check the integer variable is equal to the 0.
if (x == 0) {
//then, return 1
return 1;
}
//Otherwise, set else
else {
//set long data type variable
long q = exponentiation(x, n/2);
q *= q;
//check if the remainder is 1
if (n % 2 == 1) {
q *= x;
}
//return the variable
return q;
}
}
Explanation:
<u>Following are the description of the code block</u>.
- Firstly, we define the long data type recursive function.
- Then, set the if conditional statement and return the value 1.
- Otherwise, set the long data type variable 'q' that sore the output of the recursive function.
- Set the if conditional statement and check that the remainder is 1 and return the variable 'q'.
Answer:
the second last option
Explanation:
secure HTTP is armed with passwords to ensure that only authorised users gain entry.
the data is encrypted during transmission