The document outlines requirements for developing a product management application for an electronics store. The application must allow adding, viewing, sorting, updating, deleting, and getting totals for three product types: smartphones, TVs, and air conditioners. Each product type has different required fields and unique codes. The program menu should include features to manage the product list stored using an ArrayList.
The document outlines requirements for developing a product management application for an electronics store. The application must allow adding, viewing, sorting, updating, deleting, and getting totals for three product types: smartphones, TVs, and air conditioners. Each product type has different required fields and unique codes. The program menu should include features to manage the product list stored using an ArrayList.
The document outlines requirements for developing a product management application for an electronics store. The application must allow adding, viewing, sorting, updating, deleting, and getting totals for three product types: smartphones, TVs, and air conditioners. Each product type has different required fields and unique codes. The program menu should include features to manage the product list stored using an ArrayList.
Develop the product management application of FPT ShopThe company.
The company specializes in trading 3 types of products:Smartphone, Tivi, Air-conditioner .
o The Smartphone includes the following information: code, name,
brand, Ram, CPU, Size, price, Quantity. o The TV includes the following information: code, name, brand, size, price, Quantity. o The Air-conditioner includes the following information: code, name, brand, power, price, Quantity.
Constraints:
o Each product has a unique code.
o Smart phone code must be in format <SM000>, 0 is a digit. o Tivi code must be in format <TI000>, 0 is a digit.
o Air-conditioner code must be in format <AIR000>, 0 is a digit.
o All product information must not be empty. o Quantity,Price >0. o Use package utils to check the validate of input data. Create a program menu that includes the following features:
o Add a new product.
o Print out the list of products on the screen. o Print a list of Smartphones in descending order of price. o Print a list of Tivis in Ascending order of price. o Print a list of of Air-conditioner in descending order of price. o Print information about products with the highest prices. o Update the product information based on the code the user entered. o Delete an product based on the code the user entered. o Print the total amount of all products ( Total amout = sum(Price*Quantity)).
o Exit the program.
Note
o Use ArrayList to manage products. One-dimensional arrays cannot be used.
o Use Generic to limit type in a list. o The list has at least 8 products and has all 3 types of products.