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
1.What is a project methodology?
blagie [28]

Explanation:

1. Let’s suppose that we want to test a scientific hypothesis. What we need to do first is to come up with steps and techniques for testing this hypothesis. This, in a similar way explains what project methodologies are. A project methodology gives us a properly organized way of planning and executing a substantial amount of work that needs to be completed in a given amount of time. Think of it as a game plan that you need to up with to develop a product or an IS.

2. Following a particular methodology comes with its own advantages.

  1. 1. It gets you focused on the product you are trying to come up with.
  2. 2. So many lessons will be learnt and will be documented as experiences and will be integrated as best practice. In the event that the project is a success, the same methodology can be used once again in the future.
  3. 3. Saves time since the same prescription of tools, phases, and techniques used for a particular project can be reused once more to come up with another project.

3. It maps out the existence of a project from start to finish. It is defined within a given methodology. Projects, like humans, have defined life-cycles. The same way we come out of wombs, grow, mature, decline, and then die is the same way a project has a beginning, mid, and end.

4. It does not matter whether a project one is working on is huge or not, they have to be organized into a sequence of phases for manageability. These phases include phase exits, stage gates, and kill points. Having these phases aligned together will give an organization a clear indication of how to evaluate the project’s performance and be able to mitigate problems that arise.

5. Starting the next phase just before the current one ends can sometimes be a good thing since it can reduce the schedule of the project. This is what is known as fast tracking. It is a good idea but introducing one phase before another one ends can cause an overlap and as a result can pose as a risk. Do it if the risks are within scope and can be accepted.

6. An idea that someone comes up with to build a new information system or product can be counted as one of the initiation processes of a PLC.  However, the first process is to define the goal of the project. Organizations have put amounts of time and investments into coming up with a project. Therefore, every little aspect of the project should be properly envisioned to meet the business's value. This is phase where we should ask ourselves questions like whether the project is going to be successful and how we will identify its success in correlation to the investments raised by the stakeholders. It is the phase upon which every detail is looked into carefully and goals defined before the project is flagged off.  

7. This phase provides the direction and planning for the project. Once the project has been flagged off and is ready to move forward, the team needs to define what the objectives will be, when and what time the project will be completed, and the amount of money that will be required to finish. In addition, things like how many people are we looking at to complete the project and the technology that will be used to build the project are highly considered and looked into in this phase.

8. At this point, the project must be approved first before moving on to this phase. The teams put all efforts of design, development, and delivery of the final product. Whoever has invested on the product will now start to have a clear picture of everything that is going on from the first phase of planning to the actual implementation based on time it has taken to the budget that has been so far.

9. Every beginning must always have an end and this is the phase that ensures a well-defined end. It ensures that the amount of effort and work that the teams have put in developing and implementing the product is complete. This phase also sees the team and stakeholders have meetings to try and consolidate and come into terms of whether or not the goals of the planning phase have been achieved.

10. Because every single project has its own goals and achievements that it wants to meet. Every product is unique in terms of what it wants to achieve and the principles and practices might not work for every project. It is the processes used to come up with the particular project that will play an integral part in the life cycle

Learn more about project methodologies by clicking on the link below

brainly.com/question/13821095

brainly.com/question/988326

#LearnWithBrainly

4 0
3 years ago
I will give brainiest to the person that is right. What is change management?
Serggg [28]

Answer:

Umm I think it's A I am not sure tho

3 0
3 years ago
Free Write Friday 2/26/21
Bad White [126]
Write about art bc thags always so cool
4 0
3 years ago
This is me lol jjaaaabbooo
ElenaW [278]

i like your glasses uwu

6 0
3 years ago
What I need to know is math please<br>​
tekilochka [14]

Answer:

huh

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • _______ are created under ________, similar to how you create individual files within a broader file folder
    9·2 answers
  • Develop an sec (single error correction) code for a 16-bit data word. generate the code for the data word 0101000000111001. show
    6·2 answers
  • Helpppp plsssss!!!<br><br>thanks.
    7·1 answer
  • The person who suggested that the continents were once a supercontinent, called Pangaea, but slowly drifted apart was who
    10·2 answers
  • In an e-credit card transaction the clearinghouse plays the following role:
    6·2 answers
  • Any part of the computer that you plug into the CPU like a phone, tablet, headphones etc. are called
    5·1 answer
  • Varied amount of input data Statistics are often calculated with varying amounts of input data. Write a program that takes any n
    8·1 answer
  • Can someone plz explain me what this button does and I’m scared to click it
    11·1 answer
  • ________ is a human-computer interaction method whereby inputs to and outputs from a computer-based application are in a convent
    8·1 answer
  • Freee poiiiiintttttssss​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!