Question: java language Bike Class 1. Create a business class called Bike 2. Bikes should at least have number of wheels, manufacturer and year data. Additional

 java language Bike Class 1. Create a business class called Bike
2. Bikes should at least have number of wheels, manufacturer and year
data. Additional data can be created at programmer's discretion. 3. A no-arg
java language

Bike Class 1. Create a business class called Bike 2. Bikes should at least have number of wheels, manufacturer and year data. Additional data can be created at programmer's discretion. 3. A no-arg constructor with values of 2 for number of wheels to 2. "Schwinn" for manufacturer, and 2014 for year should eb created. 4. Other constructors, getters, setters and toString0 method should be created. Create classes to model and test textbooks. Follow the instructions shown below: 1. Create a business class to model a textbook. Decide what data should be stored for a textbook and create at least three instance variables, two constructors, and appropriate getters, setters and toString method. Create at least one instance method of your choice. 2. Create a tester class which creates at least two objects of the business class. Invoke various getters, setters and instance method(s) to test the business class. 3. Comment your code thoroughly. File allocation: Write a program named Storage and a Tester Program to allocate files based on the file size and maximum capacity of the storage. A storage has multiple blocks to store files. Each block has maximum capacity to store files and maximum capacity will be given by the user. Please use the first fit algorithm that places each file into the first block where it would fit. Your program should prompt the user to enter the maximum size of the directory A (e.g. What is the maximum size of the directory A?"), also prompt the user to enter the number of files to store, and then prompt the user to enter each file size in KB. The program will display the total number of blocks needed to store files and file size. Use the starter code provided as follows and here is the sample run: Bike Class 1. Create a business class called Bike 2. Bikes should at least have number of wheels, manufacturer and year data. Additional data can be created at programmer's discretion. 3. A no-arg constructor with values of 2 for number of wheels to 2. "Schwinn" for manufacturer, and 2014 for year should eb created. 4. Other constructors, getters, setters and toString0 method should be created. Create classes to model and test textbooks. Follow the instructions shown below: 1. Create a business class to model a textbook. Decide what data should be stored for a textbook and create at least three instance variables, two constructors, and appropriate getters, setters and toString method. Create at least one instance method of your choice. 2. Create a tester class which creates at least two objects of the business class. Invoke various getters, setters and instance method(s) to test the business class. 3. Comment your code thoroughly. File allocation: Write a program named Storage and a Tester Program to allocate files based on the file size and maximum capacity of the storage. A storage has multiple blocks to store files. Each block has maximum capacity to store files and maximum capacity will be given by the user. Please use the first fit algorithm that places each file into the first block where it would fit. Your program should prompt the user to enter the maximum size of the directory A (e.g. What is the maximum size of the directory A?"), also prompt the user to enter the number of files to store, and then prompt the user to enter each file size in KB. The program will display the total number of blocks needed to store files and file size. Use the starter code provided as follows and here is the sample run

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!