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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started