Question: c++ DEA 1.02.20 Closed Assignment Write a program that reads a 2D array of chars, checks, and corrects each char within this array, and print
DEA 1.02.20 Closed Assignment 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. First the program will read the row count (rowCount) 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 be 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 a digit value. If the row index is an odd number, a char can only be an uppercase 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. 66 Max. sca 44 AFDHG OCODES 25 7927 AbcX Input GYT9a 1912 n Kg451K SYSTEM D6F8 Cdbp kkllmx SHOCK? . 7927 *CODE ATX *9 **451 Output 68 SYSTEM >> Collapse SHOCK DEADLI 1.02.2021 Closed after ASSESSM Max. score Assignment Write a program that reads a 20 array of chars. checks, and corrects each char within this array, and print out the corrected 2D array. First the program will read the row count (rowCount) 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 be 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 a digit value. . if the row index is an odd number, a char can only be an uppercase 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. 66 44 7927 AFDHG OCODES 25 GYT 9 a Input Abcx D6F8 K8451K SYSTEM 1912 Cdbp k kilm X SHOCK? ..... 7927 CODE AX Output SYSTEM SHOCK An assignment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
