Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero I. Definition Change certain amount of Mexican Pesos to its.

Similar presentations


Presentation on theme: "Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero I. Definition Change certain amount of Mexican Pesos to its."— Presentation transcript:

1 Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero I. Definition Change certain amount of Mexican Pesos to its equivalent in US Dollars. (The exchange rate is not a known data)

2 Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero II. Analysis How many USD I will get with my “N” pesos? What is the Exchange rate? BBV-BancoTec

3 Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero II. Analysis a)Constants: There are no constants in this problem b)Variables: Input Variables (IV): IV1: How many Mexican Pesos (MP) does the user want to change IV2: Exchange Rate (ER) Output Variables (OV): OV: Dollars resulting from the MP (USD) c)Operators (OP): Arithmetic “/” (division) d)Operations: Mexican Pesos (MP) Exchange Rate (ER)

4 Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero III. Design: Algorithm and/or Pseudo Code (You can write either the Algorithm or Pseudo Code or both) 1.Start 2.Type Mexican Pesos to change 3.Save into input variable (memory cell) MP, the Mexican Pesos to change 4.Type Exchange Rate (How many Mexican Pesos are equal to ONE US Dollar) 5.Save into input variable ER, the Exchange Rate 6.Divide MP/ER and save the result into the output variable US Dollars (USD) 7.Print USD 8.End

5 Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero III. Design: Flow Chart “How many Mexican Pesos do you want to change?” MP = “Number of Mexican Pesos typed” “Type the Exchange Rate” 1 ER = “Exchange Rate typed” 1 END “Total US Dollars changed are: ” USD USD = MP ER START

6 Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero IV. Test Assign input variables some “Run Test” values RUN TEST NO. 1 1.Start 2.MP = 11 3.ER = 11 4.USD = 11 11 5.USD = 1 6.End RUN TEST NO. 2 1.Start 2.MP = 20 3.ER = 10.65 4.USD = 20 10.65 5.USD = 1.87 6.End


Download ppt "Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero I. Definition Change certain amount of Mexican Pesos to its."

Similar presentations


Ads by Google