Write a program that will open the file dataFile.csv Download dataFile.csv, read its contents and print them out.  Your output should look like this: First       Last              Age         Wage jane        Smith          21.00     21.50 Jack       Jones           20.00    19.50 Edgar    Martinez   22.00     22.75 Zanab   Sayegh        21.00     21.75

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

python:

Write a program that will open the file dataFile.csv Download dataFile.csv, read its contents and print them out.  Your output should look like this:

First       Last              Age         Wage
jane        Smith          21.00     21.50
Jack       Jones           20.00    19.50
Edgar    Martinez   22.00     22.75
Zanab   Sayegh        21.00     21.75

This table presents data consisting of four rows and four columns. Below is the transcription of the table contents:

| First Name | Last Name | Age | Score |
|------------|-----------|-----|-------|
| Jane       | Smith     | 21  | 21.5  |
| Jack       | Jones     | 20  | 19.5  |
| Edgar      | Martinez  | 22  | 22.75 |
| Zanab      | Sayegh    | 21  | 21.75 |

### Explanation:

- **Columns:**
  - **A (First Name):** Contains the first names of individuals.
  - **B (Last Name):** Contains the last names of individuals.
  - **C (Age):** Represents the ages of the individuals.
  - **D (Score):** Represents a numerical score associated with each individual.

This data can be used to understand basic demographic and performance metrics of a small group of people. There are no graphs or other diagrams included in this table.
Transcribed Image Text:This table presents data consisting of four rows and four columns. Below is the transcription of the table contents: | First Name | Last Name | Age | Score | |------------|-----------|-----|-------| | Jane | Smith | 21 | 21.5 | | Jack | Jones | 20 | 19.5 | | Edgar | Martinez | 22 | 22.75 | | Zanab | Sayegh | 21 | 21.75 | ### Explanation: - **Columns:** - **A (First Name):** Contains the first names of individuals. - **B (Last Name):** Contains the last names of individuals. - **C (Age):** Represents the ages of the individuals. - **D (Score):** Represents a numerical score associated with each individual. This data can be used to understand basic demographic and performance metrics of a small group of people. There are no graphs or other diagrams included in this table.
**Reading a CSV File in a Program**

**Task Description:**

Write a program that will open the file `dataFile.csv`, read its contents, and print them out. Your output should look like this:

**Data Format:**

```
First     Last        Age     Wage
jane      Smith       21.00   21.50
Jack      Jones       20.00   19.50
Edgar     Martinez    22.00   22.75
Zanab     Sayegh      21.00   21.75
```

**Explanation:**

This task involves reading the contents of a CSV file and printing it in a structured format. The CSV contains fields such as First Name, Last Name, Age, and Wage, organized in a tabular format. Each row represents an individual with the corresponding details for each column. The goal is to ensure the program accurately reads and displays this information.
Transcribed Image Text:**Reading a CSV File in a Program** **Task Description:** Write a program that will open the file `dataFile.csv`, read its contents, and print them out. Your output should look like this: **Data Format:** ``` First Last Age Wage jane Smith 21.00 21.50 Jack Jones 20.00 19.50 Edgar Martinez 22.00 22.75 Zanab Sayegh 21.00 21.75 ``` **Explanation:** This task involves reading the contents of a CSV file and printing it in a structured format. The CSV contains fields such as First Name, Last Name, Age, and Wage, organized in a tabular format. Each row represents an individual with the corresponding details for each column. The goal is to ensure the program accurately reads and displays this information.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
InputStream
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education