Answer:
bill = float(input("Enter the bill amount: "))
rating = int(input("Choose a rating: 1 = Totally satisfied, 2 = Satisfied, 3 = Dissatisfied.: "))
if rating is 1:
tip = bill * 0.2
elif rating is 2:
tip = bill * 0.15
elif rating is 3:
tip = bill * 0.1
print("The rating is: " + str(rating))
print("The tip is: $%.2f" % (tip))
Explanation:
*The code is in Python
- Ask the user for the <em>bill</em> and <em>rating</em>
- Depending on the <em>rating</em>, calculate the <em>tip</em> using <u>if else</u> statement i.e. If the rating is chosen as 1, calculate the tip by taking 20 percent of the bill.
- Print the <em>rating</em> and the <em>tip</em>
Answer:
update
Explanation:
a table of contents does not update itself automatically.
Answer:
To make sure that data sent from a device is just received by appropriate device we use "<u>Switch</u>"
Explanation:
Switch is the networking device. It is used to connect all the Local area networks in a computer network. The switch store the addresses of all computers over the network. Whenever data packet arrives to the switch, it just read the address of destination computer and just send it to appropriate device instead of all devices.
Hub is also used for this purpose, but it has no ability to read the address and send the packet to all devices over the network.
<em>So, we use Switch to send data to appropriate device.</em>
Answer:
Free software (or libre software) is computer software distributed under terms that allow users to run the software for any purpose as well as to study, change, and distribute it and any adapted versions.
Explanation: