Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program to define two-dimensional array A[row][col] of integers. Ask the user to enter the number of rows and columns. Read in the

image text in transcribed
image text in transcribed
image text in transcribed
Write a C program to define two-dimensional array A[row][col] of integers. Ask the user to enter the number of rows and columns. Read in the elements of the array, then replace the even numbers in the array with Os and the odd numbers with Is. Output Example Enter the number of rows: 2 Enter the number of columns: 3 Enter the elements of the array: 7 6 9 4 2 3 The array after replacement: 101 001 Write a function called IsPrime() that prints the prime numbers from 1 to N. Call the function IsPrime() from main(). I Output Example Enter N: 20 The prime numbers from 1 to 20 are: 3 5 7 11 13 17 19 Write a function CountDigit() which receives a char array of size 20 from main. This function counts the number of digits in the char array, and returns the count (of type int) to main(). Output Example Enter 20 character: e 3 gnjt 5 a 1cmw 9 d 6 s a 0 g p Number of digits: 5 Rubrics 1 point(s) - Correct implementation of scanf. 3 point(s) - Correct implementation of function. 2 point(s) - Correct implementation of if. 1 point(s) - Correct implementation of array. . 1 point(s) - Correct implementation of loop. 1 point(s) - Correct output. 1 point(s) - No syntax errors

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago