Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago