//定义一个类
public class NV{
//公共静态的主方法
public static void main(String[] args){
//打印 “京东三九女神节” 标题
System.out.println("=====京东三九女神节====");
//打印 "品牌等" 二级标题
System.out.println("==品牌==尺寸�==价格==库存");
//输入品牌名称(string 字符串 Brand 商标)
String LvBrand="Lv名牌包包";
//输入尺寸为42(Size 大小|尺寸 (乱输的,没买过包,哈哈哈))
double LvSize= 42;
//输入价格(Price 价格|价值 )
double LvPrice=19999;
//输入库存(count 计数|也可以理解为库存 )
int Lvcount = 8;
String GcBrand="古驰包包";
double GcSize= 42;
double GcPrice=19999;
int Gccount = 8;
String MmBrand="酩茗包包";
double MmSize= 42;
double MmPrice=19999;
int Mmcount = 8;
//控制台打印出每个产品的品牌 尺寸 价格 库存
System.out.println(LvBrand+" "+LvSize+" "+LvPrice+" "+Lvcount);
System.out.println(GcBrand+" "+GcSize+" "+GcPrice+" "+Gccount);
System.out.println(MmBrand+" "+MmSize+" "+MmPrice+" "+Mmcount);
//合计所有产品的库存
int total = Lvcount+Gccount+Mmcount;
//合计所有产品的库存价格 (价格乘库存)
double totalPrice = LvPrice*Lvcount+GcPrice*Gccount+MmPrice*Mmcount;
//打印库存总数
System.out.println("库存总数"+total);
//打印库存总价格
System.out.println("库存总价格"+totalPrice);
}
}