The Bike Store is writing a new system to manage inventory. You need to write a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The Bike Store is writing a new system to manage inventory. You need to write a class that sets up bikes received. The fields to store are brand, model, size, type, and price. There are three different types of employees to enter data about the bikes, the Receiving Clerk, the Tech 1, and the Tech 2. You don't need to worry about the three types of employees, just the roles they play. The Receiving Clerk can only create the bike object and doesn't know any of the properties (fields). The Tech 1 has access to all the properties of the object except price. The Tech 2 has access to all the properties including price. Typical shipment: Brand Model Size Trek T-Domane 52 Type Road Bike Price 7,449.99 Trek T-FX3Disc L Hybrid 929.99 Trek T-Siskiu M Mountain Bike 1,599.00 Trek T-Marlin L Mountain Bike 575.63 Specialized S-Allez 56 Road Bike 1,000.00 Specialized S-Roubaix 54 Road Bike 4,200.00 Specialized S-Rockhopper M Mountain Bike 700.00 Huffy H-SeaStar 18 Kids Bike Huffy H-Rocklt 12 Kids Bike 78.00 58.00 Bike Class: The class should include: 1. A noargs method (pg 349) to instantiate the class (this would be used by the Receiving Clerk) 2. A constructor #1 method (pg 346) to instantiate the class with all initial values except price (this would be used by the Tech 1) 3. A constructor #2 method to instantiate the class with all initial values (this would be used by the Tech 2) 4. A mutator (setter) method (pg 331) for each field, to set the value for the field (these would be used by the Tech 2 to enter all the data for a bike). 5. An accessor (getter) method (pg 332) for each field, to get the value for the field Demo Program (ex: pg 337): Write a demo program that tests the class. 1. Use the noargs method to create an object (tests Receiving Clerk capabilities). It will then need to populate the fields individually (tests the Tech 2 capabilities). 2. Use the first constructor to create an object will all the fields populated except the price (tests the Tech 1 capabilities when they enter data from receiving). It will then need to update the price (Tech 2). 3. Use the second constructor to create an object will all fields populated (tests the Tech2 capabilities when they enter data from receiving). 4. Create a report of the three bike objects to test the get methods Example of 1 of the 3 bikes printed: Brand: Trek Model: T-Siskiu Size: M Type: Mountain Bike Price: $1,599.00 Activat Go to Se Optional Example of the report: Brand Trek Model Size Type T-Siskiu M Specialized S-Roubaix 54 Price Mountain Bike $1,599.00 Huffy H-RockIt 12 Road Bike Kids Bike $4,200.00 $58.00 Hints/Tips: • You do not need to enter all the data in the typical shipment. It's there to show you what the system will need to handle. Your need to test your class which will handle uses by the Receiving Clerk, the Tech 1, and the Tech 2. You need to test all the methods you define in your class, which will be accomplished if you following the instructions for the Demo Program. ⚫ Be sure to test all three constructors. Two of the constructors do not update all the data, so you'll need to set the values that aren't updated individually. ⚫ The class program is very easy to write, just make sure you do the right thing in the right places. I copied code and didn't make all the necessary changes, slowing me down in testing. • You can hardcode the values for the bikes rather than getting the info from the user. It makes testing much easier. ⚫ It took me a little over 45 minutes to complete, which included the class and demo programs. Rubric: • There is no bike class -100% • Missing demo program -50% • Noargs method missing -10% • Constructor #1 missing -10% •Constructor #2 missing -10% • Mutator methods missing -5% for each 5 fields ⚫ Accessor methods missing -5% for each of 5 fields • Report of the 3 bikes tested is missing -20% • Doesn't test all the class methods (including constructors) -5% per missed method Problems in the bike report -varies by problem The Bike Store is writing a new system to manage inventory. You need to write a class that sets up bikes received. The fields to store are brand, model, size, type, and price. There are three different types of employees to enter data about the bikes, the Receiving Clerk, the Tech 1, and the Tech 2. You don't need to worry about the three types of employees, just the roles they play. The Receiving Clerk can only create the bike object and doesn't know any of the properties (fields). The Tech 1 has access to all the properties of the object except price. The Tech 2 has access to all the properties including price. Typical shipment: Brand Model Size Trek T-Domane 52 Type Road Bike Price 7,449.99 Trek T-FX3Disc L Hybrid 929.99 Trek T-Siskiu M Mountain Bike 1,599.00 Trek T-Marlin L Mountain Bike 575.63 Specialized S-Allez 56 Road Bike 1,000.00 Specialized S-Roubaix 54 Road Bike 4,200.00 Specialized S-Rockhopper M Mountain Bike 700.00 Huffy H-SeaStar 18 Kids Bike Huffy H-Rocklt 12 Kids Bike 78.00 58.00 Bike Class: The class should include: 1. A noargs method (pg 349) to instantiate the class (this would be used by the Receiving Clerk) 2. A constructor #1 method (pg 346) to instantiate the class with all initial values except price (this would be used by the Tech 1) 3. A constructor #2 method to instantiate the class with all initial values (this would be used by the Tech 2) 4. A mutator (setter) method (pg 331) for each field, to set the value for the field (these would be used by the Tech 2 to enter all the data for a bike). 5. An accessor (getter) method (pg 332) for each field, to get the value for the field Demo Program (ex: pg 337): Write a demo program that tests the class. 1. Use the noargs method to create an object (tests Receiving Clerk capabilities). It will then need to populate the fields individually (tests the Tech 2 capabilities). 2. Use the first constructor to create an object will all the fields populated except the price (tests the Tech 1 capabilities when they enter data from receiving). It will then need to update the price (Tech 2). 3. Use the second constructor to create an object will all fields populated (tests the Tech2 capabilities when they enter data from receiving). 4. Create a report of the three bike objects to test the get methods Example of 1 of the 3 bikes printed: Brand: Trek Model: T-Siskiu Size: M Type: Mountain Bike Price: $1,599.00 Activat Go to Se Optional Example of the report: Brand Trek Model Size Type T-Siskiu M Specialized S-Roubaix 54 Price Mountain Bike $1,599.00 Huffy H-RockIt 12 Road Bike Kids Bike $4,200.00 $58.00 Hints/Tips: • You do not need to enter all the data in the typical shipment. It's there to show you what the system will need to handle. Your need to test your class which will handle uses by the Receiving Clerk, the Tech 1, and the Tech 2. You need to test all the methods you define in your class, which will be accomplished if you following the instructions for the Demo Program. ⚫ Be sure to test all three constructors. Two of the constructors do not update all the data, so you'll need to set the values that aren't updated individually. ⚫ The class program is very easy to write, just make sure you do the right thing in the right places. I copied code and didn't make all the necessary changes, slowing me down in testing. • You can hardcode the values for the bikes rather than getting the info from the user. It makes testing much easier. ⚫ It took me a little over 45 minutes to complete, which included the class and demo programs. Rubric: • There is no bike class -100% • Missing demo program -50% • Noargs method missing -10% • Constructor #1 missing -10% •Constructor #2 missing -10% • Mutator methods missing -5% for each 5 fields ⚫ Accessor methods missing -5% for each of 5 fields • Report of the 3 bikes tested is missing -20% • Doesn't test all the class methods (including constructors) -5% per missed method Problems in the bike report -varies by problem
Expert Answer:
Answer rating: 100% (QA)
Class Motor class Motor private String brand private String model private String si... View the full answer
Related Book For
Principles of Information Systems
ISBN: 978-0324665284
9th edition
Authors: Ralph M. Stair, George W. Reynolds
Posted Date:
Students also viewed these programming questions
-
Visit Amy Newman's Leadership, Character and CommunicationLinks to an external site. and select an example of a communication using data to support an assertion. Carefully read your selection,...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
How can we define tectonic stress?
-
Which of the following two compounds would eliminate HBr more rapidly in basic solutions? CH2Br or CH2Br
-
Due to heavy traffic in a certain city, the time at which a particular bus will arrive at the station could be anywhere between 2:09 to 2:16 pm. All times within the range are equally likely. To...
-
Describe or define the following terms: 1. Asset 2. Liability 3. Shareholders equity 4. Revenue 5. Expense Discuss how the five terms relate to one another.
-
An article in The Wall Street Journal (July 11, 2008) outlined a number of reasons as to why the 16 teams in Major League Baseballs National League (NL) are inferior to the 14 teams in the American...
-
Moon Company's computer system must be replaced in five years at a cost of $80,000. The owners have placed $60,000 in an investment that pays 4 percent compounded semi-annually and matures in five...
-
> A spring-mass system is a fundamental concept in physics and engineering that describes the dynamic behavior of a mass attached to a spring. This system is commonly used to model and analyze...
-
Julie anticipates receiving a $500 credit for other dependents on her 2021 tax return. If she is not looking for a huge tax refund, how should Julie treat the credit when completing her 2021 Form...
-
A 3 0 year semi annual bond was issued 2 0 years ago. Coupon rate = 5 % a. What is the current price if the interest rate = 8 % ? b. What is the current price if the interest rate = 4 % ?
-
Keating Co. is considering disposing of equipment that cost $50,000 and has $40,000 of accumulated depreciation to date. Keating Co. can sell the equipment through a broker for $25,000 less a 5%...
-
An employee borrows $7000 from a bank to purchase some household items. She plans to repay the loan with a bonus she is supposed to receive in 75 days. If she borrows the money at 10.0% find the...
-
According to the idea of the "invisible hand" in Adam Smith's theory of political economy, intentional pursuit by the individual of one's own self interest leads to unintentional benefits for the...
-
Alexa owns a condominium near Cocoa Beach in Florida. In 2023, she incurs the following expenses in connection with her condo: Insurance Mortgage interest Property taxes Repairs & maintenance...
-
A practicing Filipino accountant filad his 1st. 2nd and 3rd quarter ' a points income tax for 2021 claiming optional standard deductions. In the course of the remaining taxable yea r. he realized...
-
In your audit of Garza Company, you find that a physical inventory on December 31, 2012, showed merchandise with a cost of $441,000 was on hand at that date. You also discover the following items...
-
What is a podcast?
-
You have decided to open an Internet site to buy and sell used music CDs to other students. Describe the supply chain for your new business.
-
Identify and briefly describe the three fundamental approaches to data storage.
-
If a person, a region, or a country can produce a good or service at a lower opportunity cost than others can, we say that they have a(n) _________ in the production of that good or service.
-
People _________ by concentrating their energies on the activity to which they are best suited because individuals incur _________ opportunity costs as a result.
-
Because most people seek opportunities that make them better off, we can _________ what will happen when incentives are _________.
Study smarter with the SolutionInn App