Log in

View Full Version : assignment aj udom



armano
07-02-2003, 12:22 AM
write a c/c++ program that handles multiple (sequential)
Each file maintains a set of data as follows:
1 Inventory file
- product category ID, product ID, product name, model size, cost, price, current quantity

2. Category file
- Product category ID, category name

3. Customer file
- customer ID, customer name

4. Salesperson file
- Salesperson ID, salesperson name, product category ID, commission rate(in %)

5. Sales transaction file
- date, time, customer ID, salesperson ID, type of transaction(buy/sell), quantity

6. Supplier file
- supplier ID, supplier name

a) the prog should allow basic operation for each file:
insert, delete, update(edit), and list items by IDs/date+time

B) the program sould provide the following summary :
- the daily summaries of the number of each items sold out sorted by the total price
- the daily summaries of the number of each items biught in sorted by the total cost
- list of the top ten customer who made the purchases from the company, daily
- the amount of commission earned by each salesperson in a day
- the company overall monthly income, expense

asylu3
01-03-2003, 07:38 PM
please reply me

Crovax
02-03-2003, 12:15 AM
ขออันที่ update ละได้ปะ
จำไม่ได้ว่าแก้ตรงไหน

armano
02-03-2003, 06:02 PM
Example

Month of January
Income = selling (50,000,000.75)
Expenses = buying + commission (27,000,000) ---->no running cost only this.
Balance = 23,000,000.75 (may be it is negative) ---->expenses more than income.
Header
ID Product name Quantity Unit price Total price
001 fkdijfijg 1 20,000 20,000
002 oirghui 5 99 495
Total 20495


Ex of report on screen

ID Customer name Amount
001 ifjihu 2,000,000
002 8eyf8 350,000
.
.

SalespersonID SalespersonName CommissionRate CommissionTotal
001 bjfrhg 15% 3,000
.
.
.
Total ---------

armano
02-03-2003, 06:03 PM
dataต้องตรงfieldนะ

tatalอยู่ที่เดียวกับID ค่าของมันตรงfieldสุดท้าย