Fundamentals of Business Intelligence

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

MMIS 671: Fundamentals of Analytics and Business Intelligence

Final Exam, Fall 2018

Due by 9 am on Tuesday, December 4, 2018

Maximum Score: 35 Points.

Name: ________________________________________

· Please answer the questions and submit a single consolidated document by the due date.

· Late penalty 20 points

· You may use any reference material, but there should be no collaboration or consultations.

· Penalty for any collaboration 30 points

· The last 4 pages specify the format for presenting your solutions.

· Please let me know in class on November 27 if you need any clarifications.

Problem 1. Optimization Models [10 Points]

A company produces and sells two types of coolants (C1 and C2) by mixing three grades of solvents (A, B, and C) in different proportions.

Minimum percentages of grade A solvent and maximum percentages of grade C solvent allowed for each type of coolant are specified. The company has to produce at least a specified minimum quantity of each type of coolant. The table below presents these requirements, along with the selling price of each type of coolant.

Minimum percent ofgrade A allowedMaximum percent ofgrade C allowedMinimum Quantity Required(gallons)Selling priceper gallon
C140%30%100,000$4
C220%60%100,000$3

Availability of the three grades of solvents and their costs are as follows:

GradeABC
Maximum quantity available per day (gallons)60,00060,00090,000
Cost per gallon$3$2$1

The company wants to maximize profits subject to the specified constraints.

Formulate the problem as a linear program, find the optimal solution, and answer the following questions:

a. What is the maximum profit attainable? [3 Points]

b. How many gallons of each solvent are used to produce each type of coolant under the optimal solution? [3 points]

c. At most how much should the company be willing to pay for one additional gallon of grade A solvent (beyond its current availability of 60,000 gallons)? [4 points]

Problem 2. Linear Regression [10 Points]

The data file “trainFinal.csv” contains observations on 12 variables: class, x1, x2, …, x10, y

Run a regression to predict the output variable y based on the 10 input variables x1, x2, …, x10.

(a) [5 Points]

Interpret the regression results to complete the table below. Specify the coefficient estimates (rounded to 2 decimal places) under the column “Coefficient Estimate”. Specify whether the coefficient estimates are significant (Yes or No) at the 0.1% level under the column “Significant”

 Coefficient EstimateSignificant?
Intercept  
x1  
x2  
x3  
x4  
x5  
x6  
x7  
x8  
x9  
x10  

(b) [5 Points]

Predict the expected value of y for the 10 examples in the data file “newFinal.csv” and report the predicted values (rounded to 1 decimal place) in the table below.

x1x2x3x4x5x6x7x8x9x10y
0.360.300.680.380.020.610.530.520.350.78 
0.230.790.590.530.770.070.900.370.180.34 
0.800.960.350.690.190.590.850.550.750.68 
0.560.480.800.850.500.230.220.650.840.31 
0.750.390.470.020.190.230.990.030.650.87 
0.550.440.620.090.530.450.910.520.330.62 
0.200.700.240.810.220.010.820.670.400.46 
0.681.000.000.860.060.630.470.450.030.30 
0.080.490.970.080.680.820.890.820.470.96 
0.270.330.690.770.260.520.230.230.500.34 

Problem 3. Classification Tree Inductive Learning [10 Points]

Train a decision tree classifier using the observations from the data file “trainFinal.csv” to classify the output binary variable “class” based on the 10 input variables: x1, x2, …, x10.

(a) [4 Points]

Specify the rules obtained in the form:

IF <Condition> Then class = ?

(b) [3 Points]

Use the rules obtained to predict the output class for the observations in data file “testFinal.csv” and present your confusion matrix.

 actual
predicted01
0
1

(c) [3 Points]

Use the rules obtained to predict the output class for the 10 observations in data file “newFinal.csv” and present your confusion matrix. [

x1x2x3x4x5x6x7x8x9x10class
0.360.300.680.380.020.610.530.520.350.78 
0.230.790.590.530.770.070.900.370.180.34 
0.800.960.350.690.190.590.850.550.750.68 
0.560.480.800.850.500.230.220.650.840.31 
0.750.390.470.020.190.230.990.030.650.87 
0.550.440.620.090.530.450.910.520.330.62 
0.200.700.240.810.220.010.820.670.400.46 
0.681.000.000.860.060.630.470.450.030.30 
0.080.490.970.080.680.820.890.820.470.96 
0.270.330.690.770.260.520.230.230.500.34 

MMIS 671: Fundamentals of Analytics and Business Intelligence

Solutions to Final Exam, Fall 2018

Name: __________________________________________

The work presented strictly reflects my individual efforts

Question 1.

a. Maximum profit attainable = $ …………………..[3 Points]

b. Number of gallons of each solvent used to produce each type of coolant [3 points]

Number of gallons used in:grade Agrade Bgrade C
C1   
C2   

c. The company should be willing to pay at most $ ……………. for one additional gallon of grade A solvent (beyond its current availability of 60,000 gallons). [4 points]

Question 2.

Part a.

 Coefficient EstimateSignificant?
Intercept  
x1  
x2  
x3  
x4  
x5  
x6  
x7  
x8  
x9  
x10  

Part b.

x1x2x3x4x5x6x7x8x9x10y
0.360.300.680.380.020.610.530.520.350.78 
0.230.790.590.530.770.070.900.370.180.34 
0.800.960.350.690.190.590.850.550.750.68 
0.560.480.800.850.500.230.220.650.840.31 
0.750.390.470.020.190.230.990.030.650.87 
0.550.440.620.090.530.450.910.520.330.62 
0.200.700.240.810.220.010.820.670.400.46 
0.681.000.000.860.060.630.470.450.030.30 
0.080.490.970.080.680.820.890.820.470.96 
0.270.330.690.770.260.520.230.230.500.34 

Question 3.

Part a. Rules obtained:

Rule 1.

Rule 2.

Rule 3.

….

….

 Part b.actual
predicted01
0
1

Part c.

Predicted class

x1x2x3x4x5x6x7x8x9x10Predicted class
0.360.300.680.380.020.610.530.520.350.78 
0.230.790.590.530.770.070.900.370.180.34 
0.800.960.350.690.190.590.850.550.750.68 
0.560.480.800.850.500.230.220.650.840.31 
0.750.390.470.020.190.230.990.030.650.87 
0.550.440.620.090.530.450.910.520.330.62 
0.200.700.240.810.220.010.820.670.400.46 
0.681.000.000.860.060.630.470.450.030.30 
0.080.490.970.080.680.820.890.820.470.96 
0.270.330.690.770.260.520.230.230.500.34 

Explanations for Question 1.

Explanations for Question 2.

Explanations for Question 3.

8

Final Exam, MMIS 671, Fall 2018

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Arduino Code

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

Write the pseudo code using a loop function to fulfill the requirements. If you use outside resources you must cite your work in IEEE format.

Loop functions:

Do While

If /If Else If

For

Each function must be used at least once.

  1. Jeans co is a trendy colorful jean company. Whenever a customer buys one of their 5 jean colors the register lights up to match the color of the jean. Help them implement the light changes.
  2. Jean co sent out a special coupon which gives the first 25 customers 50% off their order. Help them implement the coupon.
  3. Star would like to make a system that allows a user to enter a number between 1 and 100. The system will then print out the numbers from the entered number to 100. For example if a user entered the number 95. The system would print out 95, 96, 97, 98, 99, 100. Help Star implement the system.
  4. Star has a lemonade stand. The lemonade stand operates from 8 am to 8 pm. The lemonade is priced differently throughout the day based on demand. Below is the pricing schedule. Help Star implement the system.

8 am – $2.00

9 am – $2.00

10 am – $3.50

11 am – $ 4.00

12 am – $5.00

1 pm – $5.00

2 pm – $ 5.00

3 pm – $ 4.50

4 pm – $ 3.50

5 pm – $3.00

6 pm – $ 3.00

7 pm – $2.00

5. Draw the flow chart for one of the loop functions above. i.e. Draw the flow chart for the If/Else, Do While, For loop.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Software Engineering Project

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

I have a project which is done already and I have to answer these questions based on the project

I. Requirements Engineering: 

  1. What is the method you applied for “Requirements Discovery” of your      system. Justify.  
  2. Give any ONE      (1) User requirement of your system using “Natural language specification”      
  3. Give any ONE (1) User requirement of your      system using “Structured      specification” 
  4. Give any ONE      (1) User requirement of your system using “Tabular specification”. 
  5. Give the System      requirement for one of your User      requirements
  6. Give any TWO      (2) Non-functional requirements of your system.

II. System Modelling: 

  1. Context diagram (for your complete      system) 
  2. One Use case diagram 
  3. One Sequence diagram 
  4. Class diagram  

III. Software Testing: 

  1. Explain any FOUR      (4) types of testing that you performed in your Project/System.

my project uploaded below

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

6 CYBRScore Lab 4

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

  6 Lab Assignment: Lab Eight ReportAssignment

To complete this assignment, review the prompt and grading rubric in the Lab Eight Guidelines and Rubric document. Use the Lab Report Template to structure your lab report. When you have finished your work, submit the assignment here for grading and instructor feedback.

This assignment requires you to use CYBRScore.

Lab Report Template 

Complete each of the critical elements in your lab and submit this report to your instructor for grading in your course. Be sure to keep the lab reports that you complete and review, along with any feedback provided by your instructor, as they will help you create a quality submission for your final project. Review the individual lab guidelines and rubric documents for more information on these assignments.

You may complete the report in a separate Word document. If you choose to use a separate document, include all the questions asked in the guidelines and rubric document for that lab, as well as the accompanying screenshot. Your completed report should reflect the information below. Add additional question numbers with accompanying description and screenshot as needed to match the total number of questions required on a given lab guidelines and rubric documents

1. Lab Number and Name: 

2. Brief Summary of Lab: What did you do in the lab?

· How did it work?

· What did you look for/find?

3. Specific Practices or Resources:Briefly describe the specific practices or resources that were most important in terms of supporting the investigation and maintaining evidentiary integrity in this lab. For example:

a. Chain of custody practices

b. Digital forensic tools

c. Incident response tactics

4. Best Practices:Briefly describe best practices or resources necessary in terms of next steps in this lab scenario. 

5. Screenshots:

· Include screenshots that support items 3 and 4 in your briefing.

Ensure your entire report is appropriate to your internal audience, employing brevity and consumable language (in this lab, your audience will be your teammates/company attorneys/executive team).

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Cryptography

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

Residency Make Up Session Assignment

CourseISOL535 – Cryptography
DeliverablePrepare a report to address all aspects of the case study/assignment. This report should be no less than 10 pages of content. You need to include outside sources and properly cite and reference your sources. You must have at least 10 references, 5 of which must be scholarly peer-reviewed articles. In addition to the 10 pages of content, you will want a title page and a reference sheet. This report needs to be in proper APA format.Be prepared to present a 10 minute presentation on this assignment.Students must submit both written assignment and presentation slides in the folder labeled “Make Up Assignment” in your iLearn course.
Assignment· The purpose of the research paper is to give a thorough survey of Asymmetric Cryptography.· Items that should be addressed include, but are not limited to:· Strengths of using this form of cryptography· Weaknesses of using this form of cryptography· Description of algorithms that implement symmetric cryptography and strengths / weaknesses of each algorithm· Relevant examples of modern applications / industry that utilize symmetric cryptography· Why does symmetric cryptography work best for these applications?
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Project 2 Milestone 3: DW Reporting And Visualization

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

 8) Write the SQL that will be needed to answer the three most important questions using your data warehouse. This requires writing 3 SQL statements. (10 points) 

 9) Create a visualization for your first management question. (Note: Figures P13.3.2G (page 615) and P13.3 (page 616) show single fact tables with multiple dimensions. 

 11) Create a visualization for your second management question. (Note: it must be different than the first and ideally use different fact or dimension tables). 

 12) Create a third visualization, it must be different than the first two and should use different fact or dimension tables 

 Assessment Your submission document will be checked for correctness and completeness. Connecting Assignments This milestone takes the populated database for the DW from milestone 2 and uses it to produce reports and visualizations that answer the questions from Milestone 1. It is the final step that demonstrates the value of implementing a DW. 

Onces we pick bid , we are going give milestones answers for M1 and M2 . So that it will easy to do M3.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Microsoft Access Database

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

The objective of this project is for students to apply the database design principles to a real-life scenario. This is a practical design project – students must create and submit the database, as well as documentation for the items below. The students will review database requirements and produce the following:

· Database with normalized tables: A set of tables in at least third-normal form is required for completion of this project. Complete table structures are required; students must also determine if primary or any other keys are required for each table. The student must also describe, in detail, the rationale he/she used in developing the specified set of tables, as well as the specific fields in the tables.

· E-R diagram: An E-R diagram for the database is required for this project. This may be completed in Word, Excel, or whatever program the student is most comfortable using.

· DBDL diagram, complete with relevant keys: A DBDL diagram is required for this project. This may be completed in Word, Excel, or whatever program the student is most comfortable using. (Separate file for upload to Blackboard)

· Suggested user roles and permissions as related to access and security: Using the users identified below, please specify what data and types of reports each user would most likely need access to, and privileges in the database that would most likely be assigned. Support your answer with information from the textbook or other valid sources. (Separate file for upload to Blackboard)

· Suggested backup/archive procedures: Please suggest procedures that would be used for backup and archive of the database. Provide a detailed rationale for each, using support from the textbook or other valid sources. The emphasis is should be on process and procedures, as well as rationale for why and how each should be done; however, you may include specific technologies that you would recommend. (Separate file for upload to Blackboard)

· 3 potential reports that could be generated in response to user requests; supporting queries must be included (ex.: report of users that took the A+ in 2013; grouped by instructor, sorted by pass/fail). Rationale required for why each report could provide important information for decision-making; queries must specify criteria for record selection, as well as grouping, sorting and any other requirements for the specific report. (Will be included in database)

Scenario

You have been asked to develop a database system to track the movies your customers viewed over the past summer. The database system must structured in such a way as to be able to produce a variety of reports related to the movies viewed:

Movies Released During Summer

Movie

Genre

Rating

X-Men: Days of Future Past

Action/Adventure

PG-13

Maleficent

Family and Kids

PG

Edge of Tomorrow

Science Fiction

PG-13

How to Train your Dragon 2

Family and Kids

PG

Transformers: Age of Extinction

Action/Adventure

PG-13

Planes: Fire and Rescue

Family and Kids

PG

Hercules

Action/Adventure

PG-13

Guardians of the Galaxy

Action/Adventure

PG-13

Step Up: All In

Drama

PG-13

Teenage Mutant Ninja Turtles

Action/Adventure

PG-13

The Hundred Foot Journey

Drama

PG

When the Game Stands Tall

Drama

PG

Movies Viewed

The following movies were viewed during the summer. (Information not displayed here, but that needs to be collected, includes address and any other pertinent identifying information for customers).

Customer and Movie Viewed

Numeric Feedback Rating*

1-5

Charlotte Osborne

Maleficent

5

Edge of Tomorrow

5

How to Train your Dragon 2

4

Cory Simon

Planes: Fire and Rescue

1

Hercules

2

Guardians of the Galaxy

1

Step Up: All In

3

Jan Cruz

The Hundred Foot Journey

3

When the Game Stands Tall

4

Arnold Nunez

X-Men: Days of Future Past

5

Maleficent

5

Edge of Tomorrow

4

How to Train your Dragon 2

4

Transformers: Age of Extinction

3

Gilberto Hale

How to Train your Dragon 2

2

Transformers: Age of Extinction

2

Chad Olson

When the Game Stands Tall

1

Jodi Knight

Maleficent

1

Emanuel Ingram

Teenage Mutant Ninja Turtles

5

The Hundred Foot Journey

5

When the Game Stands Tall

4

Carol Rodgers

X-Men: Days of Future Past

4

Maleficent

4

Edge of Tomorrow

4

Freddie Simpson

The Hundred Foot Journey

3

Ebony King

Guardians of the Galaxy

3

Step Up: All In

5

Teenage Mutant Ninja Turtles

5

Kim Marshall

Planes: Fire and Rescue

5

Hercules

4

Guardians of the Galaxy

4

Step Up: All In

1

* 1 – hated it, 2 –disliked it, 3 – neither liked nor disliked, 4 – liked it, 5 – loved it

Users

The following users must have some level of access to the database:

· Data Administrators: data administrators are responsible for maintaining the customer records, movies released, the genres, and the ratings.

· Data Entry Staff: Data entry staff are responsible for entering the information related to movies the customers have seen, and their numeric feedback rating.

· Management: Viewing statistics reports are used by management to track viewing for marketing of other products to customers.

CIT2410 Project Rubric

Tables (0-20 points)

· All entries are single-valued

· Each column has a distinct name.

· All the values in a column are values of the attribute that is identified by the column name.

· The order of columns and rows is immaterial.

· Each row is distinct.

· Rationale used in developing the specified set of tables, as well as the specific fields in the tables is provided.

Keys (0-10 points)

· All appropriate keys have been identified and their functions described.

· Primary key is a minimal collection of columns on which all columns are functionally dependent.

E-R Diagram (0-10 points)

· Graphic model is complete with all entities, attributes, and relationships represented.

DBDL Diagram (0-10 points)

· Diagram is complete with all tables, attributes, and keys (primary, alternate, secondary and/or foreign).

· DBDL is written using correct formatting.

User Roles/Data Permissions (0-10 points)

· User permissions clearly specify the kind of access each user role has to the objects (tables, reports, etc.) in the database.

· Supporting information from the text is provided.

Backup (0-10 points)

· Suggested procedures and schedule for backup of the database are provided.

· A detailed rationale, with supporting information from the text, is provided.

Archive (0-10 points)

· Suggested procedures and schedule for archival of the database are provided.

· A detailed rationale, with supporting information from the text, is provided.

Reports (0-10 points)

· 3 potential reports that could be generated in response to user requests are identified.

· Rationale for why each report could provide important information for decision-making is provided.

Supporting Queries (0-10 points)

· Queries are provided, and specify criteria for record selection, as well as grouping, sorting and any other requirements for the specific report.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Assignment 3: The Future Of Application Security

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

For this assignment, research a recent cyber attack that has taken place within the past 5 years. 

  • What happened? 
  • Could it have been prevented and how?
  • Based on what you have learned in this course, what do you think took place behind the scenes?
  • How do you think the situation could have been mitigated?
  • What can be done to prevent these types of future attacks?

For this Assignment, submit a 1 to 2 page response in the below format:
 

  • Single  typed, double spaced, using Times New Roman font (size 12), with  one-inch margins on all sides; citations and references must follow APA  or school-specific format. Check with your professor for any additional  instructions.
  • Include  a cover page containing the title of the assignment, the student’s  name, the professor’s name, the course title, and the date. The cover  page and the reference page are not included in the required assignment  page length
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

TopBike

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

term Paper: TopBike

Due Week 10 and worth 230 points

This assignment consists of two (3) sections: analysis and design document, a requirements document, and a project plan that is created through the use of MS Project. You must submit the three (3) sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment it is written for. Additionally, you may create and / or assume all necessary assumptions needed for the completion of this assignment.

Read the article titled “TopBike” and complete this assignment located here:  Week 10 Term Paper – Top Bike.PDF   <——THIS IS ATTACHED SCREENSHOTS AT THE BOTTOM!!!!!!!

Imagine that you, a systems architect leading a consulting team, are asked to perform a systems analysis and design to help TopBike implement a software system that can improve their profits and save costs.  

Section 1: Analysis and Design Document

  1. Write a ten to twelve (10-12) page paper in which you:
    1. Identify the business problems that TopBike has.
    2. Determine the analysis technique for this project and explain why.  
    3. Determine the methodology for this project and explain why.
    4. Identify the roles (i.e., system analyst, developer) for the team and explain their responsibilities.
    5. Explain how to conduct requirements gathering sessions and determine the tools to use.
    6. Create the functional model, structural model, and behavioral model with class diagrams through the use of graphical tools in Microsoft Word or Visio, or an open source alternative such as Dia. Note: The graphically depicted solution is not included in the required page length.
    7. Create a design document with a data management layer.
    8. Draw a physical architecture diagram for the final solution through the use of graphical tools in Microsoft Visio, or an open source alternative such as Dia. Note: The graphically depicted solution is not included in the required page length. .
    9. Explain the human-interface design considerations.
    10. Explain the steps for developing test cases and describe how they help the overall project.
    11. Determine the change management process and post implementation strategy for the project and product. 
    12. Use at least four (4) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.

Section 2: Requirements Document

  1. Create a requirements document that includes:
    • Functional and nonfunctional requirements for TopBike.
    • Nonfunctional requirements for TopBike.
    • Use cases and their descriptions.

Section 1 and 2 of this assignment must follow these formatting requirements:

  • Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.
  • Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.
  • Include charts or diagrams created in Visio or Dia. The completed diagrams / charts must be imported into the Word document before the paper is submitted.

Section 3: Project Plan

Use Microsoft project to:

  1. Develop the project plan. The project plan must:
  • Record all tasks, subtasks, resources, and time related to the project.
  • Outline the planning, analysis, design, and implementation phases.
  • Identify the key milestones of your project.

The specific course learning outcomes associated with this assignment are:

  • Explain and apply object-oriented analysis techniques.
  • Compare and contrast different roles needed in systems analysis and design.
  • Compare and contrast requirements gathering among traditional and iterative project methods.
  • Procure, document, and scope IT project requirements with use cases.
  • Describe object-oriented modeling, structural modeling, and behavioral modeling.
  • Develop class diagram based on business scenarios.
  • Create a business requirements document that conforms to the Unified Modeling Language standard.
  • Apply the project requirements steps of eliciting, analyzing, documenting, and testing to address and solve a proposed business problem.
  • Determine the steps and principles of design modeling with UML.
  • Describe how societal mores and social media impact the design of human-computer interactions.
  • Describe the impact of contemporary computing architecture to the physical architecture design.
  • Describe how to gather nonfunctional requirements and its importance for overall IT project success.
  • Explain the importance of change management and post-implementation support and how they impact business and overall enterprise.
  • Describe and design test cases that uncover software bugs.
  • Develop a business requirements document that addresses and solves a proposed business problem.
  • Use technology and information resources to research issues in procuring and designing project requirements.
  • Write clearly and concisely about project requirements and design topics using proper writing mechanics and technical style conventions.
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Lab 2 – Classes

 
"Our Prices Start at $11.99. As Our First Time Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"
 

include the header files for the three classes

Overview

The purpose of this assignment is to give you some experience writing classes in C++, including utilizing accessors and constructors to organize data properly.

Description

This program will represent a hypothetical car production line, which consists of a chassis (body of a vehicle) and wheels. These two components will be used to make fully functioning vehicles (just use your imagination). To that end, there are three classes you will be writing:

• Vehicle

• Chassis

• Wheel

For this assignment, main.cpp will be provided for you, so you don’t have to worry about the structure of the program. Instead, you can focus solely on the structure of the classes and their interactions. I suggest looking at main closely, to help you understand the structure of the project. Chassis The Chassis class is the backbone of your vehicle. You will need to store the following data:

• The size of the chassis (small, medium, large)

• The quality of the chassis (poor, fair, good)

• The number of wheels it can support The number of wheels a given chassis can support is dependent on the size of the vehicle. If the vehicle is small, it functions with 3 wheels (the tri-wheeled wonder).

If it is medium, 4 wheels are required. If the vehicle is large, you will need to have 6 wheels. The default constructor for the chassis will insure it is a medium sized chassis of fair quality. You will also need to implement two more constructors, one that will allow you to specify a size for the chassis, and one that will allow you to specify a size and quality for the chassis. Finally, you will need a getter method for the number of wheels called getNumWheels(). Wheels Your Wheel class should contain variables for the following:

• Mileage Left

• Condition the wheel is in (poor, fair, good) The default condition for Wheels made will be fair. A fair wheel will have 10,000 miles available to it at the start. A good wheel will have 20,000 and a poor wheel will start with 5,000. You will once again need a default constructor and a second constructor that overrides the condition of the wheel. Vehicle The Vehicle class will be the finished product of your production line, being comprised of the other objects defined below. You will need to store the following data: • The price • Wheels • A Chassis (body of car)

• Is it drivable? (Boolean) The quality of the chassis and the condition of the wheels will determine the price of the vehicle. The base price of all vehicles is 500. The chassis will apply a multiplier of 5, 8 or 12 to this, depending on its quality. Likewise, the quality of each wheel will apply a multiplier of 1.5, 1.8 or 2.2. (Maybe price should be a float to account for this?). Additionally, a vehicle only becomes drivable once it has the appropriate number of wheels added to it. An example: A good, small chassis with 2 poor wheels and 1 fair wheel. Bolded is the wheel multipliers (3 of them). 500 * 12 * (1.5 * 1.5 * 2.2) = 29,700 In addition to the above, you will need to implement the following methods:

• addWheel() will is fairly self-explanatory, adding a new wheel object to your car (consider using a vector for this). An additional condition is that if you have already added the max number of wheels for the given vehicle (chassis size), the message “You’ve already added all the wheels!” should be displayed

• isBuilt() should return a Boolean as to whether or not the chassis and all wheels have been added to the vehicle.

• Drive() will give your car the ability to go for a test run. The integer it takes in should be the mileage you want the vehicle to travel. If the value entered is greater than the tire with the least mileage left, you should display the output “Broke Down!”. After every drive print “You’ve traveled x miles!” where x is the amount traveled. If you broke down, this value could be different from the value passed into the function. Additionally, make sure to change the condition of the wheels based on their mileage left. If above 10,000 they are good. If above 5,000 they are fair. Below that you have poor wheels. Keep in mind, a change in condition also means a change in price for the vehicle! Finally, if you attempt to drive the vehicle before it is built, the message “Vehicle not built. Literally un-drivable” should be displayed.

• getChassis() should just return the current vehicle’s chassis.

• Display() should display all the information of a vehicle and its associated chassis and wheels. Here is a sample output: Tips A few tips about this assignment:

• You can print out a tab character (the escape sequence ‘\t’) to help line up theoutput.

• Don’t try to tackle everything all at once. Work on one class at a time. Can’t have a Car without a Chassis.

• You can customize the way numbers are displayed in C++ (particularly floating-point numbers). The header file contains this functionality. Look into std::fixed andstd::setprecision()

Main class

#include “Vehicle.h”
#include “Wheel.h”
#include

int main()
{
Wheel plainWheel;

Chassis plainChassis(“medium”);
Vehicle firstCar(plainChassis);

for(int i=0; i < firstCar.getChassis().getNumWheels(); i++) {
firstCar.addWheel(plainWheel);
}

//since all plainWheels have been added, it should be built
if(firstCar.isBuilt()) {
std::cout << “Built!\n” << std::endl;
firstCar.Display();
}

Chassis superChassis(“large”,”good”);
Vehicle superCar(superChassis);

if(!superCar.isBuilt()) {
std::cout << “Where are the wheels!\n” << std::endl;
}

Wheel superWheel(“good”);

superCar.addWheel(superWheel);
superCar.addWheel(superWheel);
superCar.addWheel(superWheel);
superCar.addWheel(superWheel);

superCar.addWheel(plainWheel);
superCar.addWheel(plainWheel);

superCar.Display();
superCar.Drive(8000);
superCar.Display();

Wheel badWheel(“poor”);
Chassis reallyBadChassis(“small”, “poor”);
Vehicle badCar(reallyBadChassis);

for(int i=0; i < badCar.getChassis().getNumWheels(); i++) {
badCar.addWheel(badWheel);
}

badCar.Display();
badCar.Drive(6000);
badCar.Display();

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"