List Of Programs Class Xi 2009-10

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View List Of Programs Class Xi 2009-10 as PDF for free.

More details

  • Words: 763
  • Pages: 3
Kulachi Hansraj Model School Computer Science (083) Program List Class XI (2009-10) Write programs in C++ for following using appropriate programming constructs 1. Multiplication of a number x upto n terms 2. Factorial of a given number n eg. 5! = 5 X 4X 3 X 2 X 1 and 0!=1 3. WAP to take input of two numbers and find weather they are co-prime or not. HINT : Co-prime are the numbers which do not have any common factor except for 1. In other words two numbers having HCF=1 are co-prime. 4. WAP to take input of a numbers and find weather it is perfect number or not. HINT : Perfect number is a number having sum of all its factors equal to double the number itself eg. 6 is perfect number as 1+2+3+6=12 5. WAP to take input of a numbers and find weather it is Armstrong number or not. HINT : A number having sum of cubes of individual digits adds up to number itself is called Armstrong number. Eg. 153 is Armstrong number as 1³ + 5³ + 3³ =153 6. Input a number and find reverse of the number. Eg. If input is 465 the output should be 564 7. Take appropriate input and calculate area/volume of different figures a. Rectangle b. Square c. Circle d. Triangle The program should be menu driven. (Use switch-case ) 8. An Electricity board charges following rates to domestic users to discourage large consumption of energy a. First 100 units : 60 P/unit b. Next 200 units : 80 P/unit c. Beyond 300 units : 90 P/unit All users are charged minimum of Rs. 50. If total Amount is >300 then additional surcharge of 15% is added. WAP to read users name and units consumed and calculate the amount payable. 9. WAP to find the sum of the following series: a. 1²+3²+5²+7²……… n terms b. 1 - x²/2! + x^4/4! - x^6/6! + ....... x^n/n! 10.Write Programs to produce following type of outputs (Nested Loops) 1 121 12321 1234321

STRING MANIPULATION 11.write a menu driven program to do the following with string input : (Develop UDFs (User Defined Functions) MENU 1. find the length of string 2. Count No. of words 3. Palindrome check 4. count number of vowels, alphabets, digits 5. Replace every first alphabet of word with capital letter 6. Exit ARRAYS (1 D) 12.Write a menu driven program to perform various operations on integer Array (1D) a. Create b. Display c. Search (Linear search) d. Selection sorting e. Binary Search (In sorted array) 13.Write a menu driven program to perform various operations on integer Array (1 D) a. Create b. Display c. Insertion d. Deletion e. Modification 14.Write a menu driven program to perform various operations on array of names (Strings) a. Create array b. Display array c. Bubble sort d. Exit 15.Write a menu driven program to perform various operations on array of integers a. Create array b. Display array c. Merging two arrays (Both should be pre sorted ) d. Exit ARRAYS (2-D) 16.Write a menu driven program to perform various operations on 2-D array of integers (Matrix) a. Create Matrix b. Display Matrix c. Transpose of Matrix d. Lower triangle printing (1 and 2) e. Upper triangle printing (1 and 2) f. Exit 17.Write a menu driven program to perform various operations on 2-D array of integers (Matrix) a. Addition of two Matrix b. Subtraction of two matrix c. Multiplication of two matrix d. Exit 18.Write a menu driven program to perform various operations on 2-D array of integers (Matrix)

a. b. c. d. e. f.

Create Matrix Display Matrix Sum of rows Sum of columns Sum of diagonals Exit

PROJECT Consider the following structure for storing data related to a student: struct stud { int roll; Char Name [20]; Char Address [20] Char fname[20]; // father’s name Int m[5]; //Marks in 5 Subjects }; Display the following menu for at least 5 students (Array of stud type) (use functions):  Create array // To accept data of 5 student  Show // To display data of 5 student  Report card // to display report card of given roll no.  Name list //to display data sorted on names  Merit List. // should have the roll no., name, total and average  Grade card Generation: // should have roll no., name, total & grade for all the students (according to roll no.) Criteria of grade are: Average Grade >=90 A <90 and >=75 B <75 and >=60 C <60 and >=40 D <40 F

Related Documents

List Of Programs
November 2019 19
200910
June 2020 49
Class List
November 2019 15