ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 23 May 2017 My Price 8.00

use malloc

Hi

this is C programming

Write a program that allows users to input an integer for the size of an array. ( use malloc() ) Randomly generate an integer for each element of the array. Next, create function to rotate the array . Rotation of the array means that each element is shifted right or left by one index, and the last element of the array is also moved to the first place.

For example:

            Enter the number of slots needs in the array: 8

            This is element of your array: 91 57 18 96 16 49 31 83

            Which direction to shift R/L : R

            How many times: 2

            This is element of your array: 31 83 91 57 18 96 16 49

For example:

            Enter the number of slots needs in the array: 3

            This is element of your array: 31 83 91

            Which direction to shift R/L : L

            How many times: 2

            This is element of your array: 91 31 83

thx an advance

Answers

(11)
Status NEW Posted 23 May 2017 06:05 AM My Price 8.00

-----------

Not Rated(0)