Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the program in c++ Write a program that reads a 2D array of chars, checks, and corrects each char within this array, and print

write the program in c++
image text in transcribed
image text in transcribed
Write a program that reads a 2D array of chars, checks, and corrects each char within this array, and print out the corrected 2D array, Fist the program will read the row count crowCount) and column count (columnCount) of the 2D array, both as int values. Then the chars constituting the 2D array will be read on a row-by-row basis. After reading the 2D array, the program will check and correct each char within the 2D array according to the rules below. This process MUST done by using a void function by sending the appropriate cell of the 2D array with a call-by-reference fashion If the row index is an even number, a char can only be an uppercase English letter. . If the row index is an odd number, a char can only be a lowercase English letter Any incorrect value MUST be changed into Finally, the checked and corrected 2D array will be printed out to the screen. NOTE: Checking the correctness of a char and correcting it (if necessary) MUST be done in the function with a call-by reference fashion to the relevant cell of the 2D array. Every other functionality MUST be done in the main function. Example 10 56 dig 13 25 ABC -AK77 Input Abc a HELLO 1912 DEF 69.JK 9?? x y + 33 GYT9 --- letter Any incorrect value MUST be changed into Finally, the checked and corrected 2D array will be printed out to the screen. NOTE: Checking the correctness of a char and correcting it (if necessary) MUST be done in the function with a call-by-reference fa relevant cell of the 2D array. Every other functionality MUST be done in the main function. Example 1/0 56 33 25 ABC dfg13* - KJ 77 a HELLO Input Abc GYT9 a 1912 n DEF 69.JK 9 ?? x y k ABC GYT.. -bc -HELLO Output ja..n DEF Answer assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions