Answer:
class Car(object):
fuel = 0
def __init__(self, mpg):
self.mpg = mpg
def drive(self, mile):
if self.fuel * self.mpg >= mile:
self.fuel -= mile / self.mpg
else:
print(f"get gas for your {self}")
print(f"Fuel remaining: {self.fuel}")
#classmethod
def get_gas(cls):
cls.fuel += 50
#classmethod
def add_gas(cls, gallon):
if cls.fuel + gallon > 50:
cls.fuel += 10
else:
cls.fuel += gallon
gulf = Car(20)
gulf.get_gas()
gulf.drive(200)
Explanation:
The Car class is defined in Python. Its drive method simulates the driving of a car with fuel that reduces by the miles covered, with efficiency in miles per gallon. The get_gas and add_gas methods fill and top up the car tank respectively.
Let's say for example that the business is taking in $2000 of revenue. That is the amount that the business collected for it's services - like for fixing the computer. What if though it costs $500 for the equipment (that's an expense). Now they only made $1500. Now the customer complains and says that the computer isn't fixed properly so the company sends out a techie for 2 additional hours. They need to pay their employee (another expense). Now the $1500 is down to $1400. They would have utilities to keep their lights on and insurance and many other expenses.
Your profit looks like this:
Profit = Revenue - Expenses
Answer:
Write out your birthday in the following format: M/DD/YY. For example, if your birthday is on June 11, 2013, it would be written as 6/11/13.
2. Convert the birthday date to binary format. Using our same example from above, 6/11/13 translated into binary code would be: 110/1011/1101.
3. Select one color of bead to represent “0”, a second color to represent “1” and then the third color to represent a space (/) between the numbers.
4. Layout the beads to represent your birthdate in binary code. Don’t forget the third color for the spaces in between the numbers!
5. Once laid out, string all the beads on to the string or pipe cleaner.
6. Tie a knot around the ends and enjoy your one-of-a kind masterpiece as a piece of jewelry or a bag tag….the options are endless!
Answer:
Capture attributes as ID documents or biometric data
Explanation:
Examples of such attributes include biometrics, verified identification documents, and third-party verification procedures. To create a trusted digital ID, there are typically three steps: capturing verified attributes, verification of the documents, and digitization of the ID.
Great day :) toodles
Answer: (C) MAC
Explanation:
MAC is stand for the message authentication code and it is one of the key dependent hash function. Message authentication provide the data integrity and also the origin of data authentication.
- It basically allow the specific recipients known as the holder of the symmetric key.
- The message authentication code uses the CBC (Cipher block chaining) mode for constructing the MAC algorithm and it also uses the block cipher for the conjunction by using the CBC operations.
On the other hand, all the options are incorrect as they are not the key dependent hash function.
Therefore, Option (C) is correct.