SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 206 Weeks Ago, 3 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 23 Oct 2017 My Price 10.00

Initialize the elements in the arrays to specific values.

A.               Declare and instantiate three (3) arrays for your three (3) attributes. For example, I used an array of seven (7) Strings for the names of the marine mammals, an array of seven (7) Integers for the population, and an array of seven (7) Doubles for the length.

B.    Write a for-loop to display the three arrays, showing the corresponding indexes and elements. You should just display "null" for the values at this point. If you used primitive data types instead of classes, such as "double" instead of "Double" that is OK. Instead of displaying "null" you might get zeros (such as "0.0" for doubles) instead.

C.    Initialize the elements in the arrays to specific values.

D.   Write a for-loop to re-display the three (3) arrays, showing the corresponding indexes and elements.

E.    Change all elements to different values. Just keep it simple. For example, I capitalized the names, added one (1) to the populations, and converted meters to centimeters.

F.     Write a for-loop to re-display the three (3) arrays, showing the corresponding indexes and elements.

G.   Write your original comments every 3-5 lines of code.

 

Output

Native Forest Birds in Hawaii

index   name   population   length

  0     null      null       null

  1     null      null       null

  2     null      null       null

  3     null      null       null

  4     null      null       null

  5     null      null       null

  6     null      null       null

 

index   name                     color                length(inches)
0     Akiapolau                yellow                5.50
1     Akepa                    orange                3.90
2     Hawaii Creeper           yellow                4.30
3     Iiwi                     red                   5.90
4     Apapane   red    5.10
5     Hawaii Amakihi           yellow 3.90
6    Hawaii Elepaio           Black   5.50
 
 
index   name(all caps)           color(+color)       length(cm)
0     AKIAPOLAU                yellow,orange  13.97
1     AKEPA                    orange,gray    9.90
2     HAWAII CREEPER           yellow,white   10.92
3     IIWI                     red,black      14.98
4     APAPANEbrown,crimson   12.95
5     HAWAII AMAKIHI           yellow,green   9.90
6     HAWAII ELEPAIO           brown,white    13.97
 

 

Attachments:

Answers

(5)
Status NEW Posted 23 Oct 2017 11:10 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)