Assignment
Question 1
Numbers perfectly divisible by 2 are known even numbers and numbers which are not divisible by 2 are called odd numbers.
(a) Drawaflowchartthat takes 10 integers from a user and checks whether that the numbersare even or odd and displays the result.
(b) Write a program that performs the above task.
Question 2
(a) What is stack frame in C?
(b) What happens to the stack when a function is called?
Question 3
Write a function that returns the largest of five floating-point numbers. Assume the function receives five floating-point numbers from the caller function.
Question 4
Write a C program that contains a user-defined function subNumbers(). This function receives two integers, calculates the difference of the two integers and returns the result to the main() function. Use a printf statement in the main() function to display the result.
Question 5
Write a C program to calculate the sum of maximum of 10 numbers entered by the user. If a negative number is entered, then use a break statement to terminate the loop and sum is displayed.
Format your assignment according to the following formatting requirements:
1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.
2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.
3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.