The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Can someone please help me with compsci. We are using Unix for this homework. For this assignment, you will write a C program that uses its first command line parameter to compute and display a histogram of characters that occur in it.
CS240 Intro Engineering ProgrammingProgramming Assignment #11Due Monday, May 2ndTopics:Arrays in C.For this assignment, you will write a C program that uses its first command line parameter to computeand display a histogram of characters that occur in it.Requirements:Your program must compile and run correctly using thegcccompiler onale.You must write the corresponding functiondefinitionsfor the following functionprototypes:// set all elements of the histogram to zerovoid init_histogram(int histo[]);// construct the histogram from stringvoid cons_histogram(char string[], int histo[]);// display the histogram to the screen in a “nice” formatvoid display_histogram(int histo[]);Your functions must work with the following program:#include <stdlib.h>#include <stdio.h>#define MAX_CHAR 255 // largest ASCII(Extended) value for characterstypedef unsigned char byte; // may be useful for casting(s)void init_histogram(int histo[]);void cons_histogram(char string[], int histo[]);void display_histogram(int histo[]);
Attachments:
-----------