Currency Conversion Design

Currency Conversion Design - If(CurrencyType = Mexican...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Running head: CHECKPOINT-CURRENCY CONVERSION DESIGN 1 Checkpoint-Currency Conversion Design Lori Babler IT210 November 28th, 2010 Stephen Welborn
Background image of page 1

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

View Full Document Right Arrow Icon
CHECKPOINT-CURRENCY CONVERSION DESIGN 2 Checkpoint-Currency Conversion Design Declare CurrencyType as string Declare CurrencyTotal as integer Declare USTotal as integer Declare Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs as real Repeat Write, “Welcome to the currency converter.” Write, “Select international currency type: Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs.” Input CurrencyType Write, “What is the total amount of currency?” Input CurrencyTotal If (CurrencyType = Canadian dollars) Then CurrencyTotal / 1.468 = USTotal End if Write, “CurrencyTotal Canadian dollars = $ USTotal U.S. Dollars.”
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: If (CurrencyType = Mexican pesos) Then CurrencyTotal / 9.5085 = USTotal End if Write, “CurrencyTotal Mexican pesos = $ USTotal U.S. Dollars.” If (CurrencyType = English pounds) Then CurrencyTotal * .608531613 = USTotal End if Write, “CurrencyTotal English pounds = $ USTotal U.S. Dollars.” If (CurrencyType = Japanese yen) Then CurrencyTotal / 104.92 = USTotal End if Write, “CurrencyTotal Japanese yen = $ USTotal U.S. Dollars.” If (CurrencyType = French francs) Then CurrencyTotal / 6.2561 = USTotal End if Write, “CurrencyTotal French francs = $ USTotal U.S. Dollars.” Display equivalent USTotal CHECKPOINT-CURRENCY CONVERSION DESIGN 3 Write, “ Would you like to exit the currency converter: yes or no?” Input yes or no Until user answers yes...
View Full Document

{[ snackBarMessage ]}

Page1 / 3

Currency Conversion Design - If(CurrencyType = Mexican...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online