Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please number 8 and 10 By python Program outpu I am Arth King of t Programming E

ID: 3728289 • Letter: P

Question

Please number 8 and 10 By python Program outpu I am Arth King of t Programming Exeecises 281 d times 10 his or hee fi Next, she cakculates the number of calories that results from the carbohydrates, ning following formala calories from carbs-carb grams × 4 The nutritionist asks you to write a peogram that will make these cakcalations 7. Stadium Seating There are three seating categories at a sudium·Class A seats cost S20, aas B seats cor $15. and Class C seats cost $10. Write program that auks how many tickets for each class of seats were sold, then displays the amount of income generated froms ticket sales 8. Paint Job Estimator A painting company has determined that for every 112 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $35.00 per hour for labor. Write a program thar asks the user to enter the square feet of wall space to be painted and the price of the paint per gallon. The program should display the following data exercise, yog ate sales tas tasks are i 2s. The number of gallons of paint required · The hours of labor required · The cost of the paint · The labor charges ·The total cost of the paint job sage for tons. r buildings a program A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 5 percent and the county sales tax rate is 2.5 percesn. the total sales for the month. From this figure, the application should calculate and display the following 9. Monthly Sales Tax Write a program that asks the user to enter expenses tires, and xpenses, The amount of county sales tax The total sales tax (county plus seate) ·The amount of state sales tax 12 inches. Write a function named feet to inches that accepts a number of feet as an argument and returns the number of inches in that many feet. Use the function 10. Feet to Inches rcent of asscss t value for the ax. One foot equals in a program that prompts the user to enter a number of feet then displays the number of inches in that many feet. 11. Math Quiz Write a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as: d s part rams from 247 129 The program should allow the student to enter the answer. If the answer is correct, a mes- sage of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.

Explanation / Answer

Question 8:-

wall = input('Enter square feet wall space ') #this line for input
paint_price = input('price of paint per gallon ') #this line for input


required_paint=float(wall)/112
print('The numbers of gallones paint required {0} gallones '.format(required_paint))


required_hours=int(required_paint)*8
print('The hours of labor required = {0}hours '.format(required_hours))


paint_cost=float(required_paint)* float(paint_price)
print('cost of the paint = ${0} '.format(paint_cost))

labor_charge=float(required_hours)*35.00
print('The labor charge = ${0} '.format(labor_charge))

print('Total cost of paint job = ${0} '.format(labor_charge+paint_cost))

Question no 9:-

num = input('Enter total sales for this month: ') #this line for input
state=(float(num)*5)/100 # calculation for state sales tax
country=(float(num)*2.5)/100 # calculation for state sales tax
print('The ammount of country sales tax {0}'.format(country)) #print those value
print('The ammount of state sales tax {0}'.format(state))
print('Total sales tax {0}'.format(country+state))

Question no 10:-

def feet_to_inches(f): #your function that convert feet to inches
i = float(f) * 12
return i

feet = input('Enter number ') #this line for input
inches = feet_to_inches(feet)
print ('{0} feet = {1}inches'.format(feet,inches)) #for output

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote