Question: Write a simple and very basic C + + program ( using array ) : Exercise # 4 : Sales Calculator A company makes sales

Write a simple and very basic C++ program (using array):
Exercise #4: Sales Calculator
A company makes sales on their products. They need a program to help them to calculate the prices after
the discount and print out a receipt for the customer that contains the following information:
Original price.
Discount rate.
Discount amount.
Price after discount.
The main program prompts the cashier to enter the original price and the discount rate, calls the function
CalculateDiscount(), calculates the net price, the calls the function PrintReceipt() to print the receipt.
double CalculateDiscount (double, double).
void PrintReceipt (double, double, double, double)
Sample input / output:
Enter the original price: AED 500
Enter discount rate: 5.5
Receipt
Original Price: 500 AED
Discount Rate: 5.5%
Discount Amount: 27.5 AED
Net Price: 472.5 AED
Write a simple and very basic C + + program (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!