It 210 week 4 assignment soudo code

# It 210 week 4 assignment soudo code - If (Currency Type =...

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

## It 210 week 4 assignment soudo code - If (Currency Type =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online