Answer:
#here is code in python.
# read the food bill
tot_bill=float(input("Please enter the food bill:"))
# tax on food
tax=0.06
#choice for tip by user
choice=int(input("enter your choice for tip:(1 for 15%, 2 for 18% and 3 for 20% :)"))
// calculate the total food bill
if choice==1:
tot_food_bill=tot_bill+tot_bill*tax+tot_bill*(.15)
elif choice==2:
tot_food_bill=tot_bill+tot_bill*tax+tot_bill*(.18)
elif choice==3:
tot_food_bill=tot_bill+tot_bill*tax+tot_bill*(.2)
else:
print("invalid choice:")
#print the total food bill
print("total food bill is ",tot_food_bill)
Explanation:
Read the food bill from user and assign it to variable "tot_bill".Initialize the tax=0.06 (i.e. 6%) on the bill.Then ask user to give his choice for tip. if the choice is 1 then tip will be 15%, if 2 then 18% and if choice is 3 Then tip will be 20% of the bill.Calculate the total food bill and assign it to variable "tot_food_bill".
Output:
Please enter the food bill:100
enter your choice for tip:(1 for 15%, 2 for 18% and 3 for 20% :)2
total food bill is 124.0
1 distraction is phones , texting and driving . They could have a system in their car which activated by a voice assistant who could do it al for them
Answer:
The answer is A. CAD which means Computer-Aided Design.
Explanation:
CAD is used for creating different designs, simulations and scientific diagrams, some examples of CAD software include AutoCAD and Solidworks.
For reference the other acronyms mean:
Desktop publishing (DTP)
Computer-based training (CBT)
Web-based training (WBT)
Answer:
file_name = 'orders.txt'
file_obj = open( file_name, 'r' )
lines = file_obj.read()
print(lines.upper(), end = '')
Explanation:
- Define the name of the file
.
- Use the built-in open function to open the file in read mode
.
- Use the built-in read function to read the file and assign this to lines variable.
- Finally display the lines by converting them to capital alphabets by using the built-in upper() function.
The technology is being used when you are sent an email saying you can track your package is known to be a scan code.
<h3>What are code-scanning technology?</h3>
This is known to be called a barcode reader or simply say a barcode scanner.
It is seen as a kind of an optical scanner that tends to read printed barcodes, as well as be able to decode the data that are found in the barcode and transmit the data to a computer.
Hence, The technology is being used when you are sent an email saying you can track your package is known to be a scan code.
Learn more about scan code from
brainly.com/question/24937533
#SPJ1