Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =====================
- = Make That Table! =
- =====================
- CHALLENGE:
- Using any programming language, write a program that takes the following INPUT and converts it into a valid table OUTPUT.
- Input represents any table, space-delimited. The first line is the table header, and the second line is the table secondary header.
- Output must be based on the input. Display statements of the final result without any steps to get to the final results will be disqualified.
- SPECIFICS:
- * Everything is right-justified and well spaced. A human can easily distinguish the columns.
- * Assume that there will always be a header (first line) and a sub-header (second line).
- * You can safely assume that every value cell (third line and down) will be filled.
- * There will always be rows of data, but consider only using the first few, since the actual
- data could be thousands of lines long.
- * As for output, the table I made was just a quickly done table to show how it could look like.
- The main goal of this challenge is to show that you are able to map the header and subheader
- to the column data below. Therefore, the output needs to show that you are successful in doing so.
- A simple table will do, or even a CSV that can easily be imported to Excel.
- =======================================================================
- = INPUT: =
- =======================================================================
- Hoooligans! Party Animals Count Alpha_Delta Rounded First
- Second Third
- 1234 12.4562294932 12.4958 193583.149592983 28592 2948502.5
- 39502050 104.682950380298 193.499499 19384885444.2223 1234567 123592
- =======================================================================
- = OUTPUT: =
- =======================================================================
- Hoooligans! | Party Animals Count | Alpha_Delta | Rounded | First |
- ===============================================================================================
- | | | | Second | Third
- -----------------------------------------------------------------------------------------------
- 1234 | 12.4562294932 | 12.4958 | 193583.149592983 | 28592 | 2948502.5
- 39502050 | 104.682950380298 | 193.499499 | 19384885444.2223 | 1234567 | 123592
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement