Final Project - Final Project Currency Conversion Main...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

Page1 / 6

Final Project - Final Project Currency Conversion Main...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online