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

 

jebbert@volusia.k12.fl.us > quiz2023_09_15_APP1SLHL_wallet
prev  |  next  |  chance

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)

public int quiz2023_09_15_APP1SLHL_wallet(int ones, int fives, int tens, int twenties) { }

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

Java Help

Misc Code Practice

Difficulty: 220

Copyright Nick Parlante 2017 - privacy