Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

CIST 1305 Final Individual Project: Shipping Arrays and File Processing 4 -18 A.

CIST 1305 Final Individual Project: Shipping Arrays and File Processing 4 -18 A. Thomas

CIST 1305 Program Design and Development

FINAL INDIVIDUAL PROJECT

Shipping Application

Computers R Us would like a report that lists the orders from its online customers. The current open orders are written into an order file, "customerOrders.dat" . Print a report using the contents of this file formatted as shown in the accompanying printer spacing chart. There are computed values, too. Formulas are provided below. At the end of the report print an accumulated total for all orders.

The shipping code table contains updated shipping information and should be used to load arrays that the program will then use to determine the shipping code, and shipping charge.

Deliverables:

• The program must be modular. The program should utilize both functions and modules. Include the following:

o A minimum of one library function.

o A minimum of one custom function.

o A minimum of one module.

• Validation:

o Using the shipping code table provided, check for valid shipping code. Print a message on the report instead of the detail line when an invalid code is entered. Include customer name and number in the message.

o Quantity must be at least 1. Print a message instead of the detail line when the quantity value is invalid. Include the customer name and number.

Documentation: Include the following:

• Program Analysis Worksheet (pre-planning). (provided in project folder)

• Module I-P-0 analysis for all modules. (provided in project folder)

• Function I-P-O chart for custom functions. (provided in project folder)

• Hierarchy chart.

• Internal comments.

• Pseudocode.

Program assumptions:

Extended Price of an order = quantity ordered * unit price

Order total = extended price + shipping charge

NOTE: There are no taxes required for this program.

CIST 1305 Final Individual Project: Shipping Arrays and File Processing 4 -18 A. Thomas

Shipping Codes and Fees:

C Customer Pick-Up 00.00 P Parcel Post 6.25 R Federal Express 18.55 U UPS Ground 10.95 M Overnight Mail 12.50 A AirBorne Express 14.95

Input File Description: File: customerOrders.dat

Field Description Data Type

Order Number Integer

Customer Name String

Item Number Integer

Quantity Ordered Integer

Unit Price Real (2 decimal places)

Shipping Code String

Output Report - Printer Spacing Chart:

Computers R Us Current Open Orders Customer Name Order Item Qty. Unit Ext. Ship Order Number Num. Ord. Price Price Cost Total XXXXXXXXXXXXXXX 99999 9999 999 999.99 99999.99 99.99 999999.99 ___________________________________________________________________________ Outstanding Order Balance $999999999.99

Sample Data to use for Testing Logic:

"customerOrders.dat" (contents of file):

00010 Alpha Research Inc 0523 020 12529 U 00080 Eddie's Electronics 2470 015 03575 C 00050 Data Depot Supply 5894 350 40688 P 00090 Computer Castle 2450 050 00829 M 01090 Creative Computing 4583 300 45899 A 02010 Output Outlet 3680 0010 25899 R

CIST 1305 Final Individual Project: Shipping Arrays and File Processing 4 -18 A. Thomas

Gwinnett Technical College

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question