Function that shifts the stored value of five character

Assignment Help C/C++ Programming
Reference no: EM13939051

Please help with the following problem.

This needs to be in "C"

Write a function that shifts the stored value of five character variables in a circular fashion. Your function should work in the following way. Suspose that C1, C2, C3, C4, C5 are variables of type char, and suspose that the values of these variables are 'A', 'B', 'C', 'D', 'E', respectively.

The function call shift(&c1,&c2,&c3,&c4,&c5) should cause the variables C1, C2, C3, C4, C5 to have the values 'B', 'C', 'D', 'E', 'A', respectively.

The function definition starts as follows:

void shift(char *p1, char *p2, char *p3, char *p4, char *p5)
{

Test the function by calling it five times and printing out, in turn, BCDEA, CDEAB, DEABC, EABCD, and ABCDE.

****This needs to be in "C"*****

Reference no: EM13939051

Questions Cloud

What could be possible explanation for psychosomatic illness : What could be a possible explanation for psychosomatic illness? What anatomical structures and functions could help explain this phenomena? Be specific.
Determine the desired postadjustment balance in allowance : Determine the desired postadjustment balance in allowance for doubtful accounts. If the balance in allowance for doubtful accounts before the $8,900 write-off was a debit of $450, compute bad debt expense.
Why is sympathetic and parasympathetic attached to pacemaker : If the pacemaker of the heart generates it's own beat, why is the sympathetic and parasympathetic attached to the pacemaker? How and why would the sympathetic and parasympathetic responses be called upon? What regulates this mechanism? Be very spe..
Understanding of international trade theory : Demonstrate an understanding of international trade theory, counter trad and international financial markets
Function that shifts the stored value of five character : Write a function that shifts the stored value of five character variables in a circular fashion. Your function should work in the following way. Suspose that C1, C2, C3, C4, C5 are variables of type char, and suspose that the values of these varia..
How would supplements be administered and why : A patient was experiencing stomach problems and was starting to show signs of vitamin deficiencies. Which vitamin would be most affected with a stomach pathology and why? How would supplements be administered and why?
Support the operation of the buildings and sites : Overview of the items which support the operation of the building(s) and sites - Sustainable building and site designs are transforming civil engineering industry significantly in the past decade. This project will give each group an opportunity to..
Z scores and the area under the normal curve : Find the proportion of observations (area under the curve) from a standard normal distribution that satisfies each of the following statements:
How many gallons of direct materials should be purchased : How many gallons of direct materials should be purchased during the three months ending March 31?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write and test a c function named flow that returns both

fluid following in a pipe flows in a smooth pattern knows as laminar flow or a turbulent pattern know as turbulent

  Features with the real life scenarios

Explain any three features that must be implemented by the application that will be created by WebSoft Solutions Pvt. Ltd. Support your answer with suitable examples. Relate the features with the real life scenarios

  Implement the basic properties of a bank account

Define the class bankAccount to implement the basic properties of a bank account. An object of this class should store the following data:

  Test a program that prompts for the user

Write and test a program that prompts for the user to input a file name and uses two functions head() and tail() - head() displays the first 10 lines of a file

  Snoopy cache systems and directory based systems

Illustrate how Snoopy Cache Systems and Directory Based Systems operate in the following scenario: Handraw the statuses of the three steps corresponding to the scenario for each system.

  Calculate the total number of days

Worker A can do a job in 15 days while worker B can do the same job in 20 days. Write a program to calculate the total number of days required to finish the work if both the workers work simultaneously.

  Waiting time is the diff b/w the arrival time and simulation

The Server removes a customer from the queue then generates a random number between 1 and 5 to simulate a transaction type i.e. Open a checking account etc.

  Dealerships are awarded the rebate

Dealerships are awarded the rebate on a quarter-by-quarter basis, only for quarters where their actual sales exceeded expected volumes for that quarter. Expected sales volumes for each quarter are as follows:

  Question 1the figure given is an example of select onea

question 1the figure given is an example of select onea. class adapter pattern b. observer pattern c. composite

  Create an array of customer names

In preparation for more complex data processing tasks using object-oriented objects that you will create in up-coming units, in this unit you will utilize arrays to build some basic processing logic and structures.

  Develop a c++ program to solve the problem

If an attempted debit transaction cannot be completed successfully (because there is not enough cash available), an error message should be displayed instead.

  Overflow in a traditional data type

Wrap around and continue the cancellation until only one element remains. As the Fibonacci number will overflow in a traditional data type, take modulus of the number with 1000000007.

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