Answer:
item = "quesadilla"
meat = "steak"
queso = False
guacamole = False
double_meat = False
base_price = 4.5
if item == "quesadilla":
base_price = 4.0
elif item == "burrito":
base_price = 5.0
if meat == "steak" or meat == "pork":
base_price += 0.50
if meat == "steak" and double_meat:
base_price += 1.50
elif meat == "pork" and double_meat:
base_price += 1.50
elif double_meat:
base_price += 1.0
if guacamole:
base_price += 1.0
if queso and item != "nachos":
base_price += 1.0
print(base_price)
Explanation:
- Use a conditional statement to check if meat is steak or pork then add 0.50 to base_price
.
- Check if the meat is steak or pork, then double_meat adds 1.50 or 1.0 otherwise
.
-
Check if meat is steak and its double_meat
, then add 1.50 and if its for guacamole, then add 1.00 to base_price
. If queso is there and item is not nachos, add 1.00 to base_price
.
- Finally when item is nachos, no need to add any money to base_price
.
Answer: Clients
Explanation:
A Client refers to a computer that is able to connect to a server usually in a network in order to access the services provided by that server.
When a user tries to access the internet, the Client accesses the relevant server and requests the information that the user is requesting. The server then sends this to the client which then formats it in the way that the user can understand. The client is thus the direct connection to the internet.
Answer:
Least Privilege
Explanation:
The principle of least privilege an important principle in computer security. It is the practice of limiting access rights for users to the basic minimum or least amount of privilege they require to perform their tasks. For example a user is granted privilege to execute a file or manipulate data or use resources they require to perform a function or task. Therefore, this principle can be used only to limit access rights for programs, systems, and devices to those permissions only that are required to carry out permitted activities. Conforming to principle of least privilege reduces the risk of hackers gaining access to sensitive information or a system, by compromising a user account or device. For example an individual whose task is to enter data into a database only requires option to add records to that DB by the principle of least privilege. If a virus attacks the computer of that individual, this attack is restricted only to creating DB entries.
Answer:
That should be in Level 2 heading, Green in color and Times New Roman. 2. Title: ‘My Webpage’. 3. Body: Background color is Pink. 4. Create a paragraph like this. That is center aligned and blue in color. “Hi Friends !!!!! Here you can see my image”. 5. Create an image here: That must be center aligned. 6. Create a line break here. 7. Create a horizontal