COMP3022 I/O Lab

$30.00

Download Details:

  • Name: lab-5-yk3jb3.zip
  • Type: zip
  • Size: 4.31 KB

Category:

Description

Rate this product

Purpose
To practice the advanced input and output concepts discussed in this module.
Specifically, reading from and writing to local files, and formatting output.

## Instructions
Read in file input.csv and generate a cleanly formatted table in output.txt.
See the samples below.

### input.csv
“`
name,ID,salary,years experience
foo,1,13890,12
bar,2,2342,3
baz,3,99999,24
“`

### output.txt
“`
Name | ID | Salary | Years experience
—–+—-+——–+—————–
Foo | 1 | 13890 | 12
Bar | 2 | 2342 | 3
Baz | 3 | 99999 | 24
“`