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
I do not believe you answer is right. I believe it would be B the average montly sales for the big toy company. Only documenting the last month is not enough information to make a histogram, and a histogram asks for information based on one subject not multiple subjects. Asking for the number of each type of candy sold last month would make a normal graph comparing the difference in how much each candy sold, so your answer should be B.
Answer:
int SmallestNumber(int num1, int num2, int num3){
int smallest;
if (num1 >num2){
smallest=num2;
}
else {
smallest=num1;
}
if(smallest <num3){
smallest=num3;
}
}
int LargestNumber(int num1, int num2, int num3){
int largest;
if (num1 <num2){
largest=num2;
}
else {
largest=num1;
}
if(largest>num3){
largest=num3;
}
}
void main(){
int num1,num2,num3;
printf("enter values");
scanf("%d%d%d",&num1,&num2,&num3);
int smallest=SmallestNumber(num1,num2,num3);
int largest=LargestNumber(num1,num2,num3);
}
Explanation:
we are comparing first two numbers and finding largest among those. After getting largest comparing that with remaining if it is greater then it will be largest of three. Same logic applicable to smallest also
The answer to your question is ----> <span>245.6 g
Hope this answer has helped you. If it has, please mark it a brainliest. Thanks.
Have a BRAINLY day.</span>