Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions