O GoConqr está de visual novo! Conte para nós o que você achou.

Fluxograma

Sem título

Leon Moulson Inglês

Conteúdo do fluxograma

  1. Is customer staff? Y or N

  2. staff = INPUT("Is customer staff?")

  3. GBP = INPUT("Enter the amount of GBP you want to convert: ")

  4. Y

  5. N

  6. Start

  7. WHILE (GBP <= 2500 AND >= 1)

  8. PRINT("What currency do you wish to exchange to? USD - EUR - BRL - JPY - TRY")

  9. IF (exchange == "USD")

  10. finalamount = GBP * 1.40

    currency = "USD"

  11. staff = "Y"

  12. staff = "N"

  13. IF (exchange == "EUR")

  14. finalamount = GBP * 1.14

    currency = "EUR"

  15. IF (exchange == "BLR")

  16. finalamount = GBP * 4.77

    currency = "BLR"

  17. IF (exchange == "JPY")

  18. finalamount = GBP * 151.05

    currency = "JPY"

  19. IF (exchange == "TRY")

  20. finalamount = GBP * 5.68

    currency = "TRY"

  21. exchange = INPUT("Please enter the 3 digits of your required currency: ")

  22. Y

  23. Y

  24. Y

  25. Y

  26. Y

  27. OUTPUT("Please enter one of the 5 currencies")

  28. N

  29. N

  30. N

  31. N

  32. IF (GBP <= 300)

  33. ELSE IF (GBP <= 750 && GBP > 300)

  34. ELSE IF (GBP <= 1000 && GBP > 750)

  35. ELSE IF (GBP <= 2000 && GBP > 1000)

  36. costamount = GBP * 1.015

    fee = "1.5%"

  37. IF staff == "Y"

  38. discount = "5%"

    costamount = costamount * 0.95

  39. discount = "0%"

  40. PRINT("Your final amount is ", final amount, currency)

  41. PRINT("Your total fee is ", fee)

  42. PRINT("Your total discount is ", discount)

  43. PRINT("Your total cost is ", costamount)

  44. OUTPUT("Please enter a number lower than 2500GBP")

  45. ROUND finalamount to 2DP

    ROUND costamount to 2DP

  46. END

Informações

Descrição
Fluxograma sobre Sem título, criado por Leon Moulson em 14-01-2021.
Criado por
Leon Moulson
Visualizações
1
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?