Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you tell me where to find these questions on which website toptructions: Return the Read each que como In case of any amoun you

image text in transcribed

can you tell me where to find these questions on which website

toptructions: Return the Read each que como In case of any amoun you may not contradictory at in the son Do not write anything on the questo pay Please manage your time as normes Total Point 20 pts Question 1: Write a program that ask user to input characters the press "ESC Key The program will declare a character array of 10 length when the program starts user keep entering the characters then the array will be extended with 10 more characters in the memory resulting the array to be increased from 10 to 20 characters in length. The will continuo till the user presses the "Esc key. At the end of the program print tot number of characters input including, small, capital and special symbols Question 2: You have a matrix S consisting of N rows and M columns. Let u be the maximum element of the matrix and v be the smallest element of the matre any element whose value is equal to u or v are called unsafe elements and they disfigure the complete row and column of the matrix. More formally, it any element is equal to u or v and contains cell number (x, y), that is, S[ xlyl-u or StxLyv are unsafe so that they also disfigure all the cells that have row x or columny and also are unsafe Your task is to find the number of safe elements Explanation: Ask the user to input the size of a 2D array and populate the array with random values between 10 and 50 It is clear that max element in the matrix XXXX 2012 23 44 is 49 and minimum is 11. Since the cell XXXX number of 49 is (3. 2) all the cells which XXXX have row three and column w be XXXX unsafe 29 33 1731 The minimum element of the matrix is 11 XXXX 43 49 34 28 so cell number is (4. 3) so all the cells XXXX which have column number 3 and row xxxx number 4 will also be under attack XXXX 35 14 11 16 So the safe elements are 44 and 31: Page 1

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions