Sie sind auf Seite 1von 10

POLITEKNIK SULTAN HAJI AHMAD

SHAH SEMAMBU, 25350 KUANTAN,


PAHANG DARUL MAKMUR.
Tel : 09 565 5300 Fax : 09 566 3104
URL : http : // www.polisas.edu.my/

COMMERCE DEPARTMENT

PE302 Introduction to
Programming

Final Project
Report

Prepared by : RAVIN KUMAR A/L SANTHNASAMY


Matrix No. : 02DEC12F1017
Class : DEC 3

Prepared to : Puan Dahlia


Content
Bil Title Sheet
1. Background Project 1

2. Tasks 1

3. Analysis 1

4. Data Requirements 2

5. Pseudo Code 3

6. Attachment 4

7. Programs :
i. Comments
ii. Input / output 5-8
iii. JAVA programming constructs
iv. Method

8. Output :
i. A list of detail store products and a list
of all customersinformation.
ii. Two of customers buying process. 9-11
iii. A list of total sales of every customer
and for all customers.
Background Project
Oi Food Supply Sdn.Bhd is a company that sell frozen foods. This
company location is at B-9750 &B-9752, Jalan Haji Ahmad, 25300 Kuantan,
Pahang Darul Makmur and also is the One-stop steamboat Frozen Foods
Wholesaler at Galing, Kuantan. This store provide the freshest foods and
the foods price is cheaper than other foods store.

Tasks
Write a program that can prompt out a message box to key in 10
product code, product name, product discount and product price.
Write a program that can prompt out a message box to key in 10
Customers code, customers name, customers contact number and
Customers address.
Write a program that can call out the details product and information
Customers that already key in at the top output.
Write a program formula to calculate total sales that customer have
buy and sum all the total sales that have selling today.

Analysis
There are two different part of input that will be key in when running
the output. One is details of 10 product including code, name, discount,
and price. Second is customers information such as code member, name,
contact numbers and address. About the process, all customers will buy at
least 5 products and the program will automatic calculate out total sale for
a customer after discount. Those total sale would be calculate based on
the following calculation: (price-discount)*quantity. Final step, sum all
the total sales and get the net total.
Data Requirements

Input:
String = Product name
Customers name
Customers contact number
Customers address

Int = Quantity products


Product code
Customers code

Double = Product price


Product discount

Output:
Double = Total
Net total
Sales

Relevant Formula:
Total = (price discount)*quantity;

Net total = nettotal + total;

Sales = sales + nettotal;


Pseudo Code

Input:
Key in value of code products, name products, discount products, price
products, quantity products, code members, name members, contact
number members and address members.

Process:
Total = (price discount) x quantity
Net total = nettotal + total
Sales = sales + nettotal

Output :
Print value of name products, discount products, price products, name
members, contact number members and address members, total, net total
and sales.
Attachment
Output

1) A list of detail store products and a list of all


customers information.
2) Two of customers buying process :

Process (A)

Process (B)
3) A list of total sales of every customer and for all
customers.

Das könnte Ihnen auch gefallen