Quiz7

.docx

School

De Anza College *

*We aren’t endorsed by this school

Course

22

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

1

Uploaded by ConstableLapwingPerson1381

CptS 121 – Program Design and Development March 8, 2024 Your Name: ___________________________ TA’s Name: ___________________________ ID#: ___________________________ Section #: ___________________________ Take-Home Quiz 7 (15 pts) – Arrays and Strings Using Canvas https://canvas.wsu.edu/ , please submit your solution to the correct quiz folder. Your solution should be a .pdf file with the name <your last name>_quiz7.pdf and uploaded. To upload your solution, please navigate to your correct Canvas lab course space. Select the “Assignments” link in the main left menu bar. Navigate to the correct quiz submission folder. Click the “Start Assignment” button. Click the “Upload File” button. Choose the appropriate .pdf file with your solution. Finally, click the “Submit Assignment” button. 1. (5 pts) Define and describe a C string . 2. (10 pts) Write a function called reverse_matrix() , which accepts as parameters: a two-dimensional array of integers, the number of rows, and the number of columns in the array. Assume that the number of columns cannot exceed 100. The function iterates through each column and reverses the elements as shown below. The function does not directly return a value. For example, given the following 2D array: 6 1 7 4 2 7 5 2 3 8 9 9 1 1 5 1 2 3 4 5 The function will produce the following array: 1 2 3 4 5 9 9 1 1 5 7 5 2 3 8 6 1 7 4 2 Instructor: Andrew S. O’Fallon
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help