For Online Class Help or Private Tutoring Service email us at [email protected] or WhatsApp us at +1 (781) 656-7669

Homework Provider

 
  • Take My Class
  • Take My Exam
  • How It Works
  • Solutions
    • Questions
  • Testimonials
  • Blog
  • Who Are We
  • Contact Us
  • Take My Class
  • Take My Exam
  • How It Works
  • Solutions
    • Questions
  • Testimonials
  • Blog
  • Who Are We
  • Contact Us
  1. Home
  2. Questions
  3. DeVry CIS 247A Week 7 iLab Putting It All Together

DeVry CIS 247A Week 7 iLab Putting It All Together

Scenario and Summary
This week, you will be implementing inheritance by creating a generic Racer base class along
with two derived classes called StreetTuner and HotRod. You will make the Racer class abstract
and include the abstract method IsDead() in the Racer class.

iLAB STEPS

STEP 1: Understand the UML Diagram

The UML diagram four classes defined (1) Racer, (2) Engine, (3) Hot Rod, and (4) StreetTuner classes.

The Racer class is the base parent abstract class of the Hot Rod and Street Tuner classes, which is represented by a directed line from the Hot Rod and Street Tuner classes to the Racer class and the end of the line touching the Racer class is a broad, unfilled arrowhead. The racer class contains an engine object, which is represented by a directed line from the engine class to the Racer class, with a filled diamond touching the racer class, this line is labeled as a 1 to 1 relationship meaning that each racer object will contain one engine object and each engine is related to a single racer object.

The class’s attributes and methods are defined in separate class diagrams, and each class diagram is represented by a rectangular box subdivided into three vertically separated rectangular sub-sections. The top section contains the class name, the middle section contains the class attributes, and the bottom section contains the class methods.

STEP 2: Build the Inheritance Hierarchy

  1. Create a project called “CIS247_WK7_Lab_LASTNAME”.
  2. Build the class structure shown in the UML diagram. Remember to include properties for each
    class attribute.

STEP 3: Implement the Logic for the HotRod Class

  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 to implement the base class abstract is dead
    method.

Hint: To generate a random number, use the following code, which returns a random number
from 0 to 1:

  1. Random rnd = new Random();
  2. rnd.NextDouble();
  3. Pseudocode for the IsDead method of HotRod
  4. Random rnd = new Random();
  5. boolean dead
  6. if (speed > 50 && rnd.NextDouble() > 0.6)
  7. if (engineHorsePower < 300 && blower=true)
  8. dead = false
  9. else
  10. dead = true
  11. end if
  12. else if (speed > 100 && rnd.NextDouble() > 0.4)
  13. if (engineHorsePower >= 300 && blower = true)
  14. dead = true
  15. else
  16. dead = false
  17. end if
  18. else
  19. dead = false
  20. end if

STEP 4: Implement the logic for the StreetTurner class

  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 StreetTurner, use the logic below to implement the inherited abstract base class method called IsDead.
take-my-online-class-thumbnail
Play Video
pay-someone-to-take-my-online-class

Name: Jennifer Lucas
Status: Online ⬤
Classes Taken: 3878
Ratings: ⭐⭐⭐⭐⭐

Hire Me

STATUS

 

  1. Pseudocode for the IsDead method of StreetTuner
  2. Random rnd = new Random();
  3. boolean dead
  4. if (speed > 50 && rnd.NextDouble() > 0.6)
  5. if (engineHorsePower < 300 && nitrous=true)
  6. dead = false
  7. else
  8. dead = true
  9. end if
  10. else if (speed > 100 && rnd.NextDouble() > 0.4)
  11. if (engineHorsePower >= 300 && nitrous = true)
  12. dead = true
  13. else
  14. dead = false
  15. end if
  16. else
  17. dead = false
  18. end if

STEP 5: Construct the Main Program

  1. Create an array of Racer objects that will hold two 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; and
  • Nitrus or blower option, depending on the type of Racer object.
    [Hint: In order to be able to collect all information for the derived classes as well, consider
    creating a base class method called ReadRacerData in the Racer class, which you will then
    override in the derived classes to capture the required info per class. Call the ReadRacerData
    method within the CollectRacerInformation method.]
  1. Write a method called “DisplayRacerInformation” that accepts as an argument a Racer object,
    and then displays all of the information for the specific racer type.
  2. Create a racer object of each type, and invoke the CollectRacerInformation passing in the
    Racer object. Then, store each object in the array.
  3. Iterate through the Racer array list and, for each Racer, display all of the Racer’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
When done, compile and run your program.
Then, debug any errors until your code is error-free.
Check your output to ensure that you have the desired output and modify your code as necessary
and rebuild.

STEP 7: Submit Deliverables
Before you post your lab in the dropbox, copy your entire program into a Notepad file and post
that. I do not need you to zip the project or give me screenshots of the output.
Submit your lab to the Dropbox located on the silver tab at the top of this page. For instructions
on how to use the Dropbox, read these Step-by-Step Instructions or watch this Dropbox Tutorial.

Facebook
Twitter
Reddit
Pinterest
WhatsApp
Email
pdf-answers
Get Solved Answers
$2.99
Add to cart

GET QUICK PRICE ESTIMATE FOR THIS TASK

WHY CHOOSE US

  • Over 300 Experts to Work on Your Papers
  • 100% Privacy and Confidentiality
  • Amazing Discounts and Special Offers
  • Delivery within Every Deadline Level
  • Secure Payment Process
  • High-Quality Papers
  • 24/7 Live Customer Support
  • Free Revisions If Required
  • Fair & Cheap Prices
  • Rated 4.9/5 By Students

COMPLETED TASKS

SOCS 325 Week 8 Final Exam (Version 2)

July 13, 2020

SOCS 325 Week 8 Final Exam (Version 1)

July 13, 2020

SOCS 325 Week 8 Final Exam (Collection)

July 13, 2020

SOCS 325 Week 8 Collaborative Group Project Discussion

July 13, 2020

SOCS 325 Week 7 Bundle: Assignments + Group Project + Discussions

July 13, 2020

SOCS 325 Week 6 Bundle: Assignments + Discussions

July 13, 2020

SOCS 325 Week 5 Bundle: Assignments + Discussions

July 13, 2020

SOCS 325 Week 4 Midterm (Version 4)

July 13, 2020

Homework Provider

Facebook-f Twitter Pinterest Whatsapp Reddit Envelope

WE ACCEPT

PayPal
VISA Light
AMERICAN EXPRESS LIGHT
Bitcoin
  • Take My Online Class
  • Do My Case Study
  • Take My Online Exam
  • Online Class Help
  • Do My Homework
  • Take My Online Test
  • Original Homework Help
  • Premium Plagiarism Checker
  • Take My Midterm Exam
  • Research Paper Writing
  • Case Study Writing Help
  • Dissertation Writing Service
  • Online Coursework Help
  • Pay Someone To Write My Paper
  • Pay For Online Classes
  • Programming Classes Help
  • MyMathLab Answers
  • MyStatLab Answers
  • MyAccountingLab Answers
  • Need Help With Online Class
  • Cheap Assignment Help
  • Write My Online Essay
  • Online Student Problems
  • Math Homework Help

Contact Us

  • [email protected]
  • WhatsApp (781) 656-7669
  • twitter.com/hwp_helper
  • fb.com/homeworkprovidercom
  • Privacy Policy
  • Terms of Use
  • DMCA
  • Cookie Policy
  • Money Back Guarantee
  • Premium Plagiarism Checker
  • Contact Us

HomeworkProvider.com is not endorsed or affiliated by any university or college. The services provided are meant to assist the client by providing a guideline and the product provided is intended to be used for research or study purposes.

© 2013-2020 HomeworkProvider. All rights reserved.

ORDER THIS
WHATSAPP

Yay! You are just one step away to get rid of homework stress

  • How It Works
  • Testimonials
  • We are committed to ensuring that your information is secure with us
hire-an-expert-to-do-my-exam

Don't Waste Your Time Searching For Old Plagiarized Courses

Get Your Job Done By Our Anonymous Quality Experts

  • How It Works
  • Reviews
  • 24/7 Support
doc icon homework provider

CIS 155 Lab Help, Leslie​
Thank you for doing my CIS 115 lab. Homework Provider is the best.

Rated By Client
 5/5
doc icon homework provider

Dream Service, William
Thanks God, you came to my rescue. Thanks for your help.

Rated By Client
 5/5
doc icon homework provider

Mind blowing service, Eddie
I could have failed quite a few exams if you guys did not help me

Rated By Client
 5/5
doc icon homework provider

Got A grade in final exam, John
I still couldn’t believe I got an A grade in my exam. Highly vouched service.

Rated By Client
 5/5
doc icon homework provider

Linda, opted for private tutoring
Subscribed to get online class help for devry acct 212 week 1-8 class​​

Week 5 65%
doc icon homework provider

Acct Course Project, Ryan
Thanks a lot to my writer who followed all my requirements.

Rated By Client
 5/5
xls-icon

Genuine service, Steven
The research paper was much more than I expected! Thanks a lot.

Rated By Client
 4.5/5
doc icon homework provider

Karen, opted for private tutoring
Subscribed to get online class help for liberty BUSI 536 week 1-8 class.

Week 7 88%
doc icon homework provider

Marcus, opted for private tutoring
Subscribed to get online class help for ashford psy week 1-5 class.

Week 3 58%
doc icon homework provider

I got A grade in class, Amanda
with the help of homework provider I made it to pass my acct 505 class.

Rated By Client
 5/5