Lab Practice

Input in Python:

Lab Practice

  1. Write a program that reads the number of days the person stays in the hotel, the price of the hotel per day, and the tax (integer). The program finds and prints the total price of the hotel stay.

  2. A customer comes to the store and buys 1 bottle of milk, 2 trays of eggs, and 3 loafs of bread. Write a program that asks user to enter the price for each item and find the total price and the average price per item.

  3. A student took four courses in Fall 2019 semester. Write a program that asks user to enter final grade for each course in Fall 2019 and finds the average grade for Fall 2019 semester.

  4. The final grade in our course is calculated according to the following rule:

    Final Grade

    Laboratory Sessions 45%
    Exams 35%
    Mini-Quizzes 15%
    Homework and Attendance 5%

    Write a program that asks user to enter the average grade for all quizzes, average grade for all exams, average grade for all homeworks, and the lab grade. The program calculates the final grade in the course.