Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q6) (4pts) Write a function declaration that calculates the average of a const a

ID: 3734133 • Letter: Q

Question

Q6) (4pts) Write a function declaration that calculates the average of a const array of doubles. What is your function's signature?: Q7) (2pts) A function definition normally goes in a (circle one:) .h or cpp and the declaration normally goes in a (circle one:) h or.cpp, especially when sharing your code with others. Q8) (3pts) Draw a line connecting each language with its programming paradigm: Language Lisp Paradigm Object Oriented Procedural Functional Q9) (1pt) Who is considered the inventor of C?

Explanation / Answer

6) Function decaration is also known as function signature.

double average (const double arrays[]);//function signature

double returns double value

average is the name of the function

parameters are const array of doubles

7) Always function declarations should be declared in .h file (eg:circle.h)

Always function defintion shpuld be stored in .cpp file(eg:circle.cpp)

8) lisp - functional language

c -procdural language --- as main program consists of many functions to help the main

c++ -object oriented language.Where concept of OBJECTS is a great boon to software

9) Dennis Ritchie is the inventor of C programming language.He is also one of the members who created UNIX operating system

PS:If you like the question,please Upvote so that my profile will improve