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

 

tim@ggc.edu > getYourWeightPriceInGold
prev  |  next  |  chance

Calculate your weight in gold. This method acceptes your weight in pounds and returns the dollar amount in the price of gold. Currently, gold is 1800 dollars per ounce and there are 16 ounces in one pound.


getYourWeightPriceInGold(150) → 4320000
getYourWeightPriceInGold(90) → 2592000
getYourWeightPriceInGold(100) → 2880000

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

public int getYourWeightPriceInGold( int pounds) { }

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

Copyright Nick Parlante 2017 - privacy