Currency Conversion Design – It 210 Essay

Currency Conversion Design Assignment—Hierarchy Chart Complete a hierarchy chart for the application by typing into the textboxes below. Main Module Display_Results Module Get_Int_Value Module Display_MenuModule Convert_Currency Module Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment by typing into the textboxes below. Control Flow Diagram—Main Control ————————————————- Begin Do you want to quit? Quit ? Provide exit message Display_Menu Yes No Convert_ Currency Display_Results End ———————————————— Control Flow Diagram—Display Menu Begin Selection Menu Valid selection ? Error 4 : Invalid menu selection No Yes End Quit ? Yes Provide exit message Quit Verified ? Yes Take Selection from user Get_Int_Value No Conversion Verified ? No Yes No | Control Flow Diagram—Get_Int_Value Display Error Message Display Error Message Tell user to enter a number Take input from user | Control Flow Diagram—Convert Currency French ? Japanese ? Mexican ? Begin Canadian ? Rate = Canadian Rate English ? No No No No No Yes Yes Yes Yes Yes Rate = Mexican Rate

Rate = English Rate Rate = Japanese Rate Rate = French Rate Rate = 0 . 0 US Value = Rate*Int_Value End | Control Flow Diagram—Display_Results Invalid Selection Nation = French Currency = Francs Nation = Japanese Currency = Yen Nation = English Currency = Pounds Nation = Mexican Currency = Pesos Canadian ? Mexican ? English ? Japanese ? | Module Main() Declare option = 0; Declare value = 0; Declare converted = 0; Display(“ Currency Convertor”); Display(“1. Canadian dollars to US dollars”); Display(“2. Mexican pesos to US dollars”); Display(“3. English pounds to US dollars”); Display(“4.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

Japanese yen to US dollars”); Display(“5. French francs to US dollars”); Display(“Enter the choice:”); Get option; Display(“Enter the amount:”); Get value; if ( option := 1), then converted := value * (1/1. 468); else if (option := 2), then converted := value * (1/9. 5085); else if ( option := 3), then converted := value * 1. 6433; else if ( option := 4), then converted := value * (1/104. 92); else if ( option := 5), then converted := value * (1/6. 2561); else Display(“Wrong Menu Selection”); End If Display(“Entered Value:”,value); Display(“US dollar equivalent:”,converted); END Main MODULE