Price Adjustment
Write a method
int bumpMe(int price, int increase, boolean updown)
that accepts a price in dollars and returns a new price rounded to the nearest dollar, after increasing/decreasing price by increase percent. If updown is true then you should increase the price; otherwise, decrease the price. Write an appropriate main(…) method to test bumpMe(…).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here