Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

copy and paste the c code given below Program Description: Given a 20 character array, called scrambled, filled with ad hoc characters, this program uses

copy and paste the c code given below
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Program Description: Given a 20 character array, called "scrambled", filled with ad hoc characters, this program uses the Crow, coll pair values stored in the 2D integer array, called "key", to retrieve characters fron the scrambled" array. The retrieved individual characters are concatenated, left to right, and in the order that they are retrieved, to for the complete decoded message. The message is then output. * #include #include #include GLOBAL MACRO DEFINITIONS le "10" #define NUL #define SNUL #define cBlank #define Blank #define CUScore #define SUScore // NULL character // NULL String // Blank character HBlank String // Underscore character 7/ Underscore string 7/ Define machine independent TRUE and FALSE values #ifdef TRUE wundef TRUE #undef FALSE endir #define TRUE (11) #define FALSE (0-1) w Statement Function Definitions 17 #define F_MINV1, V2) (((vi) (2)) ? (vi): (v2)) #define 2F MIN(V1, V2) (F_MAXCO, (F MIN((v1), (2) >>>> #define ZF (V) (F.MAX(, (v))) #define F_NOT(V) ((() == TRUE) FALSE:TRUE) #define FABS() ((() > 0) (y) :( (v))) Statement Function Definitions // Return the less of vand v2 // Return the Breater of v1 and 2 // Like F. MIN, but lower bounds the result at ZERO V lower bounds the value "v" at ZERO // Logical Negation // Absolute value GLOBAL CONSTANTS #define MAX NUM ROWS // Max. number of rows. #define MAX NUM_COLS 6 // Max number of columns #define MAX KEYPAERS 15 W/ Max number of frow, col) kay pairs 11...5, 1...6), not [0...4, 0.5]!!! int key[MAX_KEY PATRS][2] = {{3,5), (5,2) (4,1), )) // Fill these spaces with right numbers (1,3) ). // Fill these spaces with right numbers (5,4), (5,5), 1). // Fill these spaces with right numbers (3,2) I (2,4), 1.) I Fill these spaces with right numbers (4,1) C) // Fill these spaces with right numbers {1,6) );

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

=+ e. What problem does your answer to part (d) illustrate?

Answered: 1 week ago