Question: CS 1050 Lab Assignment 10 Fall 2018 FAILURE TO RETURN THIS DOCUMENT TO THE TA WILL RESULT IN A ZERO GRADE FOR THE LAB** Purpose:

 CS 1050 Lab Assignment 10 Fall 2018 FAILURE TO RETURN THIS
DOCUMENT TO THE TA WILL RESULT IN A ZERO GRADE FOR THE
LAB** Purpose: 1. Use pointers and pointer notation/arithmetic in implementation only 2.

CS 1050 Lab Assignment 10 Fall 2018 FAILURE TO RETURN THIS DOCUMENT TO THE TA WILL RESULT IN A ZERO GRADE FOR THE LAB** Purpose: 1. Use pointers and pointer notation/arithmetic in implementation only 2. Use functions from relevant libraries for the lab Submission information: Submit this assignment by following the instructions given by your TA. SUBMIT ONLY the .c file (no a.out or executable file is required). All the lab assignments must be submitted before the end of the lab using the lab code given by the TA. Use the following submit command Filename must be: sectionletter-lab 10.c (Include your respective lab section) eg. h-lab10.c S submit cassignment> $ submit CS1050 LAB 10 h-lab10.c Note 1. Use of arrays is not allowed for the lab assignment instead start with an integer pointer and use malloc function to allocate only the required amount of memory. Use POINTER NOTATION AND POINTER ARITHMETIC only to implement the assignment 2. Description The lab 10 is on malloc and strings Implement the following functions for the lab assignment. int main0: Declares a new string (char pointer), then calls getString and prints the string with the size out. Then, main generates a random number between 1-25, and uses it to call cipherString, printing out the ciphered string. After which, it prompts the user to enter in how much the string was shifted, and uses cipherString with the negative user shift and prints out that string (the original string shifted right by the random number then shifted left by the user input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!