COMP 3022 LAB 5 SOLVED

$35.00

Category: You will receive a download link of the .ZIP file upon Payment

Description

5/5 - (1 vote)

# I/O Lab

## 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
“`