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

1.)Declare an integer array of size 60 named test array. 2.)Write a function pro

ID: 3694488 • Letter: 1

Question

1.)Declare an integer array of size 60 named test array.

2.)Write a function prototype for each of the following functions: You dont need to write the function body just the first line.

a.)function sill that takes two values of type char as parameter, called side1 and side2, and returns a value of type char as it results.

b.)function showMenu that does not recieve any parameter and does not return a value.

c.) funtcion convert that takes a float parameter, called number,and returns a value of type int as its result.

3.)in code, what is meant by the term "Scope"? Lost a type of scope, and explain what it means. Show an example in code. (list another kind of scope as well)

Explanation / Answer

1) int testarray[60];

2)
a) char sill(char side1, char side2);
b) void showMenu();
c) int convert(float number);

3)Scope means the lines in which variable can be used.

ex.

   {
       int a;

       {
           int b;

       }
   }

here variable b cannot be use outside the inner block, but a can be used any where.