KEMBAR78
Algorithm Without Module and Module | PDF | Financial Economics | Applied Mathematics
0% found this document useful (0 votes)
32 views5 pages

Algorithm Without Module and Module

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views5 pages

Algorithm Without Module and Module

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Algorithm without module

1. Start
2. Total_Price=0
3. loop=0
4. Enter Name
5. Enter NoPhone
6. Enter Email
7. Enter Zone
8. Enter Meet&Greet (1=Yes,0=No)
9. Enter Exit? (1=Yes,0=No)
10. While (Exit=0)
11. IF (Zone==”Standing”) THEN
12. IF (Meet&Greet=’1’) THEN
13. Price=578.00
14. AdditionalFees=250.00
15. ELSE
16. Price=578.00
17. AdditionalFees=0.00
18. ELSE IF (Zone==”CAT 1”) THEN
19. IF (Meet&Greet=’1’) THEN
20. Price=408.00
21. AdditionalFees=250.00
22. ELSE
23. Price=408.00
24. AdditionalFees=0.00
25. ELSE IF (Zone==”CAT 2”) THEN
26. IF (Meet&Greet=’1’) THEN
27. Price=308.00
28. AdditionalFees=250.00
29. ELSE
30. Price=308.00
31. AdditionalFees=0.00
32. ELSE
33. IF (Meet&Greet=’1’) THEN
34. Price=698.00
35. AdditionalFees=0.00
36. ELSE
37. PRICE=698.00
38. AdditionalFees=0.00
39. END IF
40. Calculate Price=Price+AdditionalFees
41. Calculate Total_Price=Price+Total_Price
42. While-end
43. Enter NumberOfTickets
44. IF (NumberOfTickets>5) THEN
45. Discount=0.2
46. ELSE
47. Discount=0.0
48. END IF
49. Calculate TotalPrice=Total_Price-(Total_Price*Discount)
50. Print Name
51. Print NoPhone
52. Print Email
53. Print Zone
54. Print Meet&Greet
55. Print NumbersOfTickets
56. Print AdditionalFees
57. Print Total_Price
58. Print TotalPrice
59. End
Algorithm with module

1. TotalPriceControl ()
2. Total_Price=0
3. loop=0
4. Process Read1 (*Name, *NoPhone, *Email)
5. Enter Exit? (1=Yes,0=No)
6. Process Read2 (*Zone, *Meet&Greet)
7. While (Exit=0)
8. Process Calculate1 (Zone, Meet&Greet, *Price, *AddtionalFees)
9. Process Calculate2 (*Total_Price, Price)
10. While-end
11. Process Read3 (*NumberOfTickets)
12. Process Calculate3 (NumberOfTickets, *Discount, *TotalPrice)
13. Process Print (Name, NoPhone, Email, Zone, Meet&Greet, NumberOfTickets, AddtionalFees,
Total_Price, TotalPrice)
14. End
15. .
16. Read1 (*Name, *NoPhone,*Email)
17. Enter Name
18. Enter NoPhone
19. Enter Email
20. Exit
21. .
22. Read2 (*Zone,*Meet&Greet)
23. Enter Zone
24. Enter Meet&Greet (1=Yes,0=No)
25. Exit
26. .
27. Calculate1 (Zone, Meet&Greet, *Price, *AddtionalFees)
28. IF (Zone==”Standing”) THEN
29. IF (Meet&Greet=’1’) THEN
30. Price=578.00
31. AdditionalFees=250.00
32. ELSE
33. Price=578.00
34. AdditionalFees=0.00
35. ELSE IF (Zone==”CAT 1”) THEN
36. IF (Meet&Greet=’1’) THEN
37. Price=408.00
38. AdditionalFees=250.00
39. ELSE
40. Price=408.00
41. AdditionalFees=0.00
42. ELSE IF (Zone==”CAT 2”) THEN
43. IF (Meet&Greet=’1’) THEN
44. Price=308.00
45. AdditionalFees=250.00
46. ELSE
47. Price=308.00
48. AdditionalFees=0.00
49. ELSE
50. IF (Meet&Greet=’1’) THEN
51. Price=698.00
52. AdditionalFees=0.00
53. ELSE
54. PRICE=698.00
55. AdditionalFees=0.00
56. END IF
57. Calculate Price=Price+AdditionalFees
58. Exit
59. .
60. Calculate2 (*Total_Price, Price)
61. Calculate Total_Price=Price+AdditionalFees
62. Exit
63. .
64. Read3 (*NumberOfTickets)
65. Enter NumberOfTickets
66. Exit
67. .
68. Calculate3 (NumberOfTickets, *Discount, *TotalPrice)
69. IF (NumberOfTickets>5) THEN
70. Discount=0.2
71. ELSE
72. Discount=0.0
73. END IF
74. Calculate TotalPrice=Total_Price-(Total_Price*Discount)
75. Exit
76. .
77. Print (Name, NoPhone, Email, Zone, Meet&Greet, NumberOfTickets, AddtionalFees,
Total_Price, TotalPrice)
78. Print Name
79. Print NoPhone
80. Print Email
81. Print Zone
82. Print Meet&Greet
83. Print NumbersOfTickets
84. Print AdditionalFees
85. Print Total_Price
86. Print TotalPrice
87. Exit

You might also like