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 #: 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
Enter discount rate:
Receipt
Original Price: AED
Discount Rate:
Discount Amount: AED
Net Price: AED
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
