Week 4 DQ 11 - An example of data that is appropriately...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Discussion Question 1 Write a 200- to 300-word short-answer response to the following questions: What are the similarities and differences of the array and parallel array structures? What is an example of data that is appropriately stored in a parallel array structure? The similarities between an array and a parallel array are they both contain at least on element that is referred to by writing the array followed by its index number enclosed by brackets. For example, say the element is Number, it would be written as Number[0]. Also, they both have subscripts which are the numbers that are enclosed in the brackets, and they can be in some sort of repetition structure. The differences between an array and a parallel array is an array is displayed as list and has one element with the subscript enclosed in brackets, and a parallel array has more than one array and can be displayed as a table rather than a list, it has more elements than one.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: An example of data that is appropriately stored in a parallel structure is a persons name and their birthdays or their age. Question to all In the following parallel array (Multi-dimensional array), write pseudocode to display Firstname, Lastname, and Birthdate records (data) for John. Array FirstName FirstName(1) = "Bill" FirstName(2) = "Mark" FirstName(3) = "John" FirstName(4) = "Ken" FirstName(5) = "Amy" FirstName(6) = "Lucy" Array LastName LastName(1) = "Turner" LastName(2) = "Smith" LastName(3) = "Summer" LastName(4) = "Keller" LastName(5) = "Rodriguez" LastName(6) = "Twain" Array Birthdate Birthdate(1) = "6/12/1990" Birthdate(2) = "4/23/2000" Birthdate(3) = "1/10/1989" Birthdate(4) = "5/20/1975" Birthdate(5) = "12/1/1980" Birthdate(6) = "8/14/2002" Declare FirstName[6] Declare LastName[6] Declare Birthdate[6] Write...
View Full Document

Page1 / 2

Week 4 DQ 11 - An example of data that is appropriately...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online