Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. Main Module
  2. Declare International Currency Type as String
  3. Declare Total Amount International as Real
  4. Declare Total Amount US as Real
  5. Call Get User Input Module
  6. Call Exchange Rate Module
  7. Call Conversion Module
  8. Call Display Module
  9. End Main Module
  10. Get User Input Module
  11. Write “Enter Total Amount of International Currency.”
  12. Input TotalAmountInternational
  13. Write “Select International Currency Type From The List Below.”
  14. Write “Canadian Dollars……………………….Enter 1”
  15. Write “Mexican Pesos………………………….Enter 2”
  16. Write “English Pounds…………………………Enter 3”
  17. Write “Japanese Yen…………………………..Enter 4”
  18. Write “French Francs…………………………..Enter 5”
  19. Write “Exit Program……………………………Enter 0”
  20. Input Choice
  21. Select Case Of Choice
  22. Case 0:
  23. Write “GoodBye”
  24. Case 1-5:
  25. Call Exchange Rate Module
  26. End Case
  27. End Get User Input Module
  28. Exchange Rate Module
  29. If Canadian Dollars Then
  30. Set Rate = 1.4680
  31. ElseIf Mexican Pesos Then
  32. Set Rate = 9.5085
  33. EsleIf English Pounds Then
  34. Set Rate = 1.6433
  35. ElseIf Japanese Yen Then
  36. Set Rate = 104.9200
  37. ElseIf French Francs Then
  38. Set Rate = 6.2561
  39. End If
  40. End Exchange Rate Module
  41. Conversion Module
  42. TotalAmountUS = TotalAmountInternational / Rate
  43. If Currency Type = 3 Then
  44. TotalAmountUS = TotalAmountInternational * Rate
  45. End Conversion Module
  46. Display Module
  47. Display “The currency conversion for” InternationalCurrency “,”
  48. Display “in the amount of” TotalAmountInternational “is”
  49. Display “converted to” TotalAmountUS “U.S. Dollars.”
  50. Display “Would you like to enter another conversion or exit the program?”
  51. Display “Input another Conversion…………………….”1”
  52. Display “Exit Program……………………………………”0”
  53. Input Choice
  54. Select Case of Choice
  55. Case 1:
  56. Call Get User Input Module
  57. Case 0:
  58. Display “GoodBye!”
  59. Exit Program
  60. End Case
  61. While Case <> 1 or <> 0 Then
  62. Display Results
  63. End While
  64. End Display Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement