Case Study Analysis 2
The Cholesterol.xls records cholesterol level data for individuals. Descriptions for the data follow:
· Cholesterol: Cholesterol level (mg/dL)
· Income: annual income in $
· Age: age of individual
· Jogging: number of hours an individual spends on jogging a day
· Saturated fat: the amount of saturated fat an individual takes a day (g)
(A) Develop an estimated regression equation that can be used to predict Cholesterol level using age, jogging income, and saturated fat. Discuss your findings including interpretation of slope of each variable and significance, using at least 200 words. Use .
(B) Starting with the estimated regression equation developed in part (A), delete any independent variables that are not statistically significant and develop a new estimated regression equation that can be used to predict Cholesterol level. Use . Discuss your findings including interpretation of slope of each variable and significance, using at least 200 words. Use .
(C) Compare model (A) and (B) in terms of R^2 and which model fits the data better? Discuss this using at least 100 words
(D) In model B, what are the most important factors affecting Cholesterol level? What are the least important factors? Discuss this using at least 100 words
Assignment1DueTHURSDAY.zip
Assignment1/Assignment1-17.pdf
ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 1
ICT209 Assignment 1 2016
Objectives:
• Demonstrate that you can do Object Oriented design
• Demonstrate that you can write Object Oriented programs using C++.
• Demonstrate that you can design and write programs using user defined data structures.
• Demonstrate that you can work with data files.
• Demonstrate that you can write test plans and show evidence of systematic testing.
• Demonstrate that you can design using UML.
You do not work in groups for this assignment, as this is an individual assignment.
Worth:
14% of the unit
Due:
Midnight (end of Session 7). This would be the 7th teaching week.
How to submit (also see unit guide - section on Assignment/Project submission/return):
Singapore or Dubai Campus:
Into the assignment submission area for the unit in LMS. Follow all directions from your lecturer.
Murdoch Campus Internal students:
Into the assignment submission area for the unit in LMS.
Externals:
Into the assignment submission area for the unit in LMS.
For submitting in LMS, zip up the entire folder. Make sure that you have included all needed files. Do not
include temporary files or files not relevant to the assignment.
Name the zip file with the unit code, Assignment number, your name, student number.
ICT209Asg1JoBlogs12345678.zip
or alternatively,
ICT209_Asg1_JoBlogs_12345678.zip
Textual submissions should be type-written. External documentation can only be in the following formats:
Text (.txt)
PDF (.pdf)
RTF (.rtf)
HTML (.html)
Image formats : PNG ...
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
1. Case Study Analysis 2
The Cholesterol.xls records cholesterol level data for
individuals. Descriptions for the data follow:
· Cholesterol: Cholesterol level (mg/dL)
· Income: annual income in $
· Age: age of individual
· Jogging: number of hours an individual spends on jogging a
day
· Saturated fat: the amount of saturated fat an individual takes a
day (g)
(A) Develop an estimated regression equation that can be used
to predict Cholesterol level using age, jogging income, and
saturated fat. Discuss your findings including interpretation of
slope of each variable and significance, using at least 200
words. Use .
(B) Starting with the estimated regression equation developed in
part (A), delete any independent variables that are not
statistically significant and develop a new estimated regression
equation that can be used to predict Cholesterol level. Use .
Discuss your findings including interpretation of slope of each
variable and significance, using at least 200 words. Use .
(C) Compare model (A) and (B) in terms of R^2 and which
model fits the data better? Discuss this using at least 100 words
(D) In model B, what are the most important factors affecting
Cholesterol level? What are the least important factors? Discuss
this using at least 100 words
Assignment1DueTHURSDAY.zip
Assignment1/Assignment1-17.pdf
2. ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 1
ICT209 Assignment 1 2016
Objectives:
• Demonstrate that you can do Object Oriented design
• Demonstrate that you can write Object Oriented programs
using C++.
• Demonstrate that you can design and write programs using
user defined data structures.
• Demonstrate that you can work with data files.
• Demonstrate that you can write test plans and show evidence
of systematic testing.
• Demonstrate that you can design using UML.
You do not work in groups for this assignment, as this is an
individual assignment.
Worth:
14% of the unit
Due:
Midnight (end of Session 7). This would be the 7th teaching
week.
How to submit (also see unit guide - section on
Assignment/Project submission/return):
Singapore or Dubai Campus:
Into the assignment submission area for the unit in LMS. Follow
3. all directions from your lecturer.
Murdoch Campus Internal students:
Into the assignment submission area for the unit in LMS.
Externals:
Into the assignment submission area for the unit in LMS.
For submitting in LMS, zip up the entire folder. Make sure that
you have included all needed files. Do not
include temporary files or files not relevant to the assignment.
Name the zip file with the unit code, Assignment number, your
name, student number.
ICT209Asg1JoBlogs12345678.zip
or alternatively,
ICT209_Asg1_JoBlogs_12345678.zip
Textual submissions should be type-written. External
documentation can only be in the following formats:
Text (.txt)
PDF (.pdf)
RTF (.rtf)
HTML (.html)
Image formats : PNG, GIF, JPG, TIFF, BMP. (BMP and TIFF
cannot be used for Web documents)
Mandatory Readings:
• Unit textbook. “C++ Programming: Program Design Including
Data Structures” by D.S. Malik. You
need to understand the material from the first chapter to the
chapter on “Overloading and Templates”.
The chapter on Overloading and Templates is particularly
important – the earlier chapters prepare you
so that you understand this chapter.
4. • Lecture notes – at least up to topic 05 and complete all
laboratory exercise up to laboratory session 5.
Video tutorials:
• If you are struggling with the practical aspects (programming)
of this unit, you might find the
YouTube videos from Bucky’s C++ Programming Tutorials
useful. You should consider starting from
the beginning of the video tutorial series at
ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 2
https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE
85DE8440AA6B83. The video
tutorials on files are near the end of the video tutorial series.
Please read the following very carefully and identify the
requirements. You may want to make
separate notes.
Do not start the design or coding until you have understood the
requirements. If unsure of
something, check the QandA file for the assignment. If your
query is not addressed in the
QandA file, please email your query to the lecturer.
You should also check the QandA file from time to time as
queries and answers get recorded
5. in that file.
Assignment Question:
Design an object-oriented solution and implement the solution
in C++ to solve the problem with the
specifications given below.
Program input:
Shares are traded on the stock market and the transactions are
recorded in course of sales files for each share
code on the stock market.
Each day's course of sales for a particular stock is recorded in
one file. For assignment 1, you will be
working with only one stock and one course of sales file. This
is the share trading information for one
company on a particular day. The data file that is provided
contains actual share transaction data on a
particular day, for a particular company listed on the Australian
Stock Exchange. The company name or stock
code is not relevant for assignment 1 but can be relevant in
future iterations of the assignment.
Each data row shows the date-time, the price at which the stock
was traded, the volume of shares traded, the
monetary (dollar) of the shares traded and a condition field that
is not relevant to the assignment.
Examine the data file in a spreadsheet to work out the meaning
of the data. For programming purposes, you
will need to examine the data using a text editor. The text editor
for Visual studio or Codeblocks should show
you the nature of the data file.
Program output:
The program reads data from the data file and produces output
6. according to the menu option selected by the
user.
Date is shown as dd/mm/yyyy. (02/01/2016).
Time uses the 24-hour format.
Menu option 1:
The highest share price and start time(s) of the highest share
price during the day. This is printed on the screen
in the following format:
Date: <the transaction date>
Highest price: <the highest price>
Start time(s):
<time when highest price transaction occurred>
https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE
85DE8440AA6B83
ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 3
<time when highest price transaction occurred>
...
The highest price could be reached more than once during the
day. If so, list each time on a new row. Do not
list duplicate time values.
Menu option 2:
The lowest share price and start time(s) of the lowest share
price during the day. This is printed on the screen
7. in the following format:
Date: <the transaction date>
Lowest price: <the lowest price>
Start time(s):
<time when lowest price transaction occurred>
<time when lowest price transaction occurred>
...
The lowest price could be reached more than once during the
day. If so, list each time on a new row. Do not
list duplicate time values.
Menu option 3:
The output goes to a file called output.csv where the fields
(individual items of data) are separated by commas.
The output format is:
Date, Start time, Price of share, Volume of shares traded, Total
value of shares traded
The data file will have a record (row) for each time the share
price changes. The output will have data
arranged in increasing time order.
The output fields have the following meanings:
• Date: Date of trading.
• Start time: The time when the share price changed to the value
indicated in the "Price of share" field.
This time value is used to indicate that the share price changed
to a new price value. The input data file
may have multiple consecutive records (rows) where the share
8. price is the same. This means that there
may be multiple consecutive share transactions where the share
price remained the same. In the output
data file, output.csv, the Start time field records when the share
price changed to a different value. The
intention here is that this field records the time of initial change
to a price in a series of consecutive
same price transactions.
• Volume of shares traded: The number of shares traded since
"Start time" at the value indicated in the
"Price of share" field.
• Total value of shares traded: The total monetary (dollar) value
of the shares given in the "Volume of
shares" field.
Treat a value of zero (0) for the price field in the input data file
the same way as other prices are treated.
ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 4
Menu option 4:
Exit the program
Processing advice:
Make sure the design is modular to cater for future iterations of
the assignment requirements. For example,
future iterations may require handling of multiple stock codes
and multiple dates. New output requirements
may be needed.
9. If you do not attempt to "future-proof" your design, you will
find that you will be re-doing all (or most) the
work to cater for new requirements within a restricted time
frame.
Heed the advice and lessors learned in laboratory session 5.
Complete all readings from topic 1 to 5 before
starting to work on this assignment. You can of course write
small programs to test out ideas: like how to read
and extract data from the given data file; test out algorithms for
doing the required processing and unit test
basic classes like the Date class for use in this assignment.
Completion of laboratory exercise 5 is important
for this assignment.
Data Structures:
You may want to reuse the date class from the laboratory
exercises. A vector class must be used and you must
write your own minimal and complete template vector class to
store data in a linear structure (see laboratory
exercise for session 5). For the purposes of the assignment, a
vector class is a dynamic array encapsulated in a
class. Access to the private array is through the vector’s public
methods. The name of this template class will
be Vector. To better understand this requirement, you should
complete the textbook chapter on “Overloading
and Templates”.
As indicated earlier, you should design your classes so that they
can be used in the future with different
specifications of this assignment. See the session 5 exercise
where you are asked to “future-proof” your
design.
10. You should be careful that you do not have data structure
classes that do I/O. I/O may be there for debugging
purposes only. If you have data structure classes that do I/O,
you will have to a lot more re-coding (i.e. a lot
more work) when the I/O requirements change. You may want
to have dedicated I/O classes instead.
STL data structures cannot be used in this assignment. There is
a 30 marks penalty for using STL or not using
the required data structures in this assignment.
You may use std::string and string stream classes in your
program instead of using C like strings. You may
use iostream and file handling classes and objects in C++. See
laboratory exercises.
Any advice and further clarifications to these requirements
would be found in the QandA file in the
assignment 1 area. Questions and Answers (if any) would also
be found in this file.
Documentation: (Printed versions apply only when there is a
notification in LMS asking for hard copies.
Ignore the advice below for printed copies if there is no
notification in LMS asking for printed versions.)
• UML diagram showing the design of your classes. (printed and
soft copy)
• Data Dictionary to accompany the UML diagram. Present this
in the form of a table as shown in the
lecture notes (Lecture 11). (printed and soft copy)
• Rationale for including each method and attribute in your
vector class and any other class that you
11. write. You need to also explain why you named each attribute
and method in a particular way. It is
not acceptable to say that is how others do it. We would like to
know why you designed something in a
particular way – i.e. what is your thinking behind the design.
To simply the submission you can add
ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 5
an extra column to the Data Dictionary shown in Lecture 11.
Label the column “Rationale”. (printed
and softcopy)
• A high level algorithm for the solution. (printed and softcopy)
• Doxygen output which shows all information - as was done in
the practice for week 2. (soft copy)
• Test plan. (soft copy)
• Output of the test run(s). (soft copy)
• Executive summary indicating what works and what does not
work. (printed and softcopy). The name
of the softcopy file is evaluation.txt. This file gets created using
a text editor.
Do not print code. Code will only exist as soft copy.
Minimum requirementsi: (you will fail if you do not meet any of
these requirements)
You must provide all of the following; otherwise 50 marks will
be deducted.
12. • UML design and Data Dictionary (diagrams should show high
level and the detailed version)
• Written rationale for the design – answer “why” you did
something in a particular way. “What” it does,
is written in the comments and not in the rationale. To simplify
submission, this can be inserted as a
column in the Data Dictionary table.
• Algorithm
• Doxygen output
• Program that builds (using Microsoft Visual C++ 2010ii or
Microsoft Visual C++ 2012 or the latest
edition of code::blocks) and runs.
• Source code with doxygen style comments. (soft copy only)
• Test plan
• Output of test run(s)
• Executable program with associated data files in a separate
directory called “executable”. Make sure
that the executable runs on a machine that does not have a
compiler. All associated data files must be
provided here too.
• A declaration indicating what works and what does not work
in your program. This declaration should
be provided as a separate document called “evaluation.txt”. The
declaration is a summary of your test
plan and output of test runs. Test plan and output of test runs
have a lot of detail and are separate
documents. The file evaluation.txt is only a summary – like an
executive summary.
Marking
13. UML diagram 10%
Written rationale for the design + algorithm 20%
Program (includes coding, coding style, comments, C++
classes) 55 %
Test plan and testing 15%
Penalty summary:
STL data structures used or if the required data structures are
not created/used: -30 marks
Missing minimum requirements: -50 marks
Late penalty -10 marks /day
The lowest total mark you can get is 0.
i Think of these as “client requirements”. You need to deliver as
specified otherwise the client will not accept.
ii Only these versions (2010 or 2012) of Microsoft Visual C++.
Assignment1/Course_of_sales.csvCourse Of SalesTimePrice
($)VolumeValue ($)Condition10/10/2013 04:57:27
PM5.81500029050.00LT XT10/10/2013 04:48:05
PM5.8162728364449.68SX XT10/10/2013 04:10:33
PM.000.0010/10/2013 04:10:33 PM.000.0010/10/2013 04:10:33
PM.000.0010/10/2013 04:10:33 PM5.814512620.3110/10/2013
04:10:33 PM5.81500029050.0010/10/2013 04:10:33
PM5.81145842.4510/10/2013 04:10:33
PM5.81924153690.2110/10/2013 04:10:33
PM5.81875950889.7910/10/2013 04:10:33
PM5.81187510893.7510/10/2013 04:10:33
PM5.8158336.9810/10/2013 04:10:33
PM5.8113707959.7010/10/2013 04:10:33
PM5.8190000522900.0010/10/2013 04:10:33
PM5.816383706.7810/10/2013 04:10:33
PM5.81423124582.1110/10/2013 04:10:33
PM5.8171191413619.7110/10/2013 04:10:33