1a - VAT Write a program that takes the price of an article including VAT and prints the price of the article without VAT. The VAT is currently 21.00%. Example: Enter the price of an article including VAT: 121 This article will cost 100.00 euro without 21.00% VAT. Make sure to print the price and VAT percentage using 2 decimals. Put your program in vat.py . 1b - Plumber The employees at plumbery 'The Maverick Monkey' are notorious bad mathematicians. Therefore the boss has decided to use a computer program to calculate the cost of a repair. The cost of a repair can be calculated in the following way: the hourly wages multiplied by the number of billable hours plus the call- out cost. The number of billable hours is the number of hours worked rounded to the nearest integer. Plumbing laws fix the call-out cost at €16,00. Example: Enter the hourly wages: 31.50 Enter the number of hours worked: 4.5 The total cost of this repair is: 173.50 euro Put your program in plumber.py
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
- Please do this in Python
Programming with Screenshot - The output should be exact same like in the examples.
- If the output in the example is in 2 decimals, then it should be like that.
1a - VAT
Write a program that takes the price of an article including VAT and prints
the price of the article without VAT. The VAT is currently 21.00%.
Example:
Enter the price of an article including VAT: 121
This article will cost 100.00 euro without 21.00% VAT.
Make sure to print the price and VAT percentage using 2 decimals.
Put your program in vat.py .
1b - Plumber
The employees at plumbery 'The Maverick Monkey' are notorious bad mathematicians. Therefore the boss has decided to use a computer program to calculate the cost of a repair. The cost of a repair can be calculated in the following way: the hourly wages multiplied by the number of billable hours plus the call-
out cost. The number of billable hours is the number of hours worked rounded to the nearest integer. Plumbing laws fix the call-out cost at €16,00.
Example:
Enter the hourly wages: 31.50
Enter the number of hours worked: 4.5
The total cost of this repair is: 173.50 euro
Put your program in plumber.py
Step by step
Solved in 4 steps