Final Project - Main Module Declare Currency Type as...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Main Module Declare Currency Type as integer Declare selection as integer Declare Foreign Currency Value as real Declare US Dollar as real Declare result as integer Declare Boolean Do while user wants to continue Display menu Call get Foreign Currency value Call Convert Currency Display results End while Display exit message End Main Module Display Menu Declare continue as Boolean Set continue = True While continue = True Display “Foreign Currency Converter Program” Display “Please select from the following options” Display “1 Canadian Dollars” Display “2 French Francs”
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Display “3 Japanese Yen” Display “4 English Pounds” Display “5 Mexican Pesos” Display “6 Quit” Repeat Input Foreign Currency If Foreign Currency < 1 Display “Invalid Foreign Currency Selection. Please make a new selection” If Foreign Currency > 6 Display “Invalid Foreign Currency Selection. Please make a new selection” Repeat Input Foreign Currency If Foreign Currency < 1 or Foreign Currency > 6 Display “Error: Invalid Foreign Currency Selection. Please make a new selection” Valid Entry = False Until Valid Entry = True If Foreign Currency >= 1 or Foreign Currency <=5 Valid Entry = True Elseif Foreign Currency = 6 Display “Quit Currency Conversion” Continue = False Else Display “Error: Invalid Foreign Currency Selection. Please make a new selection” End If End Display Menu
Image of page 2
Get Foreign Currency Values Declare Boolean as a valid value Display “Enter a Currency Amount (0-1,000,000)” Repeat Input Foreign Currency Amount If Foreign Currency < 0 or Foreign Currency Value > 1,000,000 Then Display “Invalid Entry. Please Reduce the Amount.” Valid Value = False Else Valid Value = True Until Valid Value = True If Foreign Currency Value = 0 Then Continue = False Else Continue = True End If
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern