Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Accounting Basics Expert

iLAB STEPS
STEP 1: Understand the UML Diagram
Back to Top

STEP 2: Build the Inheritance Hierarchy

Back to Top
Create a project called "CIS247B_WK7_Lab_LASTNAME"
Build the class structure shown in the UML diagram. Remember to include getters and setters for each class attribute.
STEP 3: Implement Logic for HotRod Class

Back to Top
1 Provide suitable logic for the toString method. As always, the toString method should reveal the state of an object.

2 For the isDead method in HotRod, use the logic below to implement the inherited base class abstract method called isDead.
Hint: To generate a random number, use the following code, which returns a random number from 0 to 1:
Random rnd = new Random();
rnd.NextDouble();

STEP 4: Implement Logic for StreetTuner Class
Back to Top
1 Provide suitable logic for the toString method. As always, the toString method should reveal the state of an object.
2 For the isDead() method in StreetTuner, use the logic below to implement the inherited base class abstract method called isDead.

STEP 5: Construct the Main Program
Back to Top
Hint: When completing the Main Class for your lab, feel free to reuse old methods from previous labs!
1 Create an array of Racer objects that will hold three Racer objects.
2 Write a method, called collectRacerInformation that accepts as an argument a Racer object, and then prompts the user to provide the following information for each racer.
? Racer name
? Racer Speed
? Number of cylinders in the racer's engine
? Horsepower of the racer's engine

3 Add logic to collectRacerInformation to determine if the Racer object passed in is a HotRod or a StreetTuner. If it is a HotRod, prompt the user to indicate the existence of a blower. If the object is a StreetTuner, prompt the user to indicate the existence of nitrous. Set these values appropriately.

4 Write a method called displayRacerInformation that accepts as an argument a Racer object, and then displays all the information for the specific racer type.

5 Create any combination of Racer objects (make sure you create at least one StreetTuner and one HotRod) and invoke collectRacerInformation, passing in each of the Racer objects. Store each object in the array. For StreetTuner objects, be sure to set the nitrous flag (either true or false), and for the HotRod objects set the blower flag (either true or false).

6 Iterate through the racer array and, for each Racer object, display all the object's attribute information (call the displayRacerInformation method for each object). Don't forget to indicate whether or not the Racer is dead!

STEP 6: Compile and Test
Back to Top
When done, compile and execute your code, and debug any errors until your code is error-free.
Check your output to ensure that you have the desired output, modify your code as necessary, and rebuild.
Your code may resemble the following:

Accounting Basics, Accounting

  • Category:- Accounting Basics
  • Reference No.:- M91589549
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Accounting Basics

Question management research project requirementstopic -

Question: Management Research Project Requirements TOPIC - Each student will submit a research project that selects a current management problem and applies one or more principles of management discussed in the class to ...

Question - speedy delivery company purchases a delivery van

Question - Speedy Delivery Company purchases a delivery van for $43,200. Speedy estimates that at the end of its four-year service life, the van will be worth $6,800. During the four-year period, the company expects to d ...

Questions - q1 conner corporations adjusted trial balance

Questions - Q1. Conner Corporation's adjusted trial balance included the following items:Accounts payable ($65,000), Accounts receivable ($45,000), Capital stock ($100,000), Cash ($50,000), Dividends ($10,000), Goodwill ...

Question - wok n rolls statement of cash flows for october

Question - Wok N Roll's Statement of Cash Flows for October showed the following: Cash from operating activities $ 3,000 Cash for investing activities $(2,000) Cash from financing activities $ ? Net change in cash $ 5,00 ...

Question - phil goode will receive 112000 in 19 years his

Question - Phil Goode will receive $112,000 in 19 years. His friends are very jealous of him. If the funds are discounted back at a rate of 14 percent, what is the present value of his future "pot of gold"?

Question - vela enterprises inc would like to prepare

Question - Vela Enterprises Inc. would like to prepare summary cash budget for March. The following information is available: The cash balance at 1 March was estimated to be $8 000. March sales, all on account, were esti ...

Question - concord could borrow 107700 from its bank to

Question - Concord could borrow $107,700 from its bank to finance the purchase at an annual rate of 10%. Should Concord borrow from the bank or use the manufacturer's payment plan to pay for the equipment?

Question income tax implication of capital investment

Question: Income Tax Implication Of Capital Investment Decisions Read the following case study: The Whitley Corporation's year-end is December 31, 2013. It is now October 1, 2013. The Whitley management team is taking a ...

Question - prepare bank reconciliation and related

Question - Prepare bank reconciliation and related entries On October 31, 2017, Lisik Company had a cash balance per books of $8,946. The bank statement on that date showed a balance of $10,155. A comparison of the state ...

Question - jessicas aunt died and left her a house and some

Question - Jessica's aunt died and left her a house and some money to her and 2 of her siblings. Jessica has four siblings total. Although 2 of her siblings were not listed as beneficiaries, they have agreed to split all ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As