Q-1. Write a program to input 10 elements in a list. And show STACK OPERATIONS menu driven as given below: ØAdd element in a STACK (PUSH) ØREMOVE ELEMENT FROM STACK (POP) ØSHOW STACK ELEMENTS
Q-2. Write a program to input following DETAILS OF 5 STUDENT AND STOREin ‘STUDENT.TXT’. ØGRNO ØNAME ØMARKS OF ENG, PHY, CHE,MAT,CS ØFIND THE TOTAL MARKS AND PRINT ØFIND THE PERCENTAGE Read all the data from ‘STUDENT.TXT’ and PRINT RESULT, IF STUDENT PASS IN ALL SUBJECT PRINT “PASS” OR “FAIL” (PASSING MARKS IN EACH SUBJCET IS 50) x
Q-3. Write a menu driven program to take a number from the user and testØ
Given number is Prime or not ØSum of all the digits of Given number ØGiven number is positive, negative or zero.
0 Comments