[Solved] CSE240-Homework 4- Pointer Operations

$25

File Name: CSE240-Homework_4-_Pointer_Operations.zip
File Size: 348.54 KB

SKU: [Solved] CSE240-Homework 4- Pointer Operations 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 pointers to access strings 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.
  • written a program using pointers to access a variety of other data structures.

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

  1. You are given a C file hw04q1.c which contains a partially completed program. Follow the instructions contained in comments and complete the required functions. You will be rewriting four functions from HW03 (initializeStrings, printStrings, encryptStrings, decryptStrings) using only pointer operations instead of using array operations. In addition to this, you will be writing two new functions (printReversedString, isValidPassword). You should not be using any array operations in any of functions for this assignment. You may use only the strlen() function from string.h library. You can find out more about these functions by reading through the instructions in the hw04q1.c file. Example output is given below.

Grading of Programming Assignment

The TA will grade your program following these steps:

  • Compile the code. If it does not compile, 20% of the points given will be deducted. For example, if there are 20 points possible, you will earn 16 points if the program fails to compile.
  • The TA will read your program and give points based on the points allocated to each component, the readability of your code (organization of the code and comments), logic, inclusion of the required functions, and correctness of the implementations of each function.

Reviews

There are no reviews yet.

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

Shopping Cart
[Solved] CSE240-Homework 4- Pointer Operations
$25