Question: Task: aminad Salman Chaudhry - All rights reserved - Computer Science Department, FCC University (www. fccollege.edu.pk) - Write a gcc C program: compile and run

 Task: aminad Salman Chaudhry - All rights reserved - Computer Science

Task: aminad Salman Chaudhry - All rights reserved - Computer Science Department, FCC University (www. fccollege.edu.pk) - Write a gcc C program: compile and run in Ubuntu. Create an array "zeta" of size 30 that holds floating point numbers. The first 3 elements are 1.1, 2.2, 3.3. The nth element is calculated using the expression: zeta(n)=0.5zeta(n3)+0.3zeta(n2)+0.2zeta(n1) - Use a loop to print the complete array of 30 elements, each value separated by comma. - On the next line of the output, the program should print only the numbers in the array that have odd integer prt. 0 (The integer part of the number 123.456 is 123.) - Hint: Equation (a) is an iterative formula introduced in the course Discrete Maths. These formulas take in the values from previous iterations to give new values. For example the zeta(10) would be: zeta(10)=0.5zeta(7)+0.3zeta(8)+0.2zeta(9)

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!