Thursday, August 1, 2019
It210 Final
IT 210-Final Currency Conversion Program Florence Sanders IT/210 Fundamentals of Programming with Algorithms and Logic September 16, 2012 Ed Addison Application-Level Requirements List 1. User screen that prompts user 2. Display prompts main user title screen 3. Main user screen provides short description explaining use of program 4. Calculations of currency is executed with valid inputs 5. Provides option to clear input fields Input| Process| Output|Currency TypeCurrency AmountExchange Rate| Get user input| Currency Type Currency Amount| Currency Type| Foreign Exchange Currency | Currency Type| Enter currency amount| Calculate total| Currency Amount| Foreign Currency amount | Convert to US dollar| US currency amount| Currency TypeCurrency AmountExchange Rate| Display results| Conversion of foreign currency into US Dollars| Main Module Main Module Display_Resluts Module Display_Resluts Module Get_Int_Value Module Get_Int_Value Module Display_Menu Module Display_Menu Module Convert_Cu rrency Module Convert_Currency Module Control Flow Diagramââ¬âMain Control ââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬âââ¬â Begin Display Menu Quit ? Provide exit message Display Menu Yes No Convert Currency Display results End Begin Display Menu 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 menu Quit Verified ? Yes Take selection from user Get_Int_Value No Conversion Verified ? No Yes No Begin Selection menu Valid selection ? Error 4 : Invalid enu selection No Yes End Quit ? Yes Provide exit menu Quit Verified ? Yes Take selection from user Get_Int_Value No Conversion Verified ? No Yes No | Control Flow Diagramââ¬âGet_Int_Value Tell user to enter number Tell user to enter number Take input from user Take input from user Error message Error message Error message Error message | Control Flow Diagramââ¬âConvert Currency French ? French ? Japanese? ? Japanese? ? Mexican? Mexican? Begin Canadian ? Rate=Canadian Rate English ? No No No No No Yes Yes Yes Yes Yes Rate =Mexican rate Rate=pound rate Rate=Japanese rate Rate = French Rate Rate = 0 . 0 US Value =Rate*Int_Value End Begin Canadian ? Rate=Canadian Rate English ? No No No No No Yes Yes Yes Yes Yes Rate =Mexican rate Rate=pound rate Rate=Japanese rate Rate = French Rate Rate = 0 . 0 US Value = Rate*Int_Value End | Control Flow Diagramââ¬âDisplay_Results Nation=French Currency=Francs Nation=French Currency=Francs Nation=Japanese Currency=Yen Nation=Japanese Currency=Yen Nation=English Currency=Pound Nation=English Currency=Pound Nation=Mexican Currency=Pesos Nation=Mexican Currency=Pesos Japanese ? Japanes e ? English ? ? English ? ? Mexican ? Mexican ? Canadian ? Canadian ? Invalid Selection Invalid Selection |Final Project Currency Conversion Psuedocode 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 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: 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 0 AND international Value
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.