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

 

konstans@stuy.edu > functionOfX
prev  |  next  |  chance

Write a function that takes a floating point value x, and evaluates the expression: x^2 + 5x + 6


functionOfX(0) → 6.0
functionOfX(1) → 12.0
functionOfX(2) → 20.0

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

public double functionOfX(double 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