Asked by Kirubel
Write an algorithmic description(pseudocode) and draw a flowchart for a program that calculate 20% discount of an item price & then display original price ,discount price & the dicounted amount ??
Answers
Answered by
Anonymous
Well the last coding I did was on punched cards in FORTRAN and I can not do a flow chart here anyway but maybe:
1.........read price p
2 ........ if p = 0, go to end , 7
3.........discount = d = 0.20 * p
4 ...... final price = fp = p - d
5......... print ( p , fp , d )
6 .........go back up to 1
7 ------- end
1.........read price p
2 ........ if p = 0, go to end , 7
3.........discount = d = 0.20 * p
4 ...... final price = fp = p - d
5......... print ( p , fp , d )
6 .........go back up to 1
7 ------- end
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.