cis 247 devry week 7 ilab latest n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
CIS 247 DEVRY WEEK 7 ILAB LATEST PowerPoint Presentation
Download Presentation
CIS 247 DEVRY WEEK 7 ILAB LATEST

Loading in 2 Seconds...

play fullscreen
1 / 3

CIS 247 DEVRY WEEK 7 ILAB LATEST - PowerPoint PPT Presentation


  • 0 Views
  • Uploaded on

nVisit Below Link, To Download This Course:nnhttps://www.tutorialsservice.net/product/cis-247-devry-week-7-ilab-latest/nnOr nEmail us onnSUPPORT@TUTORIALSSERVICE.NETnnCIS 247 DeVry Week 7 iLab LatestnCIS247nCIS 247 DeVry Week 7 iLab LatestniLab 7 of 7: Putting It All TogetherniLAB OVERVIEWnScenario and SummarynThis week, you will be implementing inheritance by creating a generic Racer superclass along with two subclasses called StreetTuner and HotRod. You will make the Racer class abstract and include the abstract method IsDead in the Racer class.n

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

CIS 247 DEVRY WEEK 7 ILAB LATEST


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
cis 247 devry week 7 ilab latest

CIS 247 DEVRY WEEK 7 ILAB LATEST

Visit Below Link, To Download This Course:

https://www.tutorialsservice.net/product/cis-247-devry-week-7-ilab-latest/

Or

Email us on

SUPPORT@TUTORIALSSERVICE.NET

CIS 247 DeVry Week 7 iLab Latest

CIS247

CIS 247 DeVry Week 7 iLab Latest

iLab 7 of 7: Putting It All Together

iLAB OVERVIEW

Scenario and Summary

This week, you will be implementing inheritance by creating a generic Racer superclass along with two

subclasses called StreetTuner and HotRod. You will make the Racer class abstract and include the

abstract method IsDead in the Racer class.

Deliverables

Due this week:

Capture the console output window and paste it into a Word document.

Zip the project folder.

Put the zip file and screenshots (Word document) in the Dropbox.

iLAB STEPS

STEP 1: Understand the UML Diagram

STEP 2: Build the Inheritance Hierarchy

build the class structure shown

Build the class structure shown in the UML diagram. Remember to include getters and setters for each

class attribute.Create a project called “CIS247B_WK7_Lab_LASTNAME”

STEP 3: Implement Logic for HotRod Class

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

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.

Random rnd = new Random();

rnd.NextDouble();

STEP 4: Implement Logic for StreetTuner 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 StreetTuner, use the logic below to implement the inherited base class

abstract method called isDead.

STEP 5: Construct the Main Program

Create an array of Racer objects that will hold three Racer objects.Hint: When completing the Main Class

for your lab, feel free to reuse old methods from previous labs!

1. 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

2. 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.

3. Write a method called displayRacerInformation that accepts as an argument a Racer object, and then

displays all the information for the specific racer type.

4 create any combination of racer objects make

4. 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).

5. 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

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:

STEP 7: Submit Deliverables

.equella.ecollege.com/file/74450de3-75b7-46fc-a819-

b5c088633d4c/1/CIS247B_W7_iLab.html#top”>Back to Top

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.next.ecollege.com/default/launch.ed?ssoType=DVUHubSSO2&node=184″>step-by-step

instructions