Loading
notes intro/old submit AP Problems the dump links
 

Math projects:

 

In a class called MathProjects

 

1. Create a method called void thirdRoot (double x) that will print out the 3rd root of a number

 

2. Using random, write a method randomHeight that will print a a random height for a man between 5'2 and 6'4.

 

3. Create a method called int yearsFromMyAge(int theirAge) that will get the user's age and tell them how many years they are from your age. Use MATH.abs

 

4.(extra credit)Create a method that will public double findWeight(int currentHeight, int currentWeight, int otherHeight) that will find how much the person would weigh if they were in the same proportion but of a different height. The formula is otherWeight equals otherHeight divided by currentHeight all to the 3rd power, times currentWeight.

5. EC: Create a method void dueDate(int month, int day, int year) that will calculate a baby's due date based on their date of conception. A child is born 40 weeks from conception.