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

 

abraskin@mbusd.org 2016_student_creations_01 > colorMeasure
prev  |  next  |  chance

You are looking at the magnetic spectrum.
If the wavelength is between or equal to 400 and 500 nm, you return the color "BLUE".
If the wavelength is greater than 500 nm and less than or equal to 600 nm, you return the color "GREEN".
If the wavelength is greater than 600 nm and less than or equal to 700 nm, you return the color "RED". If it is not between 400 nm and 700 nm, then return "INVISIBLE".


colorMeasure(501) → "GREEN"
colorMeasure(400) → "BLUE"
colorMeasure(700) → "RED"

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

public String colorMeasure(int x) { }

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

Copyright Nick Parlante 2017 - privacy