You are part of a startup called ASCII-unlimited. You plan to dominate the market in character based graphics for gaming! Your team has identified a set of 13 fundamental operations that are likely to be useful for many of the games you ultimately produce. Accordingly, you are developing a library of C functions which implement these operations. For this assignment you will write these 13 functions. There are 11 functions operating on square dynamically allocated 2D arrays of characters and 2 operating on C strings. The table below lists the function prototypes and assigns each an estimated difficulty level on a scale of 1-3 (just for rough guidance -- you may or may not end up agreeing with the scores...) ESTIMATED DIFFICULTY (1-3). FUNCTION 1: less challenging 3: more challenging char ** alloc_square_mtx(int n); 1 void free_square_mtx (char **m, int n); 1 void pop_mtx_alpha(char **m, int n); 1 void display_mtx(char **m, int n); 1 void swap_rows (char **m, int rl, int r2, int n);
You are part of a startup called ASCII-unlimited. You plan to dominate the market in character based graphics for gaming! Your team has identified a set of 13 fundamental operations that are likely to be useful for many of the games you ultimately produce. Accordingly, you are developing a library of C functions which implement these operations. For this assignment you will write these 13 functions. There are 11 functions operating on square dynamically allocated 2D arrays of characters and 2 operating on C strings. The table below lists the function prototypes and assigns each an estimated difficulty level on a scale of 1-3 (just for rough guidance -- you may or may not end up agreeing with the scores...) ESTIMATED DIFFICULTY (1-3). FUNCTION 1: less challenging 3: more challenging char ** alloc_square_mtx(int n); 1 void free_square_mtx (char **m, int n); 1 void pop_mtx_alpha(char **m, int n); 1 void display_mtx(char **m, int n); 1 void swap_rows (char **m, int rl, int r2, int n);
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Solve first 3 functions please protoypes are in the header.

Transcribed Image Text:You are part of a startup called ASCII-unlimited. You plan to dominate the market in character
based graphics for gaming! Your team has identified a set of 13 fundamental operations that are likely to
be useful for many of the games you ultimately produce. Accordingly, you are developing a library of C
functions which implement these operations.
For this assignment you will write these 13 functions. There are 11 functions operating on square
dynamically allocated 2D arrays of characters and 2 operating on C strings.
The table below lists the function prototypes and assigns each an estimated difficulty level on a scale of
1-3 (just for rough guidance -- you may or may not end up agreeing with the scores...)
ESTIMATED DIFFICULTY
(1-3).
FUNCTION
1: less challenging
3: more challenging
char ** alloc_square_mtx(int n);
1
void free_square_mtx(char **m, int n);
1
void pop_mtx_alpha (char **m, int n);
1
void display_mtx(char **m, int n);
1
void swap_rows (char **m, int rl, int r2, int n);

Transcribed Image Text:/**
* Function: alloc_square_mtx
Description: Dynamically allocates a square nxn 2D
大
matrix of characters.
The individual matrix
elements need not be initialized.
The matrix is returned as a char **
Estimated Difficulty: LEVEL-1
*/
char ** alloc square_mtx(int n);
/**
* Function: free_square_mtx
Description:
deallocates all dyanamically allocated
大
オ
components of a matrix previously produced by
alloc_square_mtx.
大
大
* Estimated Difficulty:
* /
LEVEL-1
void free_square_mtx(char **m, int n);
/**
* Function: pop_mtx_alpha
* Description: populates square matrix of characters
with random, lower-case letters a..z
大
TIP: srand () and rand () might be handy
Estimated Difficulty: LEVEL-1
*/
void pop mtx alpha (char **m, int n);
/ **
* Function: display_mtx
* Description: prints given square matrix row-by-row (printing
a newline after each row).
大
大
* Estimated Difficulty: LEVEL-1
オ
* TIPS: putchar or the %c specifier in printf might be handy
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY