Basically it's a project where I'm supposed to write a currency conversion program in pseudocode, but I have to make sure the syntax is correct and I'm using the right variables. Normally we do study groups and bounce ideas off each other, but not this time.
I'd actually prefer we were using an actual language, then at least I could test it for myself to see if it worked.
Main Module Declare CurrencyType as Integer Declare IntValue as Real Declare USValue as Real Declare Continue as String Do Display “Would you like to convert a currency? Y or N” Input Continue If continue = y Then Call Display Menu Module Call International Value Module Call Convert Currency Module Call Display Results Module Else Display “Goodbye.” While continue = y End Main Module Perform Display Menu Module Declare CurrencyType as integer Display “Welcome to the Currency Converter Program.” Display “Please Select the currency you would like to convert.” Display “Select 1 for Canadian Dollars.” Display “Select 2 for Mexican Pesos.” Display “Select 3 for British Pounds.” Display “Select 4 for Japanese Yen.” Display “Select 5 for E.U. Euros.” Input CurrencyType If CurrencyType (0 < CurrencyType < 6) Then Continue Else Display “Error 4: Invalid Menu Selection.” End If End Display Menu Module Perform International Value Module Declare IntValue as integer Display “Please enter the value of the currency you would like to convert.” Input IntValue If IntValue ( 0>IntValue) Then Display “Error 1: Invalid Input” Else Continue End If If IntValue ( 0 < IntValue < 1,000,000) Then Display “Please Enter a valid value.” End If End International Value Module Perform Convert Currency Module Declare Rate as Real Declare USValue as Real Rate = 0 If CurrencyType = 1 Then Rate = 1.4680 If CurrencyType = 2 Then Rate = 9.5085 If CurrencyType = 3 Then Rate = .6085 If CurrencyType = 4 Then Rate = 104.9200 If CurrencyType = 5 Then rate = .7676 End If USValue = Rate * IntValue End Convert Currency Module Perform Display Results Module Declare Nation as String Declare Currency as String If CurrencyType = 1 then Nation = Canada Currency = Dollars If CurrencyType = 2 then Nation = Mexico Currency = Pesos If CurrencyType = 3 then Nation = England Currency = Pounds If CurrencyType = 4 then Nation = Japan Currency = Yen If CurrencyType = 5 then Nation = Euro Currency = Euro End If Display “ “IntValue” “Currency” from “Nation” is equal to “USValue”.”