Answer:
The main difference between GUI and CLI is that the Graphical User Interface (GUI) allows the user to interact with the system using graphical elements such as windows, icons, menus while the Command Line Interface (CLI) allows the user to interact with the system using commands.
Explanation:
Its important to have employees who can critically think because if they have to make a crucial decision for the job or project he or she is working on that best suits the situation.
Answer :
Written in java
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int year;
Scanner scanner = new Scanner(System.in);
System.out.print("Please enter a year\n\n");
year = scanner.nextInt();
while (year < 1582) {
System.out.print("\nPlease enter a different year above 1582\n");
year = scanner.nextInt();
}
if (year % 4 == 0) {
if(year % 100 ==0 && year % 400 != 0){
System.out.println(year + " is not a leap year\n\n");
}else {
System.out.println(year + " is a leap year\n");
}
} else {
System.out.println(year + " is not a leap year\n\n");
}
}
}
Answer:
Explanation:
def octal_to_string(octal):
result = ''
value_letters = [(4, 'r'), (2, 'w'), (1, 'x')]
for c in [int(n) for n in str(octal)]:
for value, letter in value_letters:
if c >= value:
result += letter
c -= value
else:
result += '-'
return result
print(octal_to_string(755))
print(octal_to_string(644))
print(octal_to_string(750))
print(octal_to_string(600))
**************************************************