A community for students.
Here's the question you clicked on:
 0 viewing
pottersheep
 4 years ago
Guidance please !! Write a method to calculates exponents. Pass 2 values: the number and the exponent it is to be calculated to; return the result. Display the returned value.
pottersheep
 4 years ago
Guidance please !! Write a method to calculates exponents. Pass 2 values: the number and the exponent it is to be calculated to; return the result. Display the returned value.

This Question is Closed

pottersheep
 4 years ago
Best ResponseYou've already chosen the best response.0This is the fail I have now :((( http://pastebin.com/AMiaBFDR

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0the return result on line 25 should be after the while loop. Your method is returning immediately and always returning 1. Also you should probably get used to making result a local variable to the function and not a static class variable.

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0I have already helped you and pointed out all your mistakes
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.