Draw a flowchart. do not output the number of minutes during which the service is used.
a. regularBill: This method calculates and returns the billing amount for regular
service.
b. premiumBill: This method calculates and returns the billing amount for premium
service.
Exercise 1: Practice to store and print data in an array
a) Write a C program that reads marks of 10 students into a single subscripted array.
b) Above marks should be between 0 to 20. Modify the above program to add marks to the array only if the input mark is between the given range.
c) Display the values stored in the array.
Exercise 2: Practice accessing data stored in an array
Modify the above program to find the mean of the marks stored in the array.
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.
Management of the events have decided to allow a 10% discount on all events that cost over R 250. Create a PL/SQL query to display the event name and price, with or without the applied discount.
Sample Results Open Air Comedy Festival price: R 270 ------------------------------------------------------- Mountain Side Music Festival price: R 252 ------------------------------------------------------- Beach Music Festival price: R 195 -------------------------------------------------------