Answer:
see explaination
Explanation:
class Taxicab():
def __init__(self, x, y):
self.x_coordinate = x
self.y_coordinate = y
self.odometer = 0
def get_x_coord(self):
return self.x_coordinate
def get_y_coord(self):
return self.y_coordinate
def get_odometer(self):
return self.odometer
def move_x(self, distance):
self.x_coordinate += distance
# add the absolute distance to odometer
self.odometer += abs(distance)
def move_y(self, distance):
self.y_coordinate += distance
# add the absolute distance to odometer
self.odometer += abs(distance)
cab = Taxicab(5,-8)
cab.move_x(3)
cab.move_y(-4)
cab.move_x(-1)
print(cab.odometer) # will print 8 3+4+1 = 8
Answer:
Explanation:
The database schema can have following tables:
1. airport_table(apcode, apcity, apcountry)
2. airline_table(aid, aname, acountry)
3. flight_table(fid, aid, arrtime, depttime)
4. passenger_table(pid, pname, pcity, pcountry)
5 booking_table(bid, bdate, pid)
See attachment for the diagram
Answer & Explanation:
No Browsing History:
- Your browser is probably set to incognito mode, change it to general mode.
- space set on your drive to save the content from your browser might be completely filled, Make sure you have given your browser enough space on your drive to save contents.
- The number of days to record the history in your browser is set to 0, Check the settings and make sure it is not set to 0.
Phishing Scam
- Change all the credentials on the site that you have disclosed.
- Immediately report the mail to an IT department and necessary authorities.
- Mark the mail as span and block the mail id.
Suspicious File Attachment
- May be that the suspicious file contains a virus file. Often such viruses are attached to external "Show-case" files so that the victim is not able to identify them. Once the external file is tried to open, the virus slips into the main memory (your RAM) and start executing in the background, creating copies of itself and executing every copy. Soon they start eating up the main memory (The memory that runs all your programs) making your PC slow to respond.
Antivirus Software Outdated
- Connected to the Internet and update the antivirus.
Laptop's Physical Security
- Set a password.
- install a tracking software.
Answer:
li=list(map(str,input().strip().split()))#taking input of the string.
#swapping first and last element.
temp=li[0]
li[0]=li[-1]
li[-1]=temp
print(li)#printing the list.
Explanation:
I have taken the list li for taking the input of strings.Then after that swapping first and last element of the list.Then printing the list.