I am supposed to create a pseudocode, I guess I am missing something because I thought that I had. This is what I have so far can someone please help me with finishing this?
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
Display Menu
Get International Value
Convert Currency
Display Results
End Loop
Print Exit message
End Main Module
Display Menu
Declare continue as Boolean
Set 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; English Pounds’
Display *4; Japanese Yen’
Display *5; French Francs’
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 ‘Error 4; Invalid menu selection’
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 (+ #);’
Input International Value
If International value > 0 and International value < 100000 then continue = false
Else
Display ‘Error 1; Invalid input: - #’ 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 = 1.4680
Case 2:
Set rate = 9.5085
Case 3:
Set rate = .6085
Case 4:
Set rate = 104.9
Case 5:
Set rate = 6.2561
Default:
Set rate = 0
End Case
US Value = rate * International Value
End Convert Currency
Display Results
Declare Nation as string
Declare currency as string
Select Case of currency Type
Case CANADIAN:
Nation = ‘Canadian’;
Currency = ‘Dollars’;
Case MEXICAN:
Nation = ‘Mexican’;
Currency = ‘Pesos’;
Case ENGLISH:
Nation = ‘English’;
Currency = ‘Pounds’;
Case JAPANES:
Nation = ‘Japanese’;
Currency = ‘Yen’;
Case FRENCH:
Nation = ‘French’;
Currency = ‘Francs’;
Default:
Nation = ‘No Country’;
Currency = ‘’;
End case
If currency <> then
Display the Value of, International Value, Nation, currency, is, US Value, dollars
Else
Display ‘Error 5: Invalid currency Type’
End if
End Display Results
I also have a flow chart if it is needed.