about | help | code help+videos | done | prefs |
Write a method that returns the total value of the money in your wallet. The parameters 'ones', 'fives', 'tens', and 'twenties' each tell how many of that type of bill you have. For example, if 'fives' is 3, that means you have three five-dollar bills in your wallet. Each parameter will be greater than or equal to zero (no negatives). Return the total value of all the money in your wallet. You will probably want to do some multiplying to solve this problem! Remember that the "*" is the symbol for multiplication (shift-8). Look at the test data for examples. quiz2023_09_15_APP1SLHL_wallet(1, 2, 3, 4) → 121 quiz2023_09_15_APP1SLHL_wallet(5, 7, 2, 4) → 140 quiz2023_09_15_APP1SLHL_wallet(9, 9, 7, 2) → 164 ...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: 220
Copyright Nick Parlante 2017 - privacy