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

PPTX
Lecture 1 mte 407
PPTX
Lecture 1 mte 407
PPTX
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
PPTX
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
PDF
Matlab integration
PDF
Java -lec-5
PDF
SupportVectorRegression
DOCX
two dimensional array
Lecture 1 mte 407
Lecture 1 mte 407
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
Matlab integration
Java -lec-5
SupportVectorRegression
two dimensional array

What's hot (20)

PDF
C programs Set 2
PPT
16858 memory management2
PDF
A formalization of complex event stream processing
PDF
Runtime Monitoring of Stream Logic Formulae (Talk @ FPS 2015)
PPTX
knn classification
PPTX
support vector regression
PPTX
multiple linear regression
PDF
PDF
Bcsl 033 data and file structures lab s3-3
PPTX
logistic regression with python and R
PPTX
simple linear regression
PDF
2015.3.12 the root of lisp
PDF
Implement a queue using two stacks.
PPS
C programming session 03
PPTX
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
PDF
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
DOCX
Lecture 21.07.2014
PDF
Activity Recognition Through Complex Event Processing: First Findings
PDF
Bcsl 033 data and file structures lab s5-3
PPT
Removal Of Recursion
C programs Set 2
16858 memory management2
A formalization of complex event stream processing
Runtime Monitoring of Stream Logic Formulae (Talk @ FPS 2015)
knn classification
support vector regression
multiple linear regression
Bcsl 033 data and file structures lab s3-3
logistic regression with python and R
simple linear regression
2015.3.12 the root of lisp
Implement a queue using two stacks.
C programming session 03
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
Lecture 21.07.2014
Activity Recognition Through Complex Event Processing: First Findings
Bcsl 033 data and file structures lab s5-3
Removal Of Recursion
Ad

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Complications of Minimal Access Surgery at WLH
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Lesson notes of climatology university.
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
master seminar digital applications in india
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Yogi Goddess Pres Conference Studio Updates
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
2.FourierTransform-ShortQuestionswithAnswers.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Structure & Organelles in detailed.
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Orientation - ARALprogram of Deped to the Parents.pptx
Microbial diseases, their pathogenesis and prophylaxis
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharma ospi slides which help in ospi learning
Complications of Minimal Access Surgery at WLH
Anesthesia in Laparoscopic Surgery in India
Lesson notes of climatology university.
Microbial disease of the cardiovascular and lymphatic systems
Pharmacology of Heart Failure /Pharmacotherapy of CHF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
master seminar digital applications in india
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Abdominal Access Techniques with Prof. Dr. R K Mishra
Yogi Goddess Pres Conference Studio Updates
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().