Asked by Anonymous
c++ program that accepts customer data
,calculates discount based on the age and ticket price depending on the schemes offered by transport company.
,calculates discount based on the age and ticket price depending on the schemes offered by transport company.
Answers
Answered by
MathMate
Make a data structure (or simply a table) to store the pricing schemes.
Use a pseudocode to plan the program flow. It should roughly look like the following:
1. Initialize pricing data
2. Prompt for input, e.g. number of persons, category/destination, etc.
3. Perform calculations
4. Print results/summary
5. Ask if more calculations needed. If yes, go back to step 2.
6. End session.
Use a pseudocode to plan the program flow. It should roughly look like the following:
1. Initialize pricing data
2. Prompt for input, e.g. number of persons, category/destination, etc.
3. Perform calculations
4. Print results/summary
5. Ask if more calculations needed. If yes, go back to step 2.
6. End session.