Chat with us, powered by LiveChat C Programming, assignment help | WriteDemy

Learner Objectives:

At the conclusion of this programming assignment, participants should be able to:

  Analyze a basic set of requirements for a problem

  Compose C language programs

  Compile a program using Microsoft Visual Studio 2015

  Execute a program

  Create basic test cases for a program

  Apply arrays, strings, and pointers

  Summarize differences between array notation and pointer notation

  Apply pointer arithmetic

  Apply basic string handling library functions

II. Prerequisites:

Before starting this programming assignment, participants should be able to:

  Access Microsoft Visual Studio 2015 Integrated Development Environment (IDE)

  Design and develop a small or medium sized program in any language

  Apply sequential, conditional, and iterative constructs

  Design and implement user-defined functions

III. Overview & Requirements:

For each of the following problems create a separate Microsoft VS 2015 project, but within the same solution! Within each project you must have at least one header file (.h) and two source files (.c). However, I highly encourage you to separate your test driver code from your application/library code, which would require at least two more files (one .h and one .c). Before you turn in this assignment, be sure to place each project folder into a single _pa1 folder.

1.  Write a C program that sorts strings into descending or ascending order (determined by the user of the program). For this program you must declare an array of pointers to the strings, and perform the sorting without using strcpy ( ). Hence, you must manipulate the pointers to the strings only! Below is a pseudocode algorithm for bubble sort:

1.  get values for n and the n list items (n represents the number of records in the file, list is an array of records)

2.  set the marker U for the unsorted section at the end of the list (U is an integer index value)

3.  while the unsorted section has more than one element do steps 4 through 8

4.  set the current element marker C at the second element of the list (C is an integer index value)

  5.  while C has not passed U do steps 6 and 7

  6.  if the item at position C is less than the item to its left then exchange these two items

  7.  move C to the right one position

  8.  move U left one position

  9.  stop

You must develop your own program driver to illustrate that your sorting algorithm works!

2. Write a C program that recursively determines if a path exists in a maze. You must also write a function that accepts an 8 by 8 array of characters that represents a maze. Each position can contain either an X or a blank. Starting at position (0, 1), list any path through the maze to get to location (7, 7). Only horizontal and vertical moves are allowed. If no path exists, write a message indicating there is no path. Moves can be made only to locations that contain a blank. If an X is encountered, that path is blocked and another must be chosen. –-Source Hanly & Koffman, Problem Solving and Program Design in C.

3. Write a C program that encrypts and decrypts strings using the Caesar Shift Cipher. The shift value must be an integer, but may be positive or negative. If the shift value is 4, then an ‘A’ becomes ‘E’. If the shift value is -4, then ‘A’ becomes ‘W’. Note, the plaintext messages are encrypted using alphabetic characters only. Also, all characters in the messages must first be converted to uppercase before encrypting or decrypting them. Develop your own program driver to illustrate that your program works. You may use any library functions you wish.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order