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

 

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

Write a method that returns a string that describes what happens when you double 'num'. Look at the test data for examples.


quiz2023_09_12_APP1SLHL_doubled(8) → "The number 8 when doubled is 16"
quiz2023_09_12_APP1SLHL_doubled(1) → "The number 1 when doubled is 2"
quiz2023_09_12_APP1SLHL_doubled(-5) → "The number -5 when doubled is -10"

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

public String quiz2023_09_12_APP1SLHL_doubled(int num) { }

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

Copyright Nick Parlante 2017 - privacy