The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Consider the following method main:

a. Write the definition of the method inputArray that prompts the user to input 20 numbers and stores the numbers in alpha.
b. Write the definition of the method doubleArray that initializes the elements of beta to two times the corresponding elements of alpha.
c. Write the definition of the method copyGamma that sets the elements of the first row of inStock to gamma and the remaining rows of inStock to three times the previous row of inStock
d. Write the definition of the method copyAlphaBeta that stores alpha into the first five rows of inStock and beta into the last five rows of inStock. Make sure that you prevent the method from modifying the elements of alpha and beta.
e. Write the definition of the method printArray that prints any onedimensional array of type int. Print 15 elements per line.
f. Write the definition of the method setInStock that prompts the user to input the elements for the first column of inStock. The method should then set the elements in the remaining columns to two times the corresponding element in the previous column, minus the corresponding element in delta.
g. Write Java statements that call each of the methods in parts a through f.
h. Write a Java program that tests the method main and the methods discussed in parts a through f.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll