Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Advertencia estricta: Sin IA . Dibuje un gr fico necesario. BD 1 6 lease oblikujte majhen program, ki uporabnikom pomaga pri pretvorbi valute med avstralskim

Advertencia estricta: Sin IA. Dibuje un grfico necesario.
BD16
"lease oblikujte majhen program, ki uporabnikom pomaga pri pretvorbi valute med avstralskim dolarjem (AUD) in hongkonkim dolarjem (HKD). Sistem bo uporabnike vpraal, ali elijo pretvoriti AUD v HKD ali HKD v AUD, nato pa uporabnike vpraal znesek, ki ga elite pretvoriti, konno natisnite pretvorjeni znesek. e uporabniki vnesejo tevilko, ki ni 1 ali 2, navedite, da je to "neveljaven vnos".
(Predpostavimo, da je 1 AUD enak 5,57 HKD)
Vnesite 1,e elite pretvoriti HKD v AUD
Vnesite 2,e elite pretvoriti AUD v HKD
[]
Koliko elite pretvoriti?
[]
3000,0 AUD je enakovredno 16710,0 HKD.
Programska koda:
convert = input(""Vnesite 1,e elite pretvoriti HKD v AUD;
Vnesite 2,e elite pretvoriti AUD v HKD
"")
e pretvori ==1:
znesek = input(""Koliko elite pretvoriti?
"")
print('$', znesek, 'HKD je enakovreden $', znesek/5,57, 'AUD.')
elif pretvori ==2:
znesek = input(""Koliko elite pretvoriti?
"")
print('$', float(znesek), 'AUD je enakovreden $', float(znesek)*5,57, 'AUD.')
drugae:
print(""Neveljaven vnos"")
Poljite svojo revizijo v prazno obmoje spodaj:"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions