Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 FZSStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started