Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java DB Query Assume that a bicycle has the following attributes: 1. Type (mountain bike, race bike or street bike) 2. Number of gears (4-10,

image text in transcribed

Java DB Query Assume that a bicycle has the following attributes: 1. Type (mountain bike, race bike or street bike) 2. Number of gears (4-10, in increments of 1) 3. Wheel base (36- 60 inches, in increments of 6 inches) 4. Height (1, 2,3,4) 5. Color (steel, red, blue, black) 6. Construction Material (carbon, steel, aluminium Make a text file with a bicycle database. The file should have bikes with ALL possible combinations. You can generate this file randomly, by scripts or by hand, or you can use any data that you may have found on the internet. Write a java code (ShowBikes.java) to read the file and return a list of bikes when the code is executed in the following example format: Java ShowBikes-type mountain bike-gear 5-wheelbase The above call should list ALL mountain bikes in the database with 5 gears, and sort them in ascending order according to their wheelbase dimensions. I should be able to call the code with as many attributes as I want, and the last attribute should always be used to sort the list. Requirements 1) 2) You have to use a Linked List data structure, but cannot use existing linked list classes in Java. You have to use try-catch constructs for error handling

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

LO1 Identify why performance management is necessary.

Answered: 1 week ago