CIS 247A CIS247A CIS/247A ENTIRE COURSE HELP – DEVRY UNIVERSITY

Page 1

CIS 247A CIS247A CIS/247A ENTIRE COURSE HELP – DEVRY UNIVERSITY

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/cis-247a-cis247a-cis-247a-ent/

CIS247A 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 CIS 247A CIS247A CIS/247A ENTIRE COURSE HELP - DEVRY UNIVERSITY quantity Category: Assignments Help Experts Tags: CIS 247A CIS247A CIS/247A Object-Oriented Programming - DeVry University, CIS247, CIS247A Week 1 iLab Creating a User Interface, CIS247A Week 2 iLab Object Construction and Data Abstraction, CIS247A Week 3 iLab Overloaded Methods and Static Methods Variables, CIS247A Week 4 iLab Composition and Class Interfaces, CIS247A Week 5 iLab Composition Inheritance and Polymorphism, CIS247A Week 6 iLab Abstract Classes, cis247a week 7, cis247a week 7 ilab, cis247a week 7 lab, CIS247Acis247a lab 7, java 

Description

Description


CIS 247A CIS247A CIS/247A ENTIRE COURSE HELP – DEVRY UNIVERSITY

CIS247A 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 arrow head. The racer class contains a 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 subsections. 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 IsDead method.


Hint: To generate a random number, use the following code, which returns a random number from 0 to 1: 1 2 rnd = new Random(); 3 Random rnd.NextDouble(); 4 Pseudocode for the IsDead method of HotRod 5 Random rnd = new Random(); 6 boolean dead 7 if (speed > 50 && rnd.NextDouble() > 0.6) if (engineHorsePower < 300 && blower=true) 8 dead = false 9 else dead = true 10 end if 11 12else if (speed > 100 && rnd.NextDouble() > 0.4) if (engineHorsePower >= 300 && blower = true) 13 dead = true 14 else dead = false 15 end if 16 else 17 dead = false 18end if 19 20 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. 1 2 3 4 5 6 7 8 9 1 0 1 1

Pseudocode for the IsDead method of StreetTuner Random rnd = new Random(); boolean dead if (speed > 50 && rnd.NextDouble() > 0.6) if (engineHorsePower < 300 && nitrous=true) dead = false else dead = true end if else if (speed > 100 && rnd.NextDouble() > 0.4) if (engineHorsePower >= 300 && nitrous = true) dead = true else dead = false end if else


1 2 1 3 1 4 dead = false 1 5 end if 1 6 1 7 1 8 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: o Racer name; o Racer Speed; o Number of cylinders in the racer’s engine; o Horsepower of the racer’s engine; and o 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.] 3. 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. 4. Create a racer object of each type, and invoke the CollectRacerInformation passing in the Racer object. Then, store each object in the array. 5. 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 screen shots 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. Download Full Course Solution: CIS 339 CIS339 CIS/339 ENTIRE COURSE HELP – DEVRY UNIVERSITY https://www.solvedcollegepapers.com/product/cis-339-cis339-cis-339-ent/ CIS339 Entire Course includes:       

CIS 339 Week 1 Lab System Request CIS 339 Week 2 Lab Use Case Diagram and Use Case Description CIS 339 Week 3 Lab Class Diagram and CRC Cards CIS 339 Week 4 Lab Behavioral Model and Diagrams CIS 339 Week 5 Lab Package Diagram CIS 339 Week 6 Lab CRCs Contracts and Method Specifications CIS 339 Week 7 Lab Object-Oriented Programming Language

Download Full Course Solution: NEW SOLUTION-CYBR-260: SECURITY SCRIPTING WITH PYTHON-ENTIRE COURSE HELP-CHAMPLAIN COLLEGE https://www.solvedcollegepapers.com/product/new-solutioncybr-260-security-scriptingwith-python/ CYBR-260 Assignment Week 1: Discussion – Final Project Ideas Assignment, CYBR-260 Week 1: Assignment – Project Proposal Assignment, CYBR-260 Week 1: Programming Assignment Assignment, CYBR-260 Week 2: Discussion – Program Design Assignment, CYBR-260 Week 2: Programming Assignment Assignment, CYBR-260 Week 3: Discussion – Data and Manipulations Assignment, CYBR-260 Week 3: Assignment – Design Documentation Next Stage Assignment Download Full Course Solution: CFDI-320 Week 3 Assignment – Another Day on the Job


https://www.solvedcollegepapers.com/product/cfdi-320-week-3-assignment-anotherday-on-the-job/ You are a digital forensic examiner working at a firm and your next job is to conduct a digital forensic analysis on a forensic image created of a disk drive. You will need to use the department report titled Week 3 – Assignment Report.docx download to conduct an examination on the forensic image week3assignment1.e01 located in our class directory CFDI-320 on the S:\ drive

Download Full Course Solution: [FULL COURSE SOLUTIONS AVAILABLE] CMIT-13045-Assignments-Week 4-5-6-7: Case Study https://www.solvedcollegepapers.com/product/full-course-solutions-available-cmit-13045-assignments-week-4-5-6-7-case-study/

Week 4: Case Study Please complete the Case Studies for Chapter 6 on page 282.

Week 5: Case Study Complete the case studies for Chapter 7 on pages 337-338 of your text.

Week 6: Case Study This weeks case studies are on pages 467 and 468 for Chapter 10. Keep up the good work!

Week 7: Case Study Please complete the case studies for Chapter 11 on page 521 of your text. Good luck. Case Projects (3)


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.