We use a flowchart to spell out the logic behind a program before ever starting to code the automated process.
- Flowchart can only have ONE START and ONE STOP symbols (Represented by ELLIPSE).
- ON PAGE CONNECTORS (Represented by Circle), usually represented using Alpahabets in capital Letters.
- We use this connector, since if we anytime realise that we are short of page and we wish to continue to the next page.
- We have to use this connector to show the same.
- General Flow of Flowchart is either:
- Top to Bottom.
- Left to Right.
- Flow Lines should not cross each other
Q. A restaurant gives a discount of 10% if the total customer bill including 5% tax is greater than or equal to Rs. 1000. Write an algorithm and also create a flowchart for the problem statement mentioned above.
- Note: The customer bill needs to be entered by the user and total bill including 5% tax needs to be calculated in the program. If the customer is eligible for the discount, then calculate the net payable amount and print it
Ans: Refer to the below Algorithms and Flowchart to this Problem Statement