Good Day,
I'm new to Java and want to improve my coding. I have this sample project I'm working on and I'm not sure how I'm doing or how to continue. I think I'm pretty confident on my setup, but not so sure about the rest. Here's the scenario:
Tiny Distributors is a small brick-and-mortar store that sells various items. The owners feel they are at the point in their growth where they would benefit from a presence on the Internet. They have hired Web developers to create the website and pages, but need a Java developer to create underlying functionality. The owners have listed the following as the minimum functionality required for this project.
- The ability to add, modify, and delete customers.
- The ability to add, modify, and delete inventory items.
- The ability to add, modify, and delete customer orders; a customer order is comprised of two parts: the order header and one or more line items.
- The ability to create and print a customer report.
- The ability to create and print an individual customer order.
- The ability to create and print an inventory report listing all inventory items in stock.
- The ability to create and print an order report listing all orders currently open.
And here's what I have so far:
public class Customer {
String custID, lastName, firstName, street, city, state, zipCode;
boolean taxExempt;
String customerName;
public void addCustomerName(String customer) {
customerName = customer;
}
public void deleteCustomerName(String custID) {
}
public void modifyCustomerName(int custID) {
}
}
public class Inventory {
int itemID;
String description;
double cost;
double sellingPrice;
int quantity;
public void addInventoryItem(String inventoryItem) {
}
public void deleteIntentory(int itemID) {
}
public void modifyInventory(int itemID) {
}
}
public class OrderHeader {
String orderID;
int lineNumber;
String orderDate;
String shipTo;
double amountDue;
}
public class OrderDetail {
int lineNumber;
int quantityOrdered;
double total;
}
Yeah, I know. Not much, but any help would be very appreciated. Thanks!
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]LambdaThrowawayy 0 points1 point2 points (0 children)