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

 

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

Write a method that accepts an integer 'funds' and returns a string with a statement saying you have that amount of money in dollars. Make sure your pluralization is correct! You should ONLY use singular if you have 1 dollar. Look at the test data for examples!


test2021_09_02_APSLHL_money(53) → "You have 53 dollars"
test2021_09_02_APSLHL_money(1) → "You have 1 dollar"
test2021_09_02_APSLHL_money(4) → "You have 4 dollars"

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

public String test2021_09_02_APSLHL_money(int funds) { }

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: 250

Copyright Nick Parlante 2017 - privacy