[Solved] CSE240-Homework 3- 2D Arrays

$25

File Name: CSE240-Homework_3-_2D_Arrays.zip
File Size: 263.76 KB

SKU: [Solved] CSE240-Homework 3- 2D Arrays Category: Tag:
5/5 - (1 vote)

Introduction

The aim of this assignment is to make sure that you understand and are familiar with the concepts covered in the lectures, including basic C syntax, using the strings, arrays, and multidimensional arrays. By the end of the assignment, you should have

  • understood the concepts of data, data declaration, forward declaration, and manipulation of values stored in the memory.
  • reviewed the array operations that you have learned in your previous programming classes;
  • written a program using multidimensional arrays in C.

Note: Do not use pointer in this assignment. Pointer assignment will be given in the next homework.

Reading: Textbook Chapter 2, sections 2.1, 2.2, 2.3, and 2.4, and lecture slides covered .

Exercising: Complete the multiple choice questions in Textbook Section 2.12. The answers of the questions are available in course Web page.

You are expected to do the majority of the assignment outside the class meetings. Should you need assistance, or have questions about the assignment, please contact the instructor or the TA during their office hours.

You are encouraged to ask and answer questions on the course discussion board. However, in do not share your answers or code in the course discussion board. Do not cooperate with your peers in doing the individual assignments. Programming Assignment

For this assignment, you can use ASU General GNU GCC environment or Visual Studio. Please specify the environment that you use at the beginning of your program:

// State the IDE that you use: Visual Studio or GCC

If you use any other environment, please test it either using GCC or visual Studio before submission. If you do not specify the environment, the grader will use either GCC or Visual Studio, but not both. If you program does not compile or execute correctly, your grade will be deducted.

GCC command to compile this program: gcc hw03q1.c -std=c99 -o output

  1. You are given an hw03q1.c file, which contains a partially completed program. You are to follow the instructions contained in comments and complete the required functions. You will be writing functions for a program, which accepts four strings and an integer key as input from the user. The program will then use the integer key to encrypt the input strings (adding the key to each character in the string and a swapping function), decrypt the strings and then print the strings. There is also a matrix operation of determinant which uses 2D integer array. Example output given below.

Note, when you create the Visual Studio project, the default location of project is similar to the file path shown in example figure above. For your convenience, if you wish you may change the project location while creating the project at the beginning.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE240-Homework 3- 2D Arrays
$25