SlideShare a Scribd company logo
Part II:2-DimensionalArray
file name:lab1part2.cpp
(10 points)
Write a C++ function, named DrawN(), that willreceive a two-dimensionalarrayofchars (size 10 x10) as a parameter and assignthe character
2-DimensionalArrayfile name:lab1part2.cpp Write a C++ function, named DrawN(), that willreceive a two-dimensionalarrayofchars (size 10 x
10) as a parameter and assignthe character 'N' to eachelement inthe first and last rows, and to eachelement inthe diagonalfromthe upper right
to the lower left (as displayed below). Test your functioninmain().

More Related Content

What's hot (20)

PDF
C programs Set 2
Koshy Geoji
 
PPT
16858 memory management2
Aanand Singh
 
PDF
A formalization of complex event stream processing
Sylvain Hallé
 
PDF
Runtime Monitoring of Stream Logic Formulae (Talk @ FPS 2015)
Sylvain Hallé
 
PPTX
knn classification
Akhilesh Joshi
 
PPTX
support vector regression
Akhilesh Joshi
 
PPTX
multiple linear regression
Akhilesh Joshi
 
PDF
Vector
Joyjit Choudhury
 
PDF
Bcsl 033 data and file structures lab s3-3
Dr. Loganathan R
 
PPTX
logistic regression with python and R
Akhilesh Joshi
 
PPTX
simple linear regression
Akhilesh Joshi
 
PDF
2015.3.12 the root of lisp
Chung-Hsiang Ofa Hsueh
 
PDF
Implement a queue using two stacks.
Dr. Loganathan R
 
PPS
C programming session 03
Dushmanta Nath
 
PPTX
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
AAKASH KUMAR
 
PDF
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
The Statistical and Applied Mathematical Sciences Institute
 
DOCX
Lecture 21.07.2014
vishal choudhary
 
PDF
Activity Recognition Through Complex Event Processing: First Findings
Sylvain Hallé
 
PDF
Bcsl 033 data and file structures lab s5-3
Dr. Loganathan R
 
PPT
Removal Of Recursion
Richa Sharma
 
C programs Set 2
Koshy Geoji
 
16858 memory management2
Aanand Singh
 
A formalization of complex event stream processing
Sylvain Hallé
 
Runtime Monitoring of Stream Logic Formulae (Talk @ FPS 2015)
Sylvain Hallé
 
knn classification
Akhilesh Joshi
 
support vector regression
Akhilesh Joshi
 
multiple linear regression
Akhilesh Joshi
 
Bcsl 033 data and file structures lab s3-3
Dr. Loganathan R
 
logistic regression with python and R
Akhilesh Joshi
 
simple linear regression
Akhilesh Joshi
 
2015.3.12 the root of lisp
Chung-Hsiang Ofa Hsueh
 
Implement a queue using two stacks.
Dr. Loganathan R
 
C programming session 03
Dushmanta Nath
 
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
AAKASH KUMAR
 
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
The Statistical and Applied Mathematical Sciences Institute
 
Lecture 21.07.2014
vishal choudhary
 
Activity Recognition Through Complex Event Processing: First Findings
Sylvain Hallé
 
Bcsl 033 data and file structures lab s5-3
Dr. Loganathan R
 
Removal Of Recursion
Richa Sharma
 

Recently uploaded (20)

PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Dimensions of Societal Planning in Commonism
StefanMz
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Ad

Part II: 2-Dimensional Array file name: lab1part2.cpp (10 points) Write a C++ function, named DrawN(

  • 1. Part II:2-DimensionalArray file name:lab1part2.cpp (10 points) Write a C++ function, named DrawN(), that willreceive a two-dimensionalarrayofchars (size 10 x10) as a parameter and assignthe character 2-DimensionalArrayfile name:lab1part2.cpp Write a C++ function, named DrawN(), that willreceive a two-dimensionalarrayofchars (size 10 x 10) as a parameter and assignthe character 'N' to eachelement inthe first and last rows, and to eachelement inthe diagonalfromthe upper right to the lower left (as displayed below). Test your functioninmain().