Answer:
Explanation:
Gas Filling Station has pumps. Pumps have credit card readers. Driver can able to swipe their cards, pumps have Fuel. Pumps card readers communicate with Credit Company. Driver interacts with pump for fuel and credit card.
In this situation the following we need to treat as objects.
They are Pump, Card reader, Fuel tank, communication system, system controller and price table.
Design pattern for the following system is attached below
Answer:
c. open the file, read/write/save data, close the file
Explanation:
Answer: I think it all depends on the teacher because I know one of my teachers like when we put their name on our assignments. So I pick true
Explanation:
Dictary = {
'code':6734,
'dept': 'sales',
123-45-6789:"Mr.Potato Head \n234 Potato Lane \nPotato Chip, ID 77725"
}
for i in Dictary.keys():
if i == 123-45-6789:
print(Dictary.get(i))
break
else:
print("Key not found")
You can further test this code by deleting Mr.Potato head's info from the dictionary. I hope this helps!