Question: Submit the source code (y our filename.c file) electronically through the Oncourse and on paper as a hard copy. Include copy of the results as

 Submit the source code (y our filename.c file) electronically through theOncourse and on paper as a hard copy. Include copy of theresults as comment lines in the completed program. A source code mustbe in a file name c format. No other formats will be

Submit the source code (y our filename.c file) electronically through the Oncourse and on paper as a hard copy. Include copy of the results as comment lines in the completed program. A source code must be in a file name c format. No other formats will be accepted. Phase I-General Preprocessing items Use mnemonic variables of 3 characters or more. Use void main (void) or void main in your program and leave off the return 0. Use double as the choice for all floating point values. Add heading items using as printf statement. Watch for instructions that specify a symbolic constant and assign that symbolic constant in all capital letters and using the #define. Thank you. The xxxx" or the "(highlighted item) in a sample output will show examples of locations that the computer program will transfer values. Phase II General procedures. A line of information in the program should be no longer than 80 characters. All user defined function problems should include the student's last name as part oftheir function name. All user-defined function ritten for the class must have a prototype. The user-defined functions will be located in the program after the main program. Only use local variables in the programs, no global variables. Phase III Array names will include the student's lastname as part of the array name. Example Smith countarrayl35l; Pointers should only be used when specified as a mandatory part of the problem. Problem -Write a program that searches the array of up to 21 data values, in the range of 10-70 using a linear search. The array is filled with random numbers. A symbolic Constant should be used to establish the array size of 21. The "main" program will be used to print the heading and for declaration and to call user defined functions The main only calls functions and functions do all the work for this problem The UDFi is called from the main and will ask the user for a seed value from (1-10) to generate up to 21 random numbers in the range of 10 70. The numbers are used to fill the array. No check is needed for the (1-10) The UDF 2 is called from the main and will print the array of 21 random numbers in the range of 10-70 to the screen (console) with 7 numbers to a line. The UDF 3 is called from the main and will ask the user for a search key. The search key will be used in that same function to look for and identify the position of the key value in the array. This same function will print to a text file (data file), the value and the position or positions of the found value or print a message stating the value and that the values was not found The rules for the out file: The data file must have the student's lastn eyword included in the filename. The data file should have the extension .trt. The cprogram should print a start to the data file with name and date'. The cprogram file must open the datafile with a statement. The program should print an "end to the data file with name and date The cprogram file must close the datafile with a statement. Please see the sample files. Students will upload a filename-c file that has a copy of the console in and a copy of the text file output, and put upload a text file that has a copy of the output. Students will print and turn in a filename.c file that has a copy of the console input and a copy of the text file output, and print and turn in a copy of the text file that has a copy of the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!