about | help | code help+videos | done | prefs |
makeCents
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy