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
Natali5045456 [20]
3 years ago
13

A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. For example, 19 yields

3 fives and 4 ones. Write a single statement that assigns the number of one dollar bills to variable numOnes, given
Computers and Technology
1 answer:
Alex Ar [27]3 years ago
4 0

Answer:

Written in Python:

dollars = int(input("Amount: "))

numFive = int(dollars/5)

numOnes = dollars%5

print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")

Explanation:

This line prompts user for input

dollars = int(input("Amount: "))

This line calculates the number of 5 that can be gotten from the input. This is done using integer division

numFive = int(dollars/5)

This line gets the remaining ones. This is done by using the modulo sign to get the remainder when input is divided by 5

numOnes = dollars%5

This line prints the required output

print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")

You might be interested in
A Use-Case diagram is a staticdiagram?
Arte-miy333 [17]

Answer:

No, Use-Case diagram is a not a static diagram.

Explanation:

Only static diagram is not adequate to model a system that is more dynamic than static behavior. In Unified Modeling Language, five diagrams are accessible to model the dynamic nature and use case diagram is one of them.

Use case diagrams is made up of actors, use cases and their interactions. The diagram is used for modeling an application's system / subsystem. A single use case diagram depicts a system's specific features.

4 0
3 years ago
Choose the answer that best explains why Morse's invention of the telegraph changed media forever.
Alex73 [517]

Just had this question, the correct answer is

It was the first form of media that did not require people to physically transport the information.

7 0
3 years ago
Read 2 more answers
In which type of market do farmers sell their produce directly to village traders in rural areas?
Anna007 [38]

Answer:

Local Market or Primary Market.

Explanation:

The farmers sell their products to big traders in the bigger market in the urban areas. However, they also sell a part of their products to various village traders, who are located in the rural areas and can be found in local or primary markets. It's not so that they are not useful as well, as small farmers, in fact, sell the whole of their produce in the local or primary market as we know them by name. And the farmer gets a reasonable return there as well.

8 0
4 years ago
The involvement of the United States in the ______ and ______ resulted in _______ .
Aleksandr-060686 [28]

The involvement of the United States in the <u>Iraq</u> and <u>Kuwait conflict</u> resulted in <u>Persian Gulf War</u>.

<h3>What is the Persian Gulf War?</h3>

The Persian Gulf War can be defined as an international conflict that was led by the United States of America alongside the forces of the United Nations (UN) against the larger state of Iraq, in response to her invasion and annexation of the smaller country of Kuwait.

In this context, we can infer and logically deduce that the involvement of the United States in the <u>Iraq</u> and <u>Kuwait conflict</u> resulted in <u>Persian Gulf War</u>.

Read more on Persian Gulf War here: brainly.com/question/1105731

#SPJ1

8 0
3 years ago
Which are technical and visual demands<br> that need to be considered when<br> planning a project?
Molodets [167]

Answer: Resolution or DPI, deliverables, and file types are important technical and visual demands to consider when planning a project.

Explanation: Keep in mind whether or not the project will be published in print or on the Web.

7 0
3 years ago
Other questions:
  • Simon wants to use an invoice template created by Office.com. The first step after selecting the File tab is to select
    14·1 answer
  • Acrynom for wys or wyg
    10·1 answer
  • A computer _________ is a set of self-replicating program instructions that surreptitiously attaches itself to a legitimate exec
    9·1 answer
  • What is achieved through xylography
    7·2 answers
  • A voice engineer is setting up a Cisco 2951 Integrated Services Router with Cisco Unified Communications Manager Express. To ena
    6·1 answer
  • ______ is the software that prevents people from being able to access your personal information.
    8·2 answers
  • The paint 3D program is used for drawing picture true or false​
    10·2 answers
  • 3.<br>What is the meaning of *.VBP.<br>​
    6·2 answers
  • I know I'm asking for a lot. But this is my last question. If we do it I pass my semester. help please.
    15·1 answer
  • Can someone help me debug this please
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!