Answer:
Ctrl+Q is used to remove a paragraph's formatting
Explanation:
Hope that's the answer you're looking for!
#This is a way without a loop
friends = list(map(str,input("Enter Names: ").split()))
print(sorted(friends))
#This is a way with a loop (for&&while)
friends = list(map(str,input("Enter Names: ").split()))
cool = True
while cool:
cool = False
for i in range(len(friends)-1):
if friends[i] > friends[i+1]:
coo = friends[i]
friends[i] = friends[i+1]
friends[i+1] = coo
cool = True
print(friends)
Step 1
Save your work and close all programs. You will be restarting your computer during the process.
Step 2
Click “Start” from the task bar and then choose “All Programs.”
Step 3
Click “Accessories” from the program menu. Choose “System Tools” from the side pop-out menu and then select “System Restore.”
Step 4
Click “Restore my computer to an earlier time” from the Welcome screen. Click “Next” at the bottom.
Step 5
Choose a date in bold from the calendar shown on the Restore Point page. The date that you choose should be an earlier one, like a day or two before the deletion occurred. Click “Next” at the bottom of the window.
Step 6
Click “Next” on the next page. The restoration begins, and your computer will restart.
Step 7
Click “OK” from the completion window that appears when your computer loads again.
Answer:
public class Main
{
public static void main(String[] args) {
int carYear = 1995;
if(carYear < 1967)
System.out.println("Probably has few safety features.");
if(carYear > 1971)
System.out.println("Probably has head rests.");
if(carYear > 1992)
System.out.println("Probably has anti-lock brakes.");
if(carYear > 2002)
System.out.println("Probably has tire-pressure monitor.");
}
}
Explanation:
The code is in Java.
Initialize the carYear
Use if statements to handle year before 1967, after 1971, after 1992 and after 2002.
Print the required message for each if statement