Python Calculations

Create a Python program that calculates the exact amount of change to give a customer in denominations of
quarters, dimes, nickels, and pennies. For example, if the change is 79 cents, how many of each coin would be
needed to give change? Include the necessary code and code descriptions.
I have a tried to solve it, here’s my code:
amount=int(input)()
num_quarters= int(amount/25)
amount= amount%25
num_dimes=int(amount/10)
amount=amount%10
num_nickels=int(amount/5)
amount=amount%5
num_pennies=int(amount/1)
amount=amount%1
print(” Number of coins of quarters :”, num_quarters)
print(” Number of coins of dimes :”, num_dimes)
print(” Number of coins of quarters :”, num_nickels)
print(” Number of coins of pennies :”, num_pennies)
I need to explain what’s wrong with the code & correct it.
*Need correct code, that if complied will work

Sample Solution

The post Python Calculations appeared first on homework handlers.

Evolutionary Biology

1a. The divergence between Drosophila melanogaster and D. simulans at putatively neutral sites is 0.128 and the species are thought to have diverged 2.5 million years ago. What is the mutation rate per site per year? (2 marks)

D = 2 u t
U = D(2t)
u = 0.128/(2 x 2.5 x 10^6) = 2.56 x 10^-8

b. If Drosophila species typically go through 10 generations per year, what is the mutation rate per site per generation? (2 marks)

u = Dg/2t
Ug = (2.56×10^-8)/10 = 2.56 x 10^-9

c. Describe how you can more directly estimate the mutation rate. (2 marks)

d. Let us imagine that using the method described in (c) we estimate the mutation rate per site per generation in Drosophila melanogaster to be greater than that estimated using the phylogenetic method. Assuming the method in (c) is correct give two reasons for the discrepancy (e.g. the species might have diverged more recently than assumed; assuming a longer divergence time depresses the phylogenetic estimate) (4 marks)

2a. It is generally assumed that advantageous mutations occur infrequently. Explain why. (2 marks)

b. Imagine that we have three loci, of equal length and mutation rate; the first has only advantageous mutations, the second neutral and the third deleterious mutations. Rank them in order of expected diversity (greatest first). (2 marks
Neutral
Advantageous
Deleterious

Sample Solution

The post Evolutionary Biology appeared first on homework handlers.

Exchange rate regime and stock of reserves – Brazil

EME Case Study: Brazil post-2007:
The task is Referring to relevant research publications, discuss how the exchange rate affects external
balances and the real economy through the so-called trade channel and the so-called financial channel.
Discuss also the evidence regarding how the overall effects differ for emerging markets economies (EME) and
for advanced economies (AE). “analyse its external position since the 2007 financial crisis. Include in the
analysis the evolution of the exchange rate regime and stock of reserves.”
-For the main source use this as a case study, https://www.elibrary.imf.org/view/IMF071/25455-
9781484375686/25455-9781484375686/ch07.xml?language=en&redirect=true

Sample Solution

The post Exchange rate regime and stock of reserves – Brazil appeared first on homework handlers.

Animating in unity

In this assignment you will create a movable character with a background. This should be an animated character that can move left/right and shifts animation based on the direction moving. You should also put several other objects in this game that can either be animated or static. Your character should be able to collide with these objects and jump over these objects. This will entail the following:

Create a Scene with a background.
Create a character with multiple animations
Move the character left/right
Switch animations based on the direction being moved
Applying the Rigid 2d body component to the character
Adding a collision zone to the character and the floor/walls
Adding jumping code

Sample Solution

The post Animating in unity appeared first on homework handlers.