IT_210 psuedo_code wk4 - If(Currency Type = Mexican pesos...

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

View Full Document Right Arrow Icon
Main Module Declare Currency Type as string Declare Currency Total as integer Declare US Total as integer Declare Canadian dollars, Mexican pesos, Japanese Yen, English Pound, French francs as real Get user input Determine foreign currency type Determine foreign currency total Convert foreign currency to U.S. dollars Divide currency total by rate to find U.S. total Display equivalent U.S. dollar amount End Main Module Input Data Module Repeat Write, “You are entering the currency converter.” Write, “Select international currency type: Canadian dollars, Mexican pesos, English pounds, Japanese yen, and French francs.” Input Currency Type Write, “What is the total amount of currency?” Input Currency Total End Input Data Module Conversion Module If (Currency Type = Canadian dollars) Then Currency Total * 1.468 = US Total End if Write, “Currency Total Canadian dollars = $ USTotal U.S. Dollars.”
Image of page 1

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

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

Unformatted text preview: If (Currency Type = Mexican pesos) Then Currency Total / 9.5085 = USTotal End if Write, “Currency Total Mexican pesos = $ US Total U.S. Dollars.” If (Currency Type = English pounds) Then Currency Total * .608531613 = US Total End if Write, “Currency Total English pounds = $ US Total U.S. Dollars.” If (Currency Type = Japanese yen) Then Currency Total / 104.92 = USTotal End if Write, “Currency Total Japanese yen = $ US Total U.S. Dollars.” If (Currency Type = French francs) Then Currency Total / 6.2561 = US Total End if Write, “Currency Total French francs = $ US Total U.S. Dollars.” Display equivalent US Total Write, “Do you want to leave the currency converter” yes or no?” Input yes or no End Conversion Module...
View Full 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