Briefly describe the concept of parallel arrays, computer science homework help

Briefly describe the concept of parallel arrays, computer science homework help

Question 1: (0.5pt)

Briefly describe the concept of parallel arrays and give an example.

Question 2: (0.5pt)

Define C-strings and C++ strings and give the main difference between them.

Question 3: (2pt)

Fibonacci numbers are numbers in sequence following an integer sequence define by this formula:

Fn = Fn-1 + Fn-2

With F0 = 0 and F1 = 1

Example: 0, 1, 1, 2, 3, 5, 8, etc.

Write a program that first stores the initial Fibonacci numbers F0andF1in an array of size 10 at index 0 and 1, respectively, then computes and stores the remaining Fibonacci numbers F2 to F9in the same array. Then print all elements of the arrays to the console as:

The 10 first Fibonacci numbers are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34;

Question 4: (1 pt)

What makes Vectors safer to use than arrays? Explain through an example.

Question 5: (1 pt)

Answer whether these statements are True or False:

a)  “=” operator allows you to copy the content of an array into another array

b)  “==” operator cannot compare the content of two arrays element-by-element

c)  “=” operator copies the content of a vector into another one

d)  “==” operator compares the content of two vectors element-by-element

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper