[Solved] SOLVED:Exponents Program SOLUTION

$25

File Name: SOLVED:Exponents_Program__SOLUTION.zip
File Size: 320.28 KB

SKU: [Solved] SOLVED:Exponents Program – SOLUTION Category: Tag:
5/5 - (1 vote)

New Concepts to be applied for the assignmentInput and outputVariablesFormulasDecision making/branchingLoopingAside from the main() method you are not to write static methods for this assignment. (If you dont know what Im referring to by static methods, I will be discussing this topic later in the course). DescriptionDefine one class Exponents, your code will be all be contained in the main() method of this class. The file name of course must be called Exponents.java. (1 mark for an empty class and method definition, additional marks will be awarded when you implement the features listed below). (Y

The program will prompt the user for a base and a power (1 mark each x 2 = 2 marks total) either of which can be any non-negative integer

The program can correctly calculate an exponent when the power is zero (the result is just one). (1 mark)

The program can correctly calculate (using a loop) an exponent when the power is greater than zero. (2 marks)

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED:Exponents Program SOLUTION
$25