Hi.. Can anyone please help me to write the following program:
Write a program that will calculate the price to be paid for the development of photographs. The program must use
two overloaded functions, each named calcTotal. If the client wants jumbo photographs, and the film is a 36
exposure film, the client gets 5% discount. If the client wants normal size photographs, and the film is a 36 exposure
film, he may discard up to 6 photographs without having to pay for it. The first function must calculate the total to be
paid for jumbo photographs, and will have one parameter of type int representing the exposure. The second
function will have two parameters of type int representing the exposure and the number of photographs to be
discarded. The functions must decide whether a discount (in the case of the jumbo photographs) or discarding of
photographs (in the case of normal size photographs) is allowed when calculating the total price. The user must
specify whether he wants jumbo size or normal size and the main program must then ask for the number of
photographs to be discarded if applicable. Both functions must return the total to be paid by the client in a variable of
type double. The main function should the display the total price. Define const variables where applicable inside
the function for the price of each photo – R3.40 for a jumbo and R3.20 for a normal size photo, as well as a const
variable for the discount value.
Hoping to be able to solve it by ur help..thank you in advance