Docsity

Textbook Exchange Program, Assignments of Information Technology

Toggle sidebar
bg1
IST 256
Assignment 6
THE BOOK EXCHANGE
Due May 5, 5:00pm in WebCT
( Hard copy handed in Exam on May 6.)
( Accepted until May 8.)
Write a program that reads and manipulates information for a textbook exchange. The
information must be manipulated as records and include the name of the book, seller
information (including name, phone, and email), asking price, buyer information
(including name, phone, and email), and offering price. You must prepare a data file for
your own testing, but a different file may be used for grading.
A sample line:
Sociology Today, Daffy Duck, 3-2222, [email protected], 20, Porky Pig, 3-2111, [email protected], 15
1. The program should first allow the user to type in the path of the data file and read the
information from the file.
The program should then allow the user to query the database for the following
information:
2. Given the name of a book, print out the seller’s contact info (name and email).
3. Given a partial value of the buyer’s name, print out the name of the book they
want to buy. (wild card search)
4. The user can find out which records have successful exchange prices: for
records where the prices match, print the two email addresses to a text box.
5. The user can view all proposed exchanges, sorted into order by the asking price
and displayed in a multiline textbox or label.
GRADING
The program will be graded on efficiency, elegance, format, documentation, and how
well it works. Records must be used. Special attention will be paid to user friendliness.

Partial preview of the text

Download Textbook Exchange Program and more Assignments Information Technology in PDF only on Docsity!

IST 256

Assignment 6

THE BOOK EXCHANGE

Due May 5, 5:00pm in WebCT ( Hard copy handed in Exam on May 6.) ( Accepted until May 8.)

Write a program that reads and manipulates information for a textbook exchange. The information must be manipulated as records and include the name of the book, seller information (including name, phone, and email), asking price, buyer information (including name, phone, and email), and offering price. You must prepare a data file for your own testing, but a different file may be used for grading.

A sample line:

Sociology Today, Daffy Duck, 3-2222, [email protected], 20, Porky Pig, 3-2111, [email protected], 15

  1. The program should first allow the user to type in the path of the data file and read the information from the file.

The program should then allow the user to query the database for the following information:

  1. Given the name of a book, print out the seller’s contact info (name and email).
  2. Given a partial value of the buyer’s name, print out the name of the book they want to buy. (wild card search)
  3. The user can find out which records have successful exchange prices: for records where the prices match, print the two email addresses to a text box.
  4. The user can view all proposed exchanges, sorted into order by the asking price and displayed in a multiline textbox or label.

GRADING

The program will be graded on efficiency, elegance, format, documentation, and how well it works. Records must be used. Special attention will be paid to user friendliness.