PF_LAB_Assignment # 4
PF_LAB_Assignment # 4
Instructions:
Understanding the problem is a part of the assignment.
Your assignment should be submitted in PDF format.
There is a ZERO tolerance policy for plagiarism. Assignments found with copy-pasted material or
copied from fellows will be marked as ZERO.
Late submission after due date, 25 % deduction of over marks on the one-day, 50 % deduction of
over marks on the two-day and no submission after this.
Submit your assignments on Slate within the given time frame. Emailed assignments will not be
accepted.
I can take either quiz or in lab viva for this assignment by calling any one from the class.
Question No 1:
Write a program that inputs marks of ten students. The Program displays the number of students
inn each grade. The criteria is as follows,
80 or above A
60 to 79 B
40 to 59 C
Below 40 F
Question No 2:
Construct a program that declares a structure to store the code number, salary and grade of an
employee. The program defines two structures variables, inputs records of two employees and
then displays the record of the employee with more salary.
Question No 3:
Develop a program that uses a function mul(int, int) to determine for a pair of integers whether
the second integer is a multiple of the first. The function should take two integers arguments and
retirn 1 (true) if second is a multiple of the fisrt and return 0 ( false) otherwise. The program
should input a series of paris of integers.
Question No 4:
Write a program that inputs two integers and calculates fisrt number is raised to the power of
second number recursively.
Question No 5:
Construct the program that declares an integer in main () function. It also declares two functions.
One function inputs a value in the variable defined in the main () function. The second function
doubles the value of that variable (By using pointers in functions).