id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

burns@bxscience.edu burnscfa > makeCents
prev  |  next  |  chance

Complete the function makeCents. The function receives the number of quarters, dimes, nickel sand pennies as parameters (q, d, n, p). The function will return the value of the coins. Example: 5 quarters, 2 dimes, 3 nickels and 4 pennies = 1.64


makeCents(3, 2, 1, 0) → 1.0
makeCents(0, 2, 3, 3) → 0.38
makeCents(1, 0, 1, 2) → 0.32

...Save, Compile, Run (ctrl-enter)

def makeCents(q, d, n, p):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 100

Copyright Nick Parlante 2017 - privacy