Question: public class BookStore { private String name; private int booksInStock; private int numOfEmployees; private double revenue; public BookStore() { name = ; booksInStock = 0;

public class BookStore { private String name; private int booksInStock; private int numOfEmployees; private double revenue;

public BookStore() { name = ""; booksInStock = 0; numOfEmployees = 0; revenue = 0; }

public String getName() { return name; }

public int getBooksInStock() { return booksInStock; }

public int getNumOfEmployees() { return numOfEmployees; }

public double getRevenue() { return revenue; } public void hireEmployees(int employees) { numOfEmployees+= employees; } public void fireEmployees(int employees) { numOfEmployees-= employees; } } 1- Create an object of a bookstore class with proper information 2- Check the bookstore number of employees to number of books in stock ratio. If the ratio is greater than 30, hire 5 more employees. Otherwise, fire 3 employees. Print the bookstore information.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!