User Tools

Site Tools


c_puzzles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
c_puzzles [2015/03/09 11:01]
viennastar
c_puzzles [2015/03/09 11:10]
viennastar
Line 5: Line 5:
 ==== Puzzle A ==== ==== Puzzle A ====
  
-Write a C program that uses a function to populate a dynamic one-dimensional array with random floating-point numbers. Allocate the array in the main method, and forward it to the function. Print the content of the array to the terminal in the main method after the function call. Implement the main method and the function in different source files. Use a dedicated header file to provide the function declaration. Provide a Makefile to build and to clean the program. Implement reasonable default values ​so that no additional user interaction is required ​to successfully execute ​the program. Document your code.+Write a C program that uses a function to populate a dynamic one-dimensional array with random floating-point numbers. Allocate the array in the main method, and forward it to the function. Print the content of the array to the terminal in the main method after the function call. Implement the main method and the function in different source files. Use a dedicated header file to provide the function declaration. Provide a Makefile to build and to clean the program. Implement reasonable default values ​where required. The size of the data set should be a command-line parameter. Document your code.
  
 **Expected Submission files:** 2 source files, 1 header filer, 1 Makefile **Expected Submission files:** 2 source files, 1 header filer, 1 Makefile
c_puzzles.txt ยท Last modified: 2015/03/09 11:10 by viennastar