You are required to design an BeautyProduct class which has following attributes String name; String brand; Double price; Double quantity; String expiry_Date; 1. Provide default & Parameterized constructors. 2. Provide getters & setters for data members. 3. Provide a toString() method to print values. Now create an array of BeautyProduct in a class Salon having name and address as attributes as well, Provide appropriate methods, store values in array (take values form user). Provide a buy method which will ask user to buy a BeautyProduct by providing its name, check that it is present or not then ask for quantity and create bill for user. After that you have to print the following 1. View all products. 2. Buy Product. 3. Product of brand “Mac”; 4. Product with highest price. 5. All the products having expiry date before 1-3-2022. Programming language :Java
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
You are required to design an BeautyProduct class which has following attributes
String name;
String brand;
Double price;
Double quantity;
String expiry_Date;
1. Provide default & Parameterized constructors.
2. Provide getters & setters for data members.
3. Provide a toString() method to print values.
Now create an array of BeautyProduct in a class Salon having name and address as attributes as well, Provide appropriate methods, store values in array (take values form user). Provide a buy method which will ask user to buy a BeautyProduct by providing its name, check that it is present or not then ask for quantity and create bill for user.
After that you have to print the following
1. View all products.
2. Buy Product.
3. Product of brand “Mac”;
4. Product with highest price.
5. All the products having expiry date before 1-3-2022.
Programming language :Java

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









