Skip to main content

Posts

Showing posts from March 27, 2013

PRACTICE QUESTIONS SET 8

LIST OF PROGRAMS repare an interactive program to input the basic salary of 15 persons. Each one of them gets 25%of the basic as house rent allowance (HRA). 15% of basic as Conveyance allowance and 10% as entertainment allowance the total salary calculated by adding basic + HRA + conveyance and entertainment allowance Calculate how many out of  15 Got salary above Rs. 3000/= and also print the total salary of each person. 158.    The present population of a country is P and it increases by 5% every year. The population (P) after n years is given by a formula P=P* (1.05) n . WAP lo find the population every year, for the next 10 years. l59.     Pooja cottage industries have 75 employees. WAP to input each employee's name, grade and basic pay. Wages are then calculated according to the grade. All percentages are on Basic Pay Grade A: employee receives HRA is 30%, Medical is 20% and deducts Income tax 25% of basic. Grad B: employee receives HRA is 25%, Medical is 15% an

PRACTICE QUESTIONS SET 7 (PATTERN)

LIST OF PROGRAMS 130. *                   *          * *          *          * *          *          *          * *          *          *          *        * 131. *          *          *          *        * *          *          *          * *          *          * *          * * 132. * *          * *          *          * *          *          *          * *          *          *          *          * 133. *          *          *          *        * *          *          *        * *          *        * *        *                                            * 134.                 *             *  *  *         *  *  *  *  *     *  *  *  *  *  *  * *  *  *  *  *  *  *  *  * 135.                 *             *  *  *         *  *  *  *  *     *  *  *  *  *  *  *         *  *  *  *  *             *  *  *                 *

PRACTICE QUESTIONS SET 6(LOOPING)

LIST OF PROGRAMS 101.    1*3*5*7……………………….n terms 102. 103.    1-2+3-4+5……………………….n terms 104.    1-3+5-7+9……………………….n 105. 106.    1,11,121,1331,14641……………………….n 107.    1,10,100,1000……………………….n 108.    1+2 2 +3 3 +4 4 ……………………….n 109.    1,11,111……………………….n 110.    2-4+6-8+10……………………….N 111.    1+(1+2)+(1+2+3)+(1+2+3+4)+……………….(1+2+3……..20) 112.    113.    1,4,5,9,14,23,37,60……………………….n 114.    0,1,1,2,3,5,8,13……………………….n 115.    1 4 ,2 4 ,3 4 ,4 4 ……………………….n 116.    1231491, 1681, 1256, 6561, 165536, 43046721 sum of all above terms in the series is 4339194. 117.    WAP to print the cube of all non prime numbers till x. 118.    Print all the non perfect nos. till x 119.    Count how may zero's are there in a no entered by the user. 120.    Accept x numbers from the user and count how many are negative, positive and zeroes. 121.    Accept 10 nos. from the user and find the smallest and the largest no entered by the user. 122.    Acc

PRACTICE QUESTIONS SET 5 (LOOPING)

LIST OF PROGRAMS 51.       WAP to print all the prime nos. between 1 lo 100. 52.       WAP to print all the prefect nos. between 1 to 100. 53.       WAP to print all the special Nos. between 10 to 500000 54.       WAP to print all the special No between 1 to n 55.       WAP to print all the Armstrong Nos. between 1 to 500 56.       Print the sum of magic nos. between I to n 57.       Print the sum of Armstrong nos. between 1 to 200000. 58.       Print the Pythagorean triplets between 1 to 100. (sum of square of two successive nos. is equal to the third one) 3 3 + 4 4 =5 2 59.       WAP to input a no and print its prime factorizations. 60.       Print all the Prime palindrome nos. between I to 500. 61.       WAP to print the following series. 1,2,3,4…………………………………up-to 10. 62.       11,12,13,14…………………………………up-to 50. 63.       I, 3, 5. 7…………………………………up-to 20. 64.       1,3, 5,7…………………………………up-to 20 terms. 65.       2,4,6,8…………………………………up-to 15. 66.