Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c# using printf and scanf prepare program for c Exercise 1 Graphing Array Elements values with Histogram Exercise Obiectives Declaring and initializing 1-D arrays Applying

image text in transcribed
image text in transcribed
c# using printf and scanf
prepare program for c
Exercise 1 Graphing Array Elements values with Histogram Exercise Obiectives Declaring and initializing 1-D arrays Applying random number generation Applying random number generation Call by reference Problem Description Write and run a C program that reads numbers from an array and graphs these numbers in the form of a bar chart or "Histogram". O 0 The program performs the following: Creates one array named Value of 10 elements. Define and implement a function named FillArray that receives two parameters: an array a of intgers and its size n. FillArray Fills the array Value with random numbers in the range 1 to 20. Take into account to randomize the generated random values for each execution of the program. Define and implement a function named printArray that receives two parameters: an array a of integers and its size n. printArray Prints each number in the value array, then prints a bar consisting of that many asterisks (*) beside the number. Define and implement a function named SortArray that receives two parameters: an array a of integers and its size n. and sort the array in descending order. Define and implement a function named SearchArray that receives three parameters: an array a of integers, its size n and the Key and print exist" if the key available, Otherwise "not exit" The output should be as follow: Histogram Sample Output Element Value 0 10 1 3 2 15 7 4 11 9 13 5 8 17 9 1 COVO

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions