Design and develop a small or medium sized program

Assignment Help Data Structure & Algorithms
Reference no: EM13293664

Fun with Arrays, Strings, and Pointers II. Prerequisites: Before starting this programming assignment, participants should be able to:

* Access Microsoft Visual Studio 2012 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 2012 project. Within each project you must have at least one header file (.h) and two source files (.c). Before you turn in this assignment, be sure to place each project folder into a single 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 string is a palindrome. Before your program makes the palindrome determination, you must remove all punctuation characters from the string. Recall a palindrome is a sequence of characters that can be read the same way in either direction. "Madam I'm Adam!" is an example of a palindrome (recall punctuation is removed). Once again, you must develop your own program driver to illustrate that your program works. You may use any library functions you wish.

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.

Reference no: EM13293664

Questions Cloud

What device is used to extend the range of the dcvoltmeter : what device is used to extend the range of the DCvoltmeter and how is it connected to the basicmeter and what device is used to extend the range ofthe DC ammeter and how is it connected to thebasic meter
Public access to citizen''s private information : Discuss the advantages and disadvantages of public access to citizen's private information, both for the researchers and those who are being "investigated"
How will this transaction be recorded : At this time the printing company's financial disclosure statements are prepared, the client has not yet paid the bill for this service. How will this transaction be recorded?
Determine the current in the inductor : An inductor has an inductance of 0.015 H. The voltage across this inductor is 49 V, What is the current in the inductor
Design and develop a small or medium sized program : Write a C program that sorts strings into descending or ascending order (determined by the user of the program). develop your own program driver to illustrate that your program works. You may use any library functions you wish.
Evaluate the impact on human life : Evaluate the impact on human life of at least three different religions you have read so far. Be specific as you discuss how the particular religious tradition affects everyday life. Draw comparisons and contrasts between traditions as appropriate.
Find the maximum acceleration of harmonic oscillator : A simple harmonic oscillator with m=0.815 kg and total energy E=135 J has amplitude 1.35m,  Find the maximum acceleration
Why must a voltmeter be a high resistance instrument : why is it necessary that an ammeter be a low resistance instrument Why must a voltmeter be a high resistance instrument
Which of following is one of the way that such a transaction : One way Enron manipulated its financial statements was to sell assets at inflated prices to other firms, while giving a promise to buy back those assets at a later date. The incoming cash was recorded as revenue, but the promise to buy back the as..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Algorithm to divide sixteen digit value by six digit integer

Divide 16 digit value N by six digit integer D obtaining quotient Q and remainder (or sign of the remainder) R by division algorithms.

  Find capacity of a particular airplane type

Consider the entities and their attributes. You should 1st determine what entities want to track. Next determine what attributes are required for each entity, and what relations exist between these entities.

  Question about designing a database

As we start designing a database for implementation should we use the latest and greatest technology? Does the user need a flat-file or object-oriented database?

  Write the code to implement the method

The "linked list" has a integer "position". In an array, the position is very easy to implement as it is related to the "index" of the array. In the "linked list", the position is much more difficult.

  Creating an object oriented data model

Create an object oriented data model, including all appropriate notations, to represent the given situation. In a particular region there are a number of gardens.

  Algorithm to decide flavor of ice cream

A group of ten people need to decide which one flavor of ice cream they will all order, out of three options. The algorithm can question and re-question the participants, and present the answers to the participants.

  Dbms and data mining to imporve customer service

Discuss how a database management system and data mining can help motor vehicle maintenance center improve its services, and what tables would be required in such a database.

  Data speed effect on fundamental business decisions

Can the speed in which data is transmitted have an adverse effect on fundamental business decisions? Yes, speed that is traveling at big rates of speed can have an affect on fundamental business decisions.

  Write computer program to implement this algorithm

Write computer program to implement this algorithm and demonstrate the results and what is the machine run time in second for sorting array A?

  Create and implement dynamic programming algorithm

Create and implement such dynamic programming algorithm and examine it. You are not sure if CEO must get invited to party, but you suspect that you might get fired if he is not.

  Identify data structures to organize typical file cabinet

Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program?

  Comparison of the applicability of array

Data structures include: 1. a linked list, 2. an ordered, one dimensional array, and three. a binary tree. Assume the list of letters R, A, N, B, C, F, X and G are stored in a list.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd