Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a new source file with the following convention:k7006.c (name of program)

ID: 3613401 • Letter: C

Question

Create a new source file with the following convention:k7006.c (name of program). Copy the following prototypes and themain function in your program:                            /* function prototypes */              void plot (void);              void pattern (void);              void invest (float);               intmain (void) {              // plot ( );              // pattern ( );              // invest (1000);            }        Also, implement theplot ( ) function as follows: read the input datauntil end-of-file signal and       display the stock valuesgraphically instead of just printing the values. Round the stockprice down       to the nearest integer, andprint that number of *'s. For example, forstock15.txt the output is:        **********************        ***********************         ************************        ************************        ...and to test yourimplementation, uncomment plot ( ) function callmain, compile k7006.c         into k7006 and runit as follows:         k7006 <stock15.txt Create a new source file with the following convention:k7006.c (name of program). Copy the following prototypes and themain function in your program:                            /* function prototypes */              void plot (void);              void pattern (void);              void invest (float);               intmain (void) {              // plot ( );              // pattern ( );              // invest (1000);            }        Also, implement theplot ( ) function as follows: read the input datauntil end-of-file signal and       display the stock valuesgraphically instead of just printing the values. Round the stockprice down       to the nearest integer, andprint that number of *'s. For example, forstock15.txt the output is:        **********************        ***********************         ************************        ************************        ...and to test yourimplementation, uncomment plot ( ) function callmain, compile k7006.c         into k7006 and runit as follows:         k7006 <stock15.txt

Explanation / Answer

please rate - thanks in the future please provide a sample of the data thanks #include #include                                      /* function prototypes */ void plot (void); //void pattern (void); //void invest (float); int main (void) { plot ( ); // pattern ( ); // invest (1000); getch(); return 0; } void plot(void) {FILE *file; int i; float value; while(scanf("%f",&value)!=EOF)     {for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote