Question: please code with JAVA programing language Suppose, you are creating a java program for a showroom that displays four brands of bikes: i. FZS ii.
please code with JAVA programing language
Suppose, you are creating a java program for a showroom that displays four brands of bikes: i. FZS ii. R15 V3 iii. Fazer iv. R15 V2 Initially the shop will start with 100 pieces for each of the brands, and those numbers will reduce as the bikes are sold one by one. Create a class named Inventory containing variables representing number of pieces available for each of the brands, and individual methods for decreasing those numbers as sales are processed. Create appropriate variables, methods, constructors as needed. Create a class named Showroom that has an inventory. Create appropriate variables, methods, constructors as needed. The Inventory class is going to throw a custom exception that says Inventory running dry" whenever FZS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
