Question 1: Foreign Exchange Calculator

Write a Python program which computes the amount of foreign currency that the user can exchange for.

Function Input Argument(s):

There will be two inputs.

  1. The exchange rate of purchase currency versus Singapore dollars (float) (i.e. the amount of SGD needed to obtain 1 dollar of the foreign currency)
  2. The amount of Singapore dollars he wants to sell (float)

Function Return Value:

A number (float) representing the amount of foreign currency the user will receive.

Example 1

Function Input Argument(s):

(1.2, 5000)

Function Return Value:

4166.666666666667


Question 2: Foreign Exchange Report

Write a Python program to report the amount of foreign currency that the user can exchange for.

Function Input Argument(s):