The scenario is to create a program for a windows company. The program should display the total amount a customer owes, given the number of windows ordered and the price per window.
Total owed is calculated by multiplying the number of windows ordered by the price per window. Several times during the year, the company has a BOGO( buy one, get one free) offer.
Additional information:
Examples using regular pricing-
number of windows =11
price per window = 300
total owed (11 * 300): 3300.00
Examples using BOGO pricing-
Number of Windows :15
Price per window: 200
total owed ( 8 * 200): 1600.00
The program also has to be modified by changing the 2 void functions used to get regular price and to get the BOGO price, to value returning functions
Edit: language is C++