IT_210 psuedo_code wk4

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

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

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.”

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

View Full Document
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

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern