Answer:
Hi there Tonyhh! Please find the implementation below.
Explanation:
You can save the below code in a file called "price_discount.py". The code is implemented in python 2.0+. To make it work in Python 3.0+, simply update the code to use "input" rather than "raw_input".
price_discount.py
def calculate_discount(price, quantity):
total = 0.95 * price * quantity;
return total;
price = raw_input("Enter a price: ");
try:
price = int(price);
while price <= 0:
print("Input a valid number: ")
price = raw_input("Enter a price: ");
quantity = raw_input("Enter a quantity: ");
try:
quantity = int(quantity);
if quantity >= 10:
print(calculate_discount(price, quantity));
except ValueError:
print("Invalid quantity!")
except ValueError:
print("Invalid input!");
price = -1;
The characters in the selected cell.
Answer:
This is a daily schedule for any teacher. It seems he/she wants to enter the details on any calendar.
Explanation:
It seems that XYZ who is a teacher has prepared a schedule for him/her for someday. It is quite confirmed that She/he takes 7 periods. And these are the details of what he/she be doing in each of them. And once he/she gets the Google Calendar ready, he/she will be alerted through a beep or a buzzing sound after each task is accomplished.
C even the rest of answers seem practical c would be most likely