Computer Science Homework Help

Northern Virginia Community College Computer Science Algorithms Questions

 

1. Write a method called power the computes x to power n where x and n are positive integers. The method has two integer parameters and returns a value of type long.

2.Create aJava class named Book with instance variable title, author, ISBN, and year Published. Include javadoc style comments to describe your class. Such a class would normally have methods, but you are not required to supply any methods.

3. Explain how main memory works.

4. Declare and create a 10 x 10 multidimensional array of doubles.

5. Given an array of double numbers, named myDoubles, initialize it with -1.