Write the pseudocode that will populate an array of type string with data.
The array is called dogBreeds and the following values must be loaded:
Labrador, Poodle, Terrier, Spanniel, Doberman.
String dogBreads[5];
int i;
for i=0 to i<5:
if i==0 then
array1[i]="Labrador"
else if i==1 then
array1[i]="Poodle"
else if i==1 then
array1[i]="Terrier"
else if i==1 then
array1[i]="Spanniel"
else if i==1 then
array1[i]="Doberman"
Comments
Leave a comment