Currency conversion design pseudocode


Currency Conversion Design Pseudocode

Program Pseudocode:

Start Main MODULE

Declare option = 0;

Declare value = 0;

Declare converted = 0;

Display(" Currency Convertor ");

Menu_Module();

Display("Enter choice:");

Get option;

Display("Enter the amount:");

Get value;

if ( option := 1), then

            Convert_Currency Module(option,value);

else if (option := 2), then

Convert_Currency Module(option,value);

else if ( option := 3), then

Convert_Currency Module(option,value);

else if ( option := 4), then

Convert_Currency Module(option,value);

else if ( option := 5), then

Convert_Currency Module(option,value);

else

            Display("Wrong Menu Selection");

End If

END Main MODULE

Start Menu_Module

Display("1. Canadian dollars to US dollars");

Display("2. Mexican pesos to US dollars");

Display("3. English pounds to US dollars");

Display("4. Japanese yen to US dollars");

Display("5. French francs to US dollars");

End Menu Module

Start Convert_Currency Module(option,value)

if ( option := 1), then

            converted := value * (0.93);

            Display_Results Module(converted,value);

else if (option := 2), then

            converted := value * (0.077);

            Display_Results Module(converted,value);

 

else if ( option := 3), then

            converted := value * (1.71);

            Display_Results Module(converted,value);

 

else if ( option := 4), then

            converted := value * (0.0099);

            Display_Results Module(converted,value);

else if ( option := 5), then

            converted := value * (1.11);

            Display_Results Module(converted,value);

else

            Display("Wrong Menu Selection");

End If

End Convert_Currency Module

Start Display_Results Module(converted,value)

Display("Entered Value:",value);

Display("US dollar equivalent:",converted);

END Display_Results Module

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Currency conversion design pseudocode
Reference No:- TGS0550963

Expected delivery within 24 Hours