This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Final Project Currency Conversion Main Module Declare selection as integer Declare currency type as integer Declare international value as real Declare US value as real Do while user wants to continue Call display Menu Call get international value Call convert currency Call display results End while Print exit message End main module Display Menu Declare continue as Boolean Set continue = true While continue = true Display "Welcome to the international currency conversion program" Display "Please make a selection" Display "International Currency Types:" Display "1: Canadian Dollars" Display "2: Mexican Pesos" Display "3: Euros" Display "4: Japanese Yen" Display "5: Chinese Yuan" Display "6: Quit" Display "Enter a selection: "; Input currency type If currency type >= 1 and currency type <= 5 then Set continue = false else if currency type = 6 Display “Quitting Currency Conversion” continue = false else Display "Invalid menu selection." continue = true end if end While End Display Menu Get International Value Declare value as integer Declare continue as Boolean Set continue = true While continue = true Display "Enter a currency value (positive number):" Input international value if international value > 0 and international value <=(NNN) NNN-NNNNthen continue = false else Display "Invalid input Negative Number" continue = true end if end while End Get International Value Convert Currency Declare rate as real Select Case of currency type case 1: Set rate = 0.9554Set rate = 0....
View Full Document
This note was uploaded on 08/26/2011 for the course IT 210 IT/210 taught by Professor Mathhews during the Spring '11 term at University of Phoenix.
- Spring '11