Explanation:
1. special key combination that causes specific commands to be executed typically shortcut keys combine the ctrl or alt keys with some other keys.
2. 5 example of shortcut keys are:-
- 1. ctrl + A - select all
- 2.ctrl + B - bold
- 3. ctrl + C - copy
- 4. ctrl + U - under line
- 5. ctrl + v - paste
3. (i) open the start menu
(ii) open Windows task manager
(iii) close the currently active program
(iv) replace
(v) align center
4. the three importance of shortcut keys are :
- efficient and time saving :- using shortcut make you more efficient at doing certain task on your computer .
- multi-tasking :- being a multi Tasker is something required in life.
- health benefit :- cutting down on your mouse usage by using keyboard shortcut can help reduce the risk of RSI (Repetitive Syndrome Injury).
5. shortcut keys are very helpful because it take less time. keyboard shortcuts are generally used to expedite common operation by reducing input sequence to a few keystrokes.
Answer:
See explaination
Explanation:
public class QuickRich {
static void getRichQuick() {
double amount = 1;
int day = 1;
System.out.println("Day 1: $1");
while (amount < 1000000) {
day++;
if(amount + 1 + (amount/2) < 1000000)
System.out.printf("Day %d: $%.2f + ($1 + %.2f) = $%.2f\n", day, amount, amount/2, amount+(amount/2)+1);
else
System.out.printf("Day %d: $%.2f + ($1 + %.2f) >= $1000000\n", day, amount, amount/2);
amount += (1 + (amount/2));
}
}
public static void main(String[] args) {
getRichQuick();
}
}
cool but kinda creepy ngl
Answer:
Explanation:
We have the following
t is the number of test cases.
n is the number of trips for each testcase
name is the name of the city
all the unique names are added to the list and at last the length of the list is printed.
The program is written as follows
t = int(input) - for i in range(t): n = int(input) 1 = [] for j in range(n): name = input if name not in l: 1.append(name) pr
t = int(input())
for i in range(t):
n = int(input())
l = []
for j in range(n):
name = input()
if name not in l:
l.append(name)
print(len(l))
Output:
Complete question is attached as snapshot.
Answer:
This will result in a compilation error.
Here's the inheritance hierarchy:
Meg -> Lois -> Brian -> Stewie
Now Meg has 2 public Fxns, a() and toString().
Lois inherits from Meg and all its public functions as well but, overrides the a() fxn of its super class.
So finally Lois has fxns a(), b() and toString().
Brian extends Lois and inherits all the above listed fxns of Lois, but overrides the b() and toString() fxns.
Stewie extends Brian and inherits all the fxns of Brian, but overrides the a() and toString() fxns.
In the Main driver fxn, we call a() and b() methods of all these classes but, the base class Meg has no b() and it is not extending any class so its not available in its scope.
This results in a compilation error.
Explanation: