CIS 247 CIS247 CIS/247 ENTIRE COURSE HELP – DEVRY UNIVERSITY

Page 1

CIS 247 CIS247 CIS/247 ENTIRE COURSE HELP – DEVRY UNIVERSITY

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/cis-247-cis247-cis-247-oop/

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 247 CIS247 CIS/247 ENTIRE COURSE HELP - DEVRY UNIVERSITY quantity Category: Assignments Help Experts Tags: CIS 247 CIS247 CIS/247 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 247 CIS247 CIS/247 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

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


1 0 1 1 1 2 1 else 3 dead = false end if 1 4 else dead = false 1 end if 5 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.

CIS 247 CIS247 CIS/247 ENTIRE COURSE HELP – DEVRY UNIVERSITY

CIS247A Week 6 iLab Abstract Classes Scenario and Summary The objective of the lab is to take the UML Class diagram and enhance last week’s Employee class by making the following changes: 1. Convert the Employee class to an abstract class 2. Add an abstract method called CalculateNetPay to the Employee class 3. In both the Salaried and Hourly classes implement the CalculateNetPay method STEP 1: Understand the UML Diagram Analyse and understand the object UML diagram, which models the structure of the program. 1. The Employee class has been specified as abstract, which is denoted by the name of the class being initialized Employee 2. The Employee class as a new method CalculateNetPay which is an abstract method, denoted by the italized name of the method. Since this method is an abstract method the CalculateNetPay method WILL NOT have an implementation in the Employee class. 3. The Salaried and Hourly classes both have a new method CalculateNetPay that is inherited from the abstract Employee class and the Salaried and Hourly class both MUST implement the CalculateNetPay method. STEP 2: Create the Project You will want to use the Week 5 project as the starting point for the lab. Use the directions from the previous weeks labs to create the project and the folders.


1. Create a new project named “CIS247_WK6_Lab_LASTNAME”. An empty project will then be created. 2. Delete the default Program.cs file that is created. 3. Add the Logic Tier, Presentation Tier, and Utilities folders to your project 4. Add the Week 5 project files to the appropriates folders. 5. Update the program information in the ApplicationUtilities.DisplayApplicationInformation method to reflect your name, current lab, and program description. Note: as an alternative you can open up the Week 5 project and make modifications to the existing project. Remember, there is a copy of your project in the zip file you submitted for grading. Before attempting this week’s steps ensure that the Week 5 project is error free. STEP 3: Modify the Employee Class 1. Modify the class declaration of the Employee class to specify that the Employee class is an abstract class 2. Declare an abstract method called CalculateNetPay that returns a double value. 3. Modify the ToString Method to include the weekly net pay in currency format. STEP 4: Modify the Salaried Class 1. Add a double constant called TAX_RATE and set the value to .73 2. Implement the CalculateNetPay method by multiplying the weekly pay by the tax rate. STEP 5: Modify the Hourly Class 1. Add a double constant called TAX_RATE and set the value to .82 2. Implement the CalculateNetPay method by multiplying the weekly pay by the tax rate. STEP 6: Create the Main Program 1. 2. 3. 4.

Change the employeeList array to only hold two objects. Create one Hourly employee object and store it in the array. Create one Salaried employee object and store it in the array. As you did in the Week 5 lab, prompt for and collect the information for each of the objects.

Note: iterating through the array should not require any changes from the previous iteration of the project–but make sure that the loop stays within the bounds of the array. STEP 7: 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. Download Full Course Solution: CIS 273 CIS273 CIS/273 ENTIRE COURSE HELPSTRAYER UNIVERSITY https://www.solvedcollegepapers.com/product/cis-273-cis273-cis-273-web-design-anddevelopment-strayer-university/        

CIS 273 Lab Assignment 2 Three Web Pages with Hyperlinks CIS 273 Lab Assignment 4 Nested Lists and Cascading Style Sheets CIS 273 Lab Assignment 5 Navigation Bars and Repeated Images CIS 273 Lab Assignment 6 Working with Tables CIS 273 Lab Assignment 7 Form Page CIS 273 Lab Assignment 8 Adding Sound CIS 273 Lab Assignment 9 JavaScript CIS 273 Lab Assignment 10 Techincal Project Business Website

Download Full Course Solution: BUS 303 Human Resource Management Entire Course Help https://www.solvedcollegepapers.com/product/bus-303-human-resource-managemententire-course-help/ BUS 303 Human Resource Management Entire Course Help> Ashford University Bus 303 Human Resource Management Week 1 Quiz 1.docx Bus 303 Human Resource Management Week 1 Quiz 1.docx BUS 303 – Fall 2018 Bus 303 Human Resource Management Week 1 Quiz 1.docx 5 pages BUS 303 Week 1 quiz.docx Download Full Course Solution: [New Answers]-Full course CMIT-200: Relational Database Design and SQL https://www.solvedcollegepapers.com/product/cmit-200-relational-database-design-andsql/ Course Description and Prerequisites A relational database management system (RDBMS) is the heart of most modern information systems. This is a survey course in relational database design, development, and implementation.


The course covers key concepts of database design using entity relationship diagrams (ERDs), normalization, and functional dependence. Logical and physical schemas and the use of Structured Query Language (SQL) to query data will be studied in depth. Student learning is reinforced through discussions and hands-on laboratory assignments. Students will complete a relational database project by using a relational database management system. This course is intended for anyone who is involved in designing, developing, or implementing relational database management systems (e.g., users, IT managers, technical staff, and other IT team members).

Download Full Course Solution: CIS 407A CIS407A CIS/407A ENTIRE COURSE HELP – DEVRY UNIVERSITY https://www.solvedcollegepapers.com/product/cis-407a-cis407a-cis-407a-vry/ CIS407A entire course includes: CIS407A Week 1 iLab Annual Salary Calculator CIS407A Week 2 iLab User Input Web Pages CIS407A Week 3 iLab User activity monitoring CIS407A Week 4 iLab Web forms with database interaction CIS407A Week 5 iLab Transaction Processing CIS407A Week 6 iLab Login and Security Levels CIS407A Week 7 iLab Error Notification via E-MailEach tutorial includes Visual Studio ASP.NET 2013 Project.


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.