Write a function that takes an input parameter as a String. The function should replace the alternate words in it with “xyz” and print it. Words are separated by dots. (Avoid using inbuilt functions)
If input is “i.like.this.program.very.much”
Output will be “i.xyz.this.xyz.very.xyz
There are 2 types of tyres in stock, namely those for luxury vehicles and those for construction vehicles.
Construction vehicle tyres cost twice the price of luxury vehicle tyres, and the prices
depend on the wheel size according to the following price list for luxury vehicles:
Wheel Size Price/Unit measurement ($)
Less than 10 Inches 3.50
10- 15 Inches 4.00
Greater than 15 inches 6.00
You are required to create a python program that implements the program according to
the following guidelines:
c) Create a class called Luxury which contains:
i) A constructor
ii) A function called Calc for doing relevant calculations for calculating the total price
of wheels purchased for construction vehicles.
d) Create a class called Bonuses which contains a constructor and a function called Calc
for calculating the bonus that the client is eligible to recieve. A client may recieve a
bonus if the total price of the tyres he/she has purchased is greater than $500.00.
2 types of tyres in stock, namely for luxury vehicles and for construction vehicles.
Cons vehicle tyres cost twice the price of luxury vehicle tyres, the prices
depend on the wheel size according to the following price list for luxury vehicles:
Wheel Size: Price ($)
Less than 10 Inches: 3.50
10- 15 Inches: 4.00
Greater than 15 inches: 6.00
create a python program that implements the program:
a) Create a class called Home, which contains a function called Details for receiving the
values of the type of vehicle, the size of the tyres and the number of tyres for the
vehicle.
b) Create a class called Construction which contains:
i) A constructor
ii) A function called Calc for doing relevant calculations for calculating the total price
of the tyres purchased for construction vehicles.
c) Create a class called Luxury which contains:
i) A constructor
ii) A function called Calc for doing relevant calculations for calculating the total price
of wheels purchased for construction vehicles.
______ data is what is translated to digital format so it can be stored in a computer.
Write a function that takes seconds from the user and displays the time in Hours,
minutes and seconds’ format. E.g. if the user enters 3700, the output of the program
should be
1 Hour 1 minute and 40 seconds
Write a function that takes quantity in pounds and convert it into gram and kilogram
Reflect the concept of required argument
1 Pound = 453.59237 Grams
1 Pound = 0.454 kilograms
Write a function that takes two numbers and perform all arithmetic operations.
Function should have default arguments set to 1, 1
● Addition
● Subtraction
● Division
● Multiplication