top of page
Legion of Learners
www.lol-101.com
Home
Classrooms
Courses
About Us
Executive Team
Our Mentors
Board Members
Resources
Members
More
Use tab to navigate through the menu items.
Log In
Forum Comments
Intro to Java 6/24 Homework
In Java Question Bank
emiiilee2.0
Jun 27, 2020
class Main { public static void main(String[] args) { double a = 4.2; double b = 6.9; int x = 4; double the_power_of_b = Math.pow(b, 4); System.out.println(the_power_of_b); double the_absolute_value_of_a = Math.abs(a); System.out.println(the_absolute_value_of_a); double b_rounded = Math.round(b); System.out.println(b_rounded); double the_smallest_integer_greater_than_or_equal_to_a = Math.ceil(a); System.out.println(the_smallest_integer_greater_than_or_equal_to_a); double the_bigger_of_either_a_or_b = Math.max(a, b); System.out.println(the_bigger_of_either_a_or_b); } }
0
0
Intro to Java 6/20 Homework
In Java Question Bank
emiiilee2.0
Jun 24, 2020
class Main { public static void main(String[] args) { double r = 3.0; double h = 4.5; double sa = 2 * Math.PI * r * h + 2 * (Math.PI * r * r); System.out.println(sa); } }
0
0
E
emiiilee2.0
0
Followers
0
Following
More actions
Profile
Forum Comments
Forum Posts
More
Use tab to navigate through the menu items.
bottom of page