Answer:
Explanation:
The following program is written in Java. It asks the user for the two inputs and then uses those inputs in a for loop. The loop goes through each number checking to see if it is even or odd. If it is even it prints out Even: and the number after multiplying it by 3. If it is odd it prints out Odd: and the number after adding 10 to it. The output can be seen in the attached picture below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter number 1: ");
int num1 = in.nextInt();
System.out.println("Enter number 2:");
int num2 = in.nextInt();
for (int x = num1; x <= num2; x++) {
if ((x % 2) == 0) {
System.out.println("Even: " + (x*3));
} else {
System.out.println("Odd: " + (x+10));
}
}
}
}
A. Resize
By dragging the border of a field or record, you are either enlarging it or compressing it. Choices "b" and "d" are only half correct, as there is always the possibility of making it smaller. Hope this helps!
Answer:
Computer engineering is a career that works on the development and research of new technology-related things.
Explanation:
I haven’t read it, but just by the title it was probably talking about an incredible machine that was new to people.
Answer:
See attachment for flowchart
Explanation:
The explanation is as follows
1. Start
2. Get input for principal, time and rate
3. Calculate Interest using Interest = Principal * Rate * Time/100
4. Print Interest
5. Stop