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
Answer:
An embedded system is a part of a larger system which has either one or a limited number of dedicated functions.
It doesn't require much power to run and is cheap to make and design.
Explanation:
Examples include: cars, microwaves, traffic lights, washing machines, phones etc
I think only II contains an error.
Tricky because, syntactically, all three are correct I.M.O.
However, if the goal is to iterate as many times as lotNumLength, then statement II loops one time too many. This is known as an off-by-one error.
Answer:
I used Microsoft PowerPoint 2010 to create my presentation. I created five slides on the topic of “Pets” and then customized the presentation.
Theme: I selected the Hardcover theme from the Design tab.
Slide Master: The Slide Master consists of all the design elements that I want for my slides. Therefore, I used the Slide Master option from the View tab. It gave me a view of all my slides in the form of thumbnails (on the left side) as Master Layouts. From the thumbnails list, I clicked on the top-most one (larger thumbnail) to edit it. On this master slide, I changed the background design, color scheme, and positioning of the placeholders.
Animation: There were certain slides for which I wanted to add animations. I individually selected those slides and clicked on the Animations Tab. I selected the Zoom animation style for the entry and exit of my text for particular slides.
Slide Layout: Within my presentation, I wanted a slide (slide number 5) to stand out from the rest. This slide would talk about the various pet stores in the vicinity. First, I used the Insert Layout option while being on the Slide Master view. Next, I used the Insert Placeholder option and selected Picture. Then, I had to drag the cursor to create a placeholder on the slide. I right clicked the thumbnail of this new slide and selected Rename Layout to change the name of this custom layout to “Pet Stores.”
Explanation:
This is the answer for Plato