You are on page 1of 3

NO 1.

TUTORIAL LIST a. WAP to simulate a medical diagnosis system. b. Define facts: female(X) X is female. male(Y) Y is male. parent(X,Y) X is parent of Y. Laxmi Narayan

Ram

Vishnu

Rita

Nisha

Bhargav

Aditya Derive relationship for mother, father, sister, brother, grandfather, grandmother, motherin-law, father-in-law, brother-in-law, grandchild and uncle.

c. Modify program to add user interaction in medical diagnosis system. 2. a. Write program to display digits 1 to 9 also in reverse order using recursion to understand winding down. b. Write a program to perform login operation using: i. Recursion ii. repeat predicate c. Define predicate location (City, State). Write a program such that it displays all the locations except city Delhi. Using: i. not predicate ii. Combination of cut and fail. 3. a. Write a program to calculate factorial of the given number. b. Write a program to repeatedly input character and decide if the same is a lower case alphabet, an upper case alphabet or a digit.

4.

c. Write a program to find the length of the string. d. Write a program to separate and print each word of the string.

5.

a. Write a program to compute: i. Length of a given list. ii. Sum of all numbers present in a list. b. Write a program to append one list behind another list and generate a new list.

6.

a. Write a program to reverse the given list. b. Write a program to find element next to the given element and delete it.

7.

a. Write a program to find the position of an element from the given list. b. Write a program to append a list by adding at the front and the last of the list.

8.

a. Write a program to split the list on the basis of a given integer into grater and smaller number. b. Write a program to substitute an element in the list by a given another element.

9.

a. Write a program to represent knowledge of 10 employees of a company, employee (Empid,name,B_Date, Address). Where name of an employee and B_Date are compound objects. Display list of Employees whose birthday is in current month(Use compound object and fail) b. Write a program to write in a file.

10.

a. Write a program to implement Tower of Hanoi. b. Write a program to implement Monkey & Banana (M&B) Problem. M&B Problem: A Monkey is standing at the door of a Room. Banana is hanging in the middle of the Room. Monkey wants to eat the banana but banana is not reachable by the monkey. To get the banana monkey has to use a table lying in a corner of the Room. Monkey need to push the table in the middle of the Room. Then it has to get on the table and get the Banana. c. Write a program to solve 8-queen problem.

You might also like