ComputeChange.py, to fix the possible loss of accuracy when converting a float value to an int value. Enter the input as an integer whose last two digits represent the cents. For example, the input 1156 represents 11 dollars and 56 cents.

Answers

Answer 1

def compute_change(total_cents):

dollars = total_cents // 100

cents = total_cents % 100

return dollars, cents

def main():

total_cents = int(input("Enter an integer value for the total in cents: "))

dollars, cents = compute_change(total_cents)

print(f"{dollars} dollars and {cents} cents")

if __name__ == "__main__":

main()


Related Questions

Information censorship is used to____. (4 options)
1. Promote Authorization Government
2. Polarize the Public
3. Create Confusion
4. Promote Independent Media

Answers

Information censorship is used to control the flow of information and restrict access to certain content.

While the specific motives and methods behind information censorship can vary, it generally serves to exert authority and influence over the dissemination of information within a society.

Option 1: Promote Authorization Government - This option suggests that information censorship is used to support authoritarian or autocratic regimes by controlling the narrative and limiting dissenting viewpoints. Censorship can be employed as a means of consolidating power and suppressing opposition.

Option 2: Polarize the Public - Censorship can be used to manipulate public opinion by selectively suppressing or amplifying certain information, thereby influencing people's perspectives and potentially creating divisions within society.

Option 3: Create Confusion - Censorship can contribute to confusion by limiting access to accurate and reliable information. This can lead to a lack of transparency, misinformation, and the distortion of facts, making it challenging for individuals to form informed opinions.

Option 4: Promote Independent Media - This option is not typically associated with information censorship. Rather, independent media thrives in an environment that upholds freedom of speech and opposes censorship.

Overall, options 1, 2, and 3 align more closely with the potential outcomes of information censorship, while option 4 contradicts the nature and purpose of censorship.

For more questions on Information censorship

https://brainly.com/question/29828735

#SPJ8

Pretend you are planning a trip to three foreign countries in the next month. Consult your wireless carrier to determine if your mobile phone would work properly in those countries. What would the costs be? What alternatives do you have if it would not work?

Answers

Upon consultation with the wireless carrier the repone was that the cost will go up by 25 % of the normal charges. This type of service is called roaming. The alternatives were to purchase new devices and plans compliant with the local network. These in themselves are additional costs and it is much more easier to go with the current provider.

Who is a  wireless carrier?

The term "wireless carrier" refers to a provider of commercial mobile services or any other radio communications service required by the FCC to offer wireless 9-1-1 service.

Mobile network operator, mobile phone operator, mobile operator, cellular corporation, and wireless service provider are all words that relate to the same entity.

Learn more about  wireless carrier:
https://brainly.com/question/31943799
#SPJ1

Varied amount of input data Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input, and outputs the average and max. Ex: When the input is 15 20 0 5, the output is:

Answers

In Python 3.8:

nums = list(map(int, input("Enter your numbers space separated: ").split()))

print(f"The largest number is {max(nums)} and the average of all the numbers entered is {sum(nums)/len(nums)}")

Varied amount of input data Statistics are often calculated with varying amounts of input data. Write

Three reasons Why we connect speakers to computers

Answers

1. Some computers do not have speaker therefore we connect speakers

2. Some speakers don’t have clear audio so to fix that we connect new ones

3. What do you do if your speaker inside the computer is broken..... connect new speakers

Answer:

we connected speakers with computers for listening voices or sound .. because the computer has not their own speaker..

Explanation:

Which of the following is true of how computers represent numbers?

Answers

Answer:

C. Binary can be used to represent more complex, higher level abstractions, including but not limited to numbers, characters, and colors. D. When data is large enough computers switch to using decimal representation instead of binary, because you can represent larger numbers with fewer digits

Explanation:

Answer:

D

Explanation:

Make a flowchart for the program(Pascal).Program:program product; var a, b, p : real; begin write('Enter a number: '); readln(a); write('Enter another number:'); readln(b); p := a * b; writeln('The product of the two numbers is: ', p); end.

Answers

Answer:

pascaline made pascle

Explanation:

i cant show diagram here

HELPPPP THESE STATEMENTS DESCRIBE DTP

HELPPPP THESE STATEMENTS DESCRIBE DTP

Answers

The correct statements that describe  DTP (Desktop Publishing) are:

DTP treats graphics and text boxes differently.

DTP lets you resize and rotate graphics.

DTP helps workers produce documents that improve communication.

What is the statements that describe DTP.

DTP  refers to the process of utilizing specialized operating system and finishes to create and design miscellaneous types of documents, in the way that brochures, flyers, newsletters, papers, books, and added printed fabrics.

DTP spreadsheet allows consumers to integrate text, representations, drawings, and other components to form visually attractive and professionally formatted documents.

Learn more about   Desktop Publishing from

https://brainly.com/question/7221406

#SPJ1

Question #2

Multiple Select

These statements describe DTP.

DTP treats graphics and text boxes differently.

DTP lets you resize and rotate graphics.

DTP helps workers produce documents that improve communication.

Many DTP features are included in WP programs.

WP and DTP are the same.

Read and Answer the Question.


After several years of driving long-haul trucks, Joe Blanka

founded his own trucking company, Blanka Transport Inc.

(BTI), which specialized in less-than-truckload shipments in the

midwestern part of the United States. Joe developed a successful

method for scheduling BTI’s runs that met or exceeded the

delivery expectations of its customers. As a result, BTI shipments were growing at a rate between 15 and 20 percent per

year. The growth, however, was not evenly distributed across

BTI’s territory. On some routes, capacity was overloaded in one

direction and underloaded in the other.

Joe noticed that the imbalance problem was not stable

across time. In some months, capacity was short in one direction, and in other months, it was short in another direction. He

thought that one way of solving the problem would be through

marketing, by offering incentives to customers whose shipments

would improve load balance. Another approach to the problem

was to analyze and restructure the route–equipment combinations. He also thought that it might be possible to warehouse

some less-urgent shipments for short periods in order to help

the balance.

Joe’s son, the first member of the Blanka family to attend

college, was a senior in engineering school. He had just completed a course in project management, and after briefly describing some of the basic concepts to his father, he suggested that a

process improvement project might be a good way to deal with

the balance problem. He thought that the Marketing Manager

and the Route Manager could serve as project co-managers. He

also felt that some of the older, more experienced drivers might

be helpful. The objective of the project would be to decrease the

size of the route imbalances by 75 percent in 1 year.


Questions: Is this a proper approach to the problem? Is this a “project”; if

so, what are the three triple constraints? What, if any, helpful

suggestions would you make to Joe?

Answers

Yes, the process improvement project suggested by Joe's son is a proper approach to address the balance problem in the trucking company. It can help decrease the route imbalances by 75 percent in one year.

What are the constraints?

The three triple constraints in this project would be scope (reducing route imbalances), time (1 year), and resources (including the Marketing Manager, Route Manager, and experienced drivers).

Some helpful suggestions for Joe would be to consider implementing a combination of marketing incentives, route restructuring, and short-term warehousing to achieve better load balance.

Additionally, he should ensure effective communication and collaboration between the project co-managers and team members to maximize the project's success.

Read more about project development here:

https://brainly.com/question/27995740

#SPJ1

Make sure your animal_list.py program prints the following things, in this order:
The list of animals 1.0
The number of animals in the list 1.0
The number of dogs in the list 1.0
The list reversed 1.0
The list sorted alphabetically 1.0
The list of animals with “bear” added to the end 1.0
The list of animals with “lion” added at the beginning 1.0
The list of animals after “elephant” is removed 1.0
The bear being removed, and the list of animals with "bear" removed 1.0
The lion being removed, and the list of animals with "lion" removed

Need the code promise brainliest plus 100 points

Answers

Answer:#Animal List animals = ["monkey","dog","cat","elephant","armadillo"]print("These are the animals in the:\n",animals)print("The number of animals in the list:\n", len(animals))print("The number of dogs in the list:\n",animals.count("dog"))animals.reverse()print("The list reversed:\n",animals)animals.sort()print("Here's the list sorted alphabetically:\n",animals)animals.append("bear")print("The new list of animals:\n",animals)

Explanation:

Learning.com
Rayce Carr












Question
You want to draw a rectangle over the moon you added to your slide and then move it behind the moon. You want it to look like a frame. What ribbon tab would you click to find the tool to add the rectangle?

Answers

To add a rectangle to a slide in a presentation, you would likely click the "Insert" ribbon tab in the top menu of the presentation software

How can you add the ribbon?

Under the "Illustrations" group in the "Insert" tab, you should find the option to insert a rectangle or other shapes.

Hence, it can be seen that once the rectangle is inserted, you can use the "Bring Forward" and "Send Backward" options under the "Arrange" group in the "Home" tab to move the rectangle behind or in front of other objects on the slide.

Furthermore, you can also right-click on the rectangle and use the "Order" options in the context menu to move the rectangle behind or in front of other objects.


Read more about design here:

https://brainly.com/question/28349614

#SPJ1

Which tab should you click if you want to access the Show All Comments option in a worksheet?

Home
Page Layout
Review
View

Answers

Answer: Review

Because you want to review the comments

Answer:

C.) Reivew

Explanation:

Doing it on EDG now!

Best luck to yall :3

Have a good day and byee

You are given an initially empty queue and perform the following operations on it: enqueue (B), enqueue (A), enqueue(T), enqueue(), dequeue(), dequeue(), enqueue (Z), enqueue(A), dequeue(), enqueue(1), enqueue(N), enqueue(L), dequeue(), enqueue(G), enqueue(A), enqueue(R) enqueue(F), dequeue), dequeue(). Show the contents of the queue after all operations have been performed and indicate where the front and end of the queue are. Describe in pseudo-code a linear-time algorithm for reversing a queue Q. To access the queue, you are only allowed to use the methods of a queue ADT. Hint: Consider using an auxiliary data structure.

Answers

Reversing a queue Q in linear time: ReverseQueue(Q): stack = []; while Q: stack.append(Q.pop(0)); while stack: Q.append(stack.pop()).

After performing the given operations on the initially empty queue, the contents of the queue and the positions of the front and end of the queue are as follows:

Contents of queue: T Z 1 A G A R F

Front of queue: points to the element 'T'

End of queue: points to the element 'F'

To reverse a queue Q in linear time, we can use a stack as an auxiliary data structure. The algorithm will work as follows:

Create an empty stack S.Dequeue each element from the queue Q and push it onto the stack S.Once all elements have been pushed onto the stack S, pop each element from the stack S and enqueue it back onto the queue Q.The elements of the queue Q are now in reversed order.

Pseudo-code for the algorithm is as follows:

reverseQueue(Q):

   create a stack S

   while Q is not empty:

       x = dequeue(Q)

       push(S, x)

   while S is not empty:

       x = pop(S)

       enqueue(Q, x)

This algorithm reverses the order of the elements in the queue in linear time O(n), where n is the number of elements in the queue.

Learn  more about algorithm here:

https://brainly.com/question/17780739

#SPJ4

What is the next line? >>> tupleB = (5, 7, 5, 7, 2, 7) >>> tupleB.count(7) 3 1 2 0

Answers

Answer:

3 is the next line.

Explanation:

.count literally counts how many something is. so, .cout(7) counts how many 7 there is. you can see that there are 3 number 7s.

What is the next line? >>> tupleB = (5, 7, 5, 7, 2, 7) >>> tupleB.count(7) 3 1 2 0

For a given gate, tPHL = 0.05 ns and tPLH = 0.10 ns. Suppose that an inertial delay model is to be developed from this information for typical gate-delay behavior.
Assuming a positive output pulse (LHL), what would the propagation
delay and rejection time be?

Answers

The rejection time (time for the output to remain stable at low after input changes from high to low) is also 0.05 ns.

How to determine the delays

Propagation Delay:

The propagation delay (tPHL) is given as 0.05 ns (nanoseconds).

This represents the time it takes for the output to transition from a high to a low level after the input changes from a high to a low level.

Propagation Delay (tPHL) = 0.05 ns

Rejection Time:

The rejection time (tRHL) is the minimum time required for the output to remain stable at a low level after the input changes from a high to a low level before the output starts to transition.

Rejection Time (tRHL) = tPHL

Hence = 0.05 ns

Therefore, for the given gate and assuming a positive output pulse (LHL):

Read more on delay model  here https://brainly.com/question/30929004

#SPJ1

3. What is a Trojan horse?
O A. Antivirus software for your computer
O B. Another name for a hacker
OC. A computer virus that can damage or delete files
O D. Software that eats cookies

Answers

C. A computer virus that can damage and delete files
The correct answer is: C. A computer virus that can damage or delete files. A Trojan horse is a type of malware that disguises itself as a legitimate program. Once inside the computer, it can steal data, damage files, or even take control of the computer.

can the charger of my laptop get infected with viruses also when it was connected to it?​

Answers

Answer:

Technically… yes. Because if the charging port is the same as a USB/etc connector port, then it can travel over that.

Explanation:

Emanuel studies hard for hours on end until bedtime, yet his grades could be better. What can he do to improve his academic performance?

sleep less
take breaks
eat more
work longer

Answers

Emanuel needs to Take breaks

Answer:

Its B! I know I'm late but for the other people that might get the same question like me.

What does influence mean in this passage i-Ready

Answers

In the context of i-Ready, "influence" refers to the impact or effect that a particular factor or element has on something else. It suggests that the factor or element has the ability to shape or change the outcome or behavior of a given situation or entity.

In the i-Ready program, the term "influence" could be used to describe how various components or aspects of the program affect students' learning outcomes.

For example, the curriculum, instructional methods, and assessments implemented in i-Ready may have an influence on students' academic performance and growth.

The program's adaptive nature, tailored to individual student needs, may influence their progress by providing appropriate challenges and support.

Furthermore, i-Ready may aim to have an influence on teachers' instructional practices by providing data and insights into students' strengths and areas for improvement.

This can help educators make informed decisions and adjust their teaching strategies to better meet their students' needs.

In summary, in the context of i-Ready, "influence" refers to the effect or impact that different elements of the program have on students' learning outcomes and teachers' instructional practices. It signifies the power of these components to shape and mold the educational experiences and achievements of students.

For more such questions element,Click on

https://brainly.com/question/28565733

#SPJ8

For Questions 1-4, consider the following code: def mystery1(x): return x + 2 def mystery2(a, b = 7): return a + b #MAIN n = int(input("Enter a number:")) ans = mystery1(n) * 2 + mystery2 (n * 3) print(ans)
What is the output when the user enters -4?
What is the output when the user enters 3?
What is the output when the user enters -2?
What is the output when the user enters 9?

Answers

Answer:

What is the output when the user enters -4?

-9

What is the output when the user enters 3?

26

What is the output when the user enters -2?

1

What is the output when the user enters 9?

56

Explanation: Just did it and got all correct. Hope it helps!!

What is a shell programming? Write a shell program to get the following details from the student: NAME, AGE, USN and GENDER. Output all the details to the terminal and also display message whether the student is eligible to vote or not

Answers

Shell programs are computer programs designed to run on the Unix/Linux shell

The shell program where comments are used to explain each line is as follows:

#This gets input for NAME

read NAME  

#This gets input for AGE

read AGE  

#This gets input for USN

read USN

#This gets input for GENDER

read GENDER

#This prints the name

echo "Name: $NAME"

#This prints the age

echo "Age: AGE"

#This prints the usn

echo "USN: USN"

#This prints the gender

echo "GENDER: $GENDER"

#The following if condition determines, if the user is eligible to vote or not

if [ $USN -gt 50 ] then

echo "You are not eligible"

else

echo "You are eligible"

Read more about computer programs at:

https://brainly.com/question/13795586

Most of the devices on the network are connected to least two other nodes or processing
centers. Which type of network topology is being described?

bus

data

mesh

star

Answers

The network topology “mesh” is being described. In terms of computer science, a kind of topology where devices connect to 2+ nodes is called mesh.

My program below produce desire output. How can I get same result using my code but this time using Methods. please explain steps with comments. Ex.

public class Main {
static void myMethod() {
// code to be executed
}
}

My program below produce desire output. How can I get same result using my code but this time using Methods.

Answers

To achieve the desired output using methods, one need to modify your code.

java

public class Main {

   public static void main(String[] args) {

       double[] subtotalValues = {34.56, 34.00, 4.50};

       double total = calculateTotal(subtotalValues);

       System.out.println("Total: $" + total);

   }

   public static double calculateTotal(double[] values) {

       double sum = 0;

       for (double value : values) {

           sum += value;

       }

       return sum;

   }

}

What is the program?

A computer program could be a grouping or set of informational in a programming dialect for a computer to execute.

Computer programs are one component of program, which moreover incorporates documentation and other intangible components. A computer program in its human-readable shape is called source code.

Learn more about program  from

https://brainly.com/question/30783869

#SPJ1

If you have a really good picture of your friend, it is okay to post without asking because they allowed you to take it in the first place. O True O False​

Answers

false-you shouldn’t post anything with other peoples consent.
The correct answer is false.

Which of the following actions is NON-DESTRUCTIVE? CHOOSE TWO.

Everything in the Layer > Adjustments menu
The Clone Stamp tool
Converting to Grayscale
Changing the Opacity of a layer
Everything in the Adjustments panel

Answers

The following actions are non-destructive:

Everything in the Layer > Adjustments menu.

These adjustments can be made to a single layer without affecting the underlying layers. This means that you can edit the adjustments or remove them entirely without altering the original image data.

Changing the Opacity of a layer

When you change the opacity of a layer, it simply reduces the visibility of that layer but the original image data is still retained.

The Clone Stamp tool, which is used to copy pixels from one area of an image to another, can be destructive because it overwrites the original pixels.

Converting to Grayscale also discards the color information, which is considered a destructive action.

Everything in the Adjustments panel is not a valid option because it includes both destructive and non-destructive adjustments.

Before the new website launch, development team does not want users to access the site while it is still under construction. How can this requirement be met?

Answers

This requirement can be met by drafting a short text that says that the website is under construction. You could also specify the exact date when the site will be restored.

How to meet the requirement

If you are still working on a website and do not want users to access the site, you should leave a message on the site that says that the website is still under construction.

The link to the website should directly lead to this message. In this space, you should also specify the date and time when the site will be restored.

Learn more about websites here:

https://brainly.com/question/31732575

#SPJ1

Imagine you have just learned a new and more effective way to complete a task at home or work. Now, you must teach this technique to a friend or coworker, but that person is resistant to learning a new way of doing things. Explain how you would convince them to practice agility and embrace this new, more effective method.

Answers

if a person is resistant to learning a new way of doing things, one can  practice agility by

Do Implement the changeMake a dialogue with one's Unconscious. Free you mind to learn.

How can a person practice agility?

A person can be able to improve in their agility by carrying out some   agility tests as well as the act of incorporating any form of  specific drills into their workouts.

An example, is the act of  cutting drilling, agility ladder drills, and others,

A  training that tends to help in the area of agility are any form of exercises  such as sideways shuffles, skipping, and others.

Therefore,  if a person is resistant to learning a new way of doing things, one can  practice agility by

Do Implement the changeMake a dialogue with one's Unconscious. Free you mind to learn.

Learn more about agility from

https://brainly.com/question/15762653
#SPJ1

An improvement in a country's balance of payments means a decrease in its balance of payments deficit,or an increase in its surplus.In fact we know that a surplus in a balance of payments

Choose correct answer/s
A
is always beneficial.
B
is usually beneficial.
C
is never harmful.
D
is sometimes harmful.
E
is always harmful.

Answers

A surplus in a balance of payments is usually beneficial.

The correct answer to the given question is option B.

A surplus in a country's balance of payments occurs when its exports exceed its imports, resulting in a positive net inflow of foreign exchange. This surplus can bring several benefits to the country's economy. Firstly, it indicates that the country is competitive in international trade, as it is able to export more goods and services than it imports. This can boost domestic industries, create jobs, and enhance economic growth.

Secondly, a surplus in the balance of payments can contribute to increased foreign exchange reserves. These reserves can be used to stabilize the country's currency, provide a buffer against external shocks, and facilitate international transactions. Higher foreign exchange reserves can also enhance investor confidence and attract foreign direct investment.

However, it is important to note that while a surplus is usually beneficial, excessive surpluses can have some drawbacks. A persistent surplus can lead to an accumulation of foreign reserves beyond what is necessary, potentially causing imbalances and inefficiencies in the economy. It can also create trade tensions with other countries and contribute to global imbalances.

In summary, a surplus in the balance of payments is generally beneficial for a country's economy, but it should be managed and monitored to ensure sustainable economic growth and stability.

For more such questions on surplus, click on:

https://brainly.com/question/13573671

#SPJ8

What is the hyperlink for famous viruses ?

Answers

Answer: Hope this helps :)

Explanation: Viruses embedded themselves in genuine programs and relied on these programs to propagate. Worms were generally stand alone programs that could install themselves using a network, USB or email program to infect other computers.

Trojan horses took their name from the gift to the Greeks during the Trojan war in Homer’s Odyssey. Much like the wooden horse, a Trojan Horse looks like a normal file until some predetermined action causes the code to execute.

Today’s generation of attacker tools are far more sophisticated, and are often a blend of these techniques.

These so-called “blended attacks” rely heavily on social engineering - the ability to manipulate someone to doing something they wouldn’t normally do – and are often categorised by what they ultimately will do to your systems.

Which was first launched during the space race

Answers

Answer:

Sputnik

Explanation:

On October 4, 1957, a Soviet R-7 intercontinental ballistic missile launched Sputnik (Russian for “traveler”), the world's first artificial satellite, and the first man-made object to be placed into the Earth's orbit.

Satellite

No Explanation Avalaible:

What is your favorite LEGO set

Answers

Answer:

star wars death star....

i like any of them they are all so cool lol
Other Questions
By the morning, the little girl had...A. sold all her matches,B. passed awayC. found a new home,D. found food to eat, For the following question, you will prepare and submit a response. The response should be well thought out utilizing what you have learned from the Essentials of MIS textbook (LL), your other courses, and your personal experience. You are also expected to comment on at least one of your classmates. The comment should not be just "I agree," or "I disagree." The comment should be why you agree or disagree with it or it should add something new to the discussion. app that you use and sell the class why they should download your selected app. This could be an interesting discussion where we could all learn about a new app to improve our lives. At what price can buy a T-Bill maturing Sept 22 that pays$10,000 in 129 days? Information from a newspaper quote: Bid=0.278,Asked=0.268 ax4 + bx2 + c=0 (a>0) (c>0) The quadratic equation has two solutions If 1)b2>4ac 2) b2-4ac>0 When darren, a white american, failed to secure a job at a leading private bank in salt lake city, he blamed the immigrants for his plight. the immigrants, in this instance, become the One reason why people should be aware of the impact of their actions on the environment is that Recent data on consumer expenditures indicate that the savings rate of U.S. consumers has __________. protecting yourself and others from dangerous and unexpected driving How many atoms are in 4.9 moles of Sodium (Na)? a112.7 atoms b6.022 X 10 ^ 23 atoms c2.95 X 10 ^ 24 atoms d8.14 X 10 ^ -24 atoms all living things have this molecule, it has all the information a cell needs When inflation has NOT been very persistent, as was the case in the United States before the mid-1960s, we can expect that.. a) the current inflation rate will not depend heavily on past years' inflation rates. b) the expected price level for a given year will equal the previous year's actual price level. c) all of the above d) lower unemployment rates will be associated with higher inflation rates. e) none of the above what includes the carbon dioxide and carbon monoxide in the atmosphere, produced by business processes and systems? Find the rate of change of total revenue, cost, and profit with respect to time. Assume that R(x) and C(x) are in dollars. R(x) = 50x -0.5x, C(x) = 6x + 10, when x = 25 and dx/dt = 20 units per day R - 27 / 6 = 7SOLVE FOR RPLEASE I WILL GIVE THE HIGHER POINTS What are 2 attractions in Natal Luz? Use of water from the Ogallala aquifer in the Great Plains region of the United States is not sustainable because A rectangular parking lot has a perimeter of 88 meters. The length of the parking lot is three times the width. Find the length and the width. Situation:A 9 gram sample of a substance that'sused for drug research has a k-value of0.1459.N = -ktNoeNo initial mass (at time t = 0)N = mass at time tk = a positive constant that depends onthe substance itself and on the unitsused to measure timet = time, in days Sean las proposiciones p : "Cinco es mayor que diez" y q : "Dos ms dos son cuatro". Escriba en lenguaje natural la proposicin pq What is the relationship between GDP and inflation?