Question: Chapter 8 Arrays ASSIGNMENT Programming Projects 1. The Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, ... , where each number is

Chapter 8 Arrays ASSIGNMENT

Programming Projects

1. The Fibonacci numbers are

0, 1, 1, 2, 3, 5, 8, 13, ... ,

where each number is the sum of the two preceding numbers.

Write a program that declares an array named fib_numbers of length 40 and fills the array with the first 40 Fibonacci numbers.

Hint: Fill in the first two numbers individually, then use a loop to compute the remaining numbers.

1. Write your program here:

#include

int main(){

return 0;

}

Ans:???

2. Write a program that reads a 5 x 5 array of integers and then prints the row sums and the column sums:

Enter row 1: 8 3 9 0 10

Enter row 2: 3 5 17 1 1

Enter row 3: 2 8 6 23 1

Enter row 4: 15 7 3 2 9

Enter row 5: 6 14 2 6 0

Row totals: 30 27 40 36 28

Column totals: 34 37 37 32 21

2. Write your program here:

#include

int main(){

return 0;

}

Ans:???

3. Modify Programming Project 2 so that it prompts for five quiz grades for each of five students, then computes the total score and average score for each student, and the average score, high score, and low score for each quiz.

3. Write your program here:

#include

int main(){

return 0;

}

Ans:???

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!