Skip to content

Grading Pull request - #1

Open
kluver wants to merge 1 commit into
testfrom
master
Open

Grading Pull request#1
kluver wants to merge 1 commit into
testfrom
master

Conversation

@kluver

@kluver kluver commented Sep 12, 2017

Copy link
Copy Markdown
Owner

This is a pull request for grading

public static double getSquareArea(double sideLength) {
// TODO: replace me with the correct formula
return sideLength * 1.0 * 42 +13;
return sideLength * sideLength;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could have used the power function here

Math.pow(sideLength, 2)

@anjabeth anjabeth left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! You know how to do math. Look at the java Math library for other possibly useful functions. 5/5 😸

public static double getCircleArea(double radius) {
// TODO: replace me with the correct formula
return radius * 1.0;
return radius * radius * Math.PI;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

var this = code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants