- First : want to writing in Java "simple" , do not want "complicated."
- Second : want diagram and Algorithm
- Third : writ 3 classes 1- class product
2- class of customer name
3- class for main and methed call
project specification
the best Choice Company requested a new system so the customers can use this system to buy the products. this company is specialized in selling computers , laptops and their accessories .
it keeps a record for each customer to be used for promotions and marketing purposes . this system will calculate the total price to be paid and redirect the customer to E-payment page .
*you are not required to design and implement the E-payment page .
each customer has a name , an address , phone number and a list of purchased items with the total price to be paid . the products should be categorized to Laptops , PCs and Accessories.
the system will ask the user to choose from which category he wants to purchase as follows :
please choose which category you want to look at :
1) Laptops
2) PCs
3) Accessories
4) Exit
If the user chooses 1, 2 or 3 a listed of related items will be displayed , the customer will choose an item then the price will appear and he will be asked if he want to buy another item or get the total price to pay .
when he finished and want to pay the total price , he will be asked to enter his name , if he had purchased from the company before , he will get a 10% discount . otherwise , he will be asked to complete his information and will not get any discount .
if the user wants to exit the system witout purchasing , he should choose 4 , where a thank you message will be displayed and the program will end .
products :#
- laptops:
~ (dell laptop , 500$ )
~ ( macbook pro , 600$ )
- PCs:
~ ( iMac , 600$ )
~ ( HP PC , 550$ )
- Accessories:
~ (wireless headphone , 30$ )
~ ( laptop bag , 45$ )
~ ( wireless mouse , 30$ )
end project
45$ to 65$ :)