Flussdiagramm
Ohne Titel
Inhalt des Flussdiagramms
Is customer staff? Y or N
staff = INPUT("Is customer staff?")
GBP = INPUT("Enter the amount of GBP you want to convert: ")
Y
N
Start
WHILE (GBP <= 2500 AND >= 1)
PRINT("What currency do you wish to exchange to? USD - EUR - BRL - JPY - TRY")
IF (exchange == "USD")
finalamount = GBP * 1.40
currency = "USD"
staff = "Y"
staff = "N"
IF (exchange == "EUR")
finalamount = GBP * 1.14
currency = "EUR"
IF (exchange == "BLR")
finalamount = GBP * 4.77
currency = "BLR"
IF (exchange == "JPY")
finalamount = GBP * 151.05
currency = "JPY"
IF (exchange == "TRY")
finalamount = GBP * 5.68
currency = "TRY"
exchange = INPUT("Please enter the 3 digits of your required currency: ")
Y
Y
Y
Y
Y
OUTPUT("Please enter one of the 5 currencies")
N
N
N
N
IF (GBP <= 300)
ELSE IF (GBP <= 750 && GBP > 300)
ELSE IF (GBP <= 1000 && GBP > 750)
ELSE IF (GBP <= 2000 && GBP > 1000)
costamount = GBP * 1.015
fee = "1.5%"
IF staff == "Y"
discount = "5%"
costamount = costamount * 0.95
discount = "0%"
PRINT("Your final amount is ", final amount, currency)
PRINT("Your total fee is ", fee)
PRINT("Your total discount is ", discount)
PRINT("Your total cost is ", costamount)
OUTPUT("Please enter a number lower than 2500GBP")
ROUND finalamount to 2DP
ROUND costamount to 2DP
END
Informationen
- Beschreibung
- Flussdiagramm am Ohne Titel, erstellt von Leon Moulson am 14/01/2021.
- Erstellt von
- Leon Moulson
- Aufrufe
- 1
- Bewertung