Section 1

Preview this deck

What do you write at the beginning of your code?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (10)

Section 1

(10 cards)

What do you write at the beginning of your code?

Front

public class Bla { public static void main(String args[]) { } }

Back

Can constants be casted/changed?

Front

No.

Back

Write code that converts radians into degrees/degrees to radians.

Front

double toDegrees(double r) double toRadians(double d)

Back

Write code that returns b raised to the e power.

Front

Math.pow(b, e);

Back

DONT FORGET TO...

Front

FINISH YOUR STATEMENT WITH A SEMICOLON!

Back

What happens? double d = 29.78; int i = d;

Front

It won't compile. To make it work: int i = (int)d;

Back

Write code that returns x rounded to nearest whole number.

Front

Math.round(x) ;

Back

Write code that returns log base e of x.

Front

Math.log(x);

Back

Write code that returns the smaller of a and b.

Front

Math.min(a, b); Math.max(a, b);

Back

Write code that returns the next highest and next lowest whole numbers from x.

Front

Math.ceil(x); Math.floor(x);

Back