5903 Intro Scientific Prog:
Parsing Input: Specification
- Reads the following from standard in: an integer n (which is less than 100) and then a list of n floating point values.
- The input values need to be stored in a vector.
- Make sure that the code compiles with a standard boring makefile and
that you comply with all the assignment requirements including the
makefile and readme rules.
- The output should be to standard out with the following
format where each line is a new line, the colums are provided by
tabs, the double quotes indicate string literals, the #i value loops to
produce the #n inputs and their cosines, and the numerical values
(indicated by the #) are returned alligned and showing six decimal
places.
"i" |
"x_i" |
"Ccos(x_i)" |
#i |
#x_i |
cosine(#x_i) |