In: Economics
For this assignment, you will create flowchart using Flowgorithm to represent the logic of a program that allows the user to enter a number of dollars and convert it to Euros and Japanese yen. You will have to do some research on current rates of monetary exchange for this one. Don't forget to declare your variables and use output statements to prompt the user to enter specific values prior to including an input statement. You will use an assignment statement to calculate the monetary conversion.
The first thing you have to do is determine the inputs, processes, and outputs.
Inputs: The dollars
Process:
Departure: the amounts of euros and Japanese yen equivalent to dollars
Explanation:
The variables are: Dollars, euros and yuan. they are all floating or decimal. the exercises we are going to do with hypothetical values, you have to find out the current amount of euros and yuan.
To do the conversion operation you have to consider
A US dollar equals 0.92 euros. Therefore, the amount in euros is equal to the multiplication of the amount of dollars by 0.92
A US dollar equals 107.71 yen. So multiply the amount of dollars by 107.71
main
variables: float dollars, euros yen
print: enter the amount in dollars
read dollars
euros = dollars * 0.92
yeanes = dollars * 107.71
print the amount of euros equivalent to the dollars included is: euros
print the amount of Japanese yen equivalent to the dollars included is: yen
end