1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ioda
3 years ago
14

A) Write a program that asks the user for the amount of money they will take on holiday and convert this into the equivalent amo

unt in Euros, ignoring any Cents that might result from the conversion.
B) Improve the above program so that it will tell you how many 50,20,10 and 5 Euro notes you would receive for a given value of Pounds.
Computers and Technology
1 answer:
Lelu [443]3 years ago
5 0

def func():

   money = int(input("How much money will you have on holiday? "))

   print("You will have {} euros.".format(int(money * 1.11)))

   money = int(money * 1.11)

   fifty = 0

   twenty = 0

   ten = 0

   five = 0

   while True:

       if money - 50 >= 0:

           fifty += 1

           money -= 50

       elif money - 20 >= 0:

           twenty += 1

           money -= 20

       elif money - 10 >= 0:

           ten += 1

           money -= 10

       elif money - 5 >= 0:

           five += 1

           money -= 5

       if money < 5:

           print("You will have {} fifties, {} twenties, {} tens, {} fives, and {} ones".format(fifty, twenty, ten, five, money))

           return

func()

I hope this helps!

You might be interested in
Which is a basic job requirement for a career in corrections services?
Diano4ka-milaya [45]

You must have a high school diploma

7 0
3 years ago
what are the main technologies that have contributed to be growth and commercialization of the Internet
iren [92.7K]

hope it helps have a good day

5 0
2 years ago
Computers have drastically changed society over the last 20 years. How have computers affected communication in the business wor
iren2701 [21]

<u>Drastic change of over society Computers:</u>

In society computer has drastically changed and it has been used to for varies purpose to do analysis or storing data, as decisions making tools. Purpose computer been found is to do huge calculation. “Compute” word has been derived to computer. Computer later stage it diverted is purpose from calculation to information store device.

Computers have heavy effect the communication in normal word and business world. Especially social media took over the control of computers. In today’s world four type of ethical issue are known in computer mainstream in the workplace they are.

1. Crime (computer)

2. failure of responsibility in the computer.

3. Protection of software records and documents etc.

4. End user  data protection and privacy.

99% of computers are protected with firewalls and antivirus. But still hackers can hack the computer and steal the data.

5 0
3 years ago
A computer never gets tired or bored while working for a long time .. ​
Angelina_Jolie [31]

Answer :Computers never get tired or bored because of doing the same task continuously. They work in the same manner all the time. A computer can store large amount of information in its memory.

Explanation: it is quality which makes the user to be dependent on computer. As we all know, computer systems do repetitive tasks without any boredom, tiredness, or fatigue.

5 0
3 years ago
What program is considered the industry standard for digital graphics and image editing?
denpristay [2]
I believe photoshop, or illustrator
7 0
3 years ago
Read 2 more answers
Other questions:
  • Encryption is the process of:
    12·1 answer
  • You took a fantastic photograph that you want to use in the report you're writing using DTP software. To import the photo into y
    6·2 answers
  • How to engage more underrepresented and under resourced students in stem programs?
    10·1 answer
  • Can somebody help me out
    15·1 answer
  • Random Walker Collisions In lecture, we saw how to model the behavior of a random walker on a 2D grid using a Monte Carlo simula
    8·1 answer
  • Gold jewellery is made when solid-gold is melted and then put into containers which are the shape of the jewellery. After this t
    9·1 answer
  • Who plays Rblx?? What do yall play?
    9·2 answers
  • How to deactivate the brainly account?​
    13·1 answer
  • List all the steps used to search for 25 in the sequence given below. Use both (a) linear search and (b) binary search. 2, 7, 13
    7·1 answer
  • Which of these words is used to begin a conditional statement?<br> when<br> input<br> if<br> until
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!