Attribution Non-Commercial (BY-NC)

18K views

Attribution Non-Commercial (BY-NC)

- CBSE Sample Paper for Class 11 Computer Science - Set A
- Sumita Arora Class 12 Solutions
- Sumita Arora Classes and Objects Long Answer Questions
- class 11 sumita arora
- viva voce for cbse class 12 computer practical
- CBSE Sample Paper for Class 11 Computer Science - Set E
- CLASS XI COMPUTER SCIENCE PAPER FOR HALF YEARLY EXAM 2010
- Class 11 Structure Sumita Arora Solved Assignment
- Computer Science Investigatory Project Class 11/12
- Computer Project 12 Class CBSE
- 123444332-c-programs-class-11
- CBSE Class XI Computer Science Notes
- c++ Practical File
- VIVA VOCE FOR CLASS XII COMPUTER SCIENCE CBSE
- List of Programs for Class XI_2012
- sumita_arora_class_12_c++_classes_and_objects
- C++ Assignment
- C++ Programs Collection
- cbse_computer_science_operators_and_expressions_solutions.pdf
- Programs List for Class XI-2013_14

You are on page 1of 2

Print table of numbers using function.

find out sum of following series using function

(I) 1+22+32+42+--------till n term (taking n as parameter and return sum of

the series)

(II) 1+33+53+73+--------till n term (taking n as parameter and return sum of

the series)

(III) 1+(1+2)+(1+2+3)+--------------- till n term (taking n as parameter and r

eturn sum of the series)

(IV) 1-U+ U2 /2!- U3 /3! +----------- till n term (taking n and U as functio

n parameter and return sum of the series)

(V) a+ ar2 +ar3 +----------- till n term (taking n,a and r as function par

ameter and return sum of the series)

(VI) 1X+X2 +X3 +----------- till n term (taking n and X as function paramete

r and return sum of the series)

Write a program in C++ using function that print following patterns(taking no of

line for patterns as input):

1 (b) A (c ) A

1 2 1 A B C A B

A

1 2 3 2 1 A B C D A B C B A

1 2 3 4 3 2 1 A B C D E AB C D C B A

(d) * (e) 1

* * 1 2 3

* * * 1 2 3 4

* * * * 1 2 3 4 5

5. Write a C+ program that invoke a function length () that return length o

f input string. The function length () take a character array as input.

6. Write a C+ program that invoke a function count ( ) that return no of wo

rds present in a line using function. The function count () take a character arr

ay as input.

7. Write a C+ program that invoke a function reverse ( ) that reverse a st

ring. The function reverse () take a character array as input.

8. Write a C+ program that invoke a function countvowel ( ) that count no o

f vowels in a line. The function countvowel () take a character array as input

.

9. Write a C+ program that invoke a function palindrome ( ) that return 1 i

f it is palindrome otherwise 0. The function palindrome () take a character arra

y as input.

10. Write a C+ program that invoke a function replace ( ) that replace every

space in a string with hyphen. The function replace () take a character array a

s input.

11. Write following program in C++ using function that take an array and its

size as input parameters.

(i) Return largest element in array.

(ii) Return smallest element in array.

(iii) Find a element in array and return 1 if its present otherwise return 0.(

take searching element and array as input parameter).

(iv) Add two matrix(Take two, 2-D array and their size as input parameter an

d print their sum)

Subtract two matrix(Take two, 2-D array and their size as input parameter and p

rint their difference

Multiply two matrix(Take two, 2-D array and their size as input parameter and p

rint their product)

Display Transpose of a matrix

Find row sum and column sum of a matrix.

Print diagonal sum of a input matrix.

Count no of occurrences of each character in a line. E.g.

If u enters a line â ARRAY DECLARATIONSâ that output is

A 4

R 3

Y 1

D 1

E 1

(XI) Input a string as parameter in function and print in following manner:if

input string is â MALAYSIAâ

OUTPUT SHOULD BE:

M MALAYSIA

MA MALAYSI

MAL MALAYS

MALA MALAY

MALAY MALA

MALAYS MAL

MALAYSI MA

MALAYSIA M

- CBSE Sample Paper for Class 11 Computer Science - Set AUploaded byaglasem
- Sumita Arora Class 12 SolutionsUploaded bySaarthak Kamal
- Sumita Arora Classes and Objects Long Answer QuestionsUploaded byvaibhavmaan
- class 11 sumita aroraUploaded byVipul Sachdeva
- viva voce for cbse class 12 computer practicalUploaded byDevesh
- CBSE Sample Paper for Class 11 Computer Science - Set EUploaded byaglasem
- CLASS XI COMPUTER SCIENCE PAPER FOR HALF YEARLY EXAM 2010Uploaded bysm_manda
- Class 11 Structure Sumita Arora Solved AssignmentUploaded byShisthruna Ramesh
- Computer Science Investigatory Project Class 11/12Uploaded byShweta
- Computer Project 12 Class CBSEUploaded byNitish Jadia
- 123444332-c-programs-class-11Uploaded byArmaan Chauhan
- CBSE Class XI Computer Science NotesUploaded byexpertarjun
- c++ Practical FileUploaded byKarandeep Singh
- VIVA VOCE FOR CLASS XII COMPUTER SCIENCE CBSEUploaded byAravind M Nair
- List of Programs for Class XI_2012Uploaded byNiti Arora
- sumita_arora_class_12_c++_classes_and_objectsUploaded byArshil Khan
- C++ AssignmentUploaded byPremendra Yadaw
- C++ Programs CollectionUploaded byNeil Mahaseth
- cbse_computer_science_operators_and_expressions_solutions.pdfUploaded byKamal Joshi
- Programs List for Class XI-2013_14Uploaded bynita23arora2321
- Revision Notes for Exam 2011 Computer ScienceUploaded byAniruddh Rajput
- Assignmentno1 c++Uploaded byNiti Arora
- Notes 11Uploaded byNiti Arora
- C++ Practical File CompleteUploaded byKevin Alluvalia
- CBSE Sample Paper for Class 11 Computer Science - Set BUploaded byaglasem
- C++ ProgramsUploaded byRaghunath2u
- 60877735-List-of-Programs-Class-XI-2011-12Uploaded byNiti Arora
- Flow of Control 2Uploaded byNiti Arora
- cbse_class_11_c++_ flow_of_control_solved_questions.pdfUploaded byKamal Joshi

- unit 5 review 1718 - rational and irrational numbers exponents and radicalsUploaded byapi-368121935
- Edu 2012 Spring Mlc Solutions (1)Uploaded bytmaster11235
- Circles.pdfUploaded byCaroline
- z TransformUploaded byMohammad Rameez
- 07553457Uploaded byMiguel Lopez
- Analytic GeometryUploaded byLouise Umali
- 4241Uploaded byAravind Ramesh
- 501 Quantitative Comparison Questions - ALGEBRAUploaded byAbhineet Tomar
- Exponential and Logarithmic Functions.pdfUploaded byKJ
- MATH0301-Translating Sentences Into EquationsUploaded byRonna Yap
- Giles Stability of ODE SolversUploaded byTomek Dysarz
- Chapter 7Uploaded byoverkilled
- ConservativeUploaded bydurga03
- math 0102 course outline z danielUploaded byapi-294088455
- Analysis of Pca Based and Fisher ant Based Image Recognition AlgorithmsUploaded byNguyen Ngoc Khanh Hang
- BM Assignment SolutionsUploaded byMir Mazar
- Basic Geometry Concepts.docUploaded bymlaasyapriya
- dsUploaded byAl-Ain Homes
- checkshot.pdfUploaded byVidho Tomodachi
- error pada abaqus.docxUploaded byGilberto
- Hardy Spaces Lecture Notes 1Uploaded byValdrick
- Picard_2 (2)Uploaded byadligumelar
- bmo18Uploaded byQianli Xia
- Chapter 19 I Graphs of Functions II ENHANCE mathematics spm exercise and notesUploaded byEzra Loganathan Muniandi
- class1.pdfUploaded byalin444444
- Polynomials ProjectUploaded byDhananjay
- Sydsaeter Instructor ManualUploaded byPreetinder Kaur
- WeakKAMVersion10-15June2008Uploaded byalfat66
- Differentiability in Topological GroupsUploaded byCésar Delgado
- CAPE Pure Maths Unit 2 Paper 1 2008-2017Uploaded byCAPE_PP

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.