Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Following Homework 1 ChatGPT assignment, this assignment is to implement a program ( i . e . , using programming ) to read questions from

Following Homework 1 ChatGPT assignment, this assignment is to implement a program (i.e., using programming) to read questions from an input excel file (e.g., input.csv), and then save the ChatGPT generate answers as another excel file (e.g., output.csv). Each row of the input excel file includes questions to ask ChatGPT (each row corresponds to one question). Your answers should also be saved as a pure text (or excel file), with each row corresponding to one answer. Here are required implementation:
a. The program should read text from a given excel file (e.g., a csv file), and print out content of the first five lines (using example.csv file posted on canvas as a template)[0.25 pt]
b. For text content in each row, please use the text as chatGPT input, and collect (and print out) ChatGPT answers [0.5 pt]
c. Save chatGPT answers as another output.csv file (without each answer being saved as one row). All answers from your input.csv file should be saved as one output.csv file. This allows fast batch processinglater

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

77 Project management concepts and applications.

Answered: 1 week ago