首页 > > 详细

159100留学生作业代做、代写Programming作业、C++编程语言作业调试、C++作业代做代写Python程序|代写留学生 Statistics统计、

Course: 159100 Introduction to Programming
Assessment: 04 Computer Programmes & 05 Computer Programmes
Course Learning Outcomes Assessed:
• Define variables and perform input/output operations.
• Control program flow with conditional and iteration statements.
• Write, compile and debug C++ programs.
• Construct suitable Graphical User Interfaces and generate beginner-level graphics.
• Write, compile and debug C++ programs
Weighting: 30 %
Due Date: 18/10/2020, 5:00 PM
This is an individual assessment.
Introduction
It’s common for engineering projects to require parts and items to be purchased, especially by a third
party. One way to make it easy for them to get what you want, and from where you want them to get
it from, is to collate all the parts’ details into a single document - a Bill of Materials (BOM). A BOM is a
shopping list for parts that are required to create a product.
You are required to write a C++ program that allows a user to interactively create a BOM and export
it to a file.
Aims
The assessment’s aims are to demonstrate proficiency in:
• Writing, building, and running a C++ program.
• Defining a class and using its member variables and member functions.
• Creating Graphical User Interfaces.
• Using the Qt framework.
Objectives
The assessment’s objective is to:
• Write a C++ program that allows a user to interactively create a BOM and export it to a file.
The program should be able to:
• Let the user enter an item’s description, how many units are needed, the supplier’s part
number, where to get it from, and how much it costs.
• Let the user add multiple items to the BOM.
• Display the current BOM, the number of items, and the current total cost to the user.
• Let the user export the BOM to a text file.
Your program must use an Item class. The class should have private member variables that store
the item’s description, the supplier’s part number, where it can be purchased from, and how much it
costs. The class should have public accessor and mutator functions that get and set the private
member variables’ values. Choose appropriate names and data types for the class’s member
variables. Choose appropriate names for the class’s member functions; choose appropriate names
and data types for their returned data and parameters.
Requirements
You are required to:
• Write a C++ program that addresses the assessment’s objectives.
• Write a report detailing what you did, how, and why.
Resources
Use the following data to test your program:
Submission Instructions
Add all your source code files and report to a .zip archive and name it in the following format:
FIRSTNAME_LASTNAME_ID.zip. Do not include your build directory.
Upload your submission to Stream before the due date.
Hints
The following figures should give you an idea of how data could be captured, how it could be
presented, how it could be exported, and how it could be saved:
1. An example interface 2. An item being entered.
3. An item being added to the Bill of
Materials.
4. The Bill of Materials being exported.
5. The exported file’s contents.
Name Part Number Units Source Cost
10k Ohm 1 Watt Carbon Film Resistors - Pack of 2 RR2798 100 https://www.jaycar.co.nz/10k-ohm-1-watt-carbon-film-resistors-pack-of-2/p/RR2798 0.08
0.71mm Duratech Solder - 200gm NS3005 1 https://www.jaycar.co.nz/0-71mm-duratech-solder-200gm/p/NS3005 19.9
40W Soldering Iron with LEDs TS1470 1 https://www.jaycar.co.nz/40w-soldering-iron-with-leds/p/TS1470 28.9
Deluxe Soldering Iron Stand TS1507 1 https://www.jaycar.co.nz/deluxe-soldering-iron-stand/p/TS1507 21.9
Total
$78.70
You may find the following headers helpful:
• QFile
• QFileDialog
• QTextStream
• QVector
The following code shows how to create an instance of the QVector class and push a value to its end:
QVector myVector {};
myVector.push_back(1);
The following code shows how to create an instance of the QTextStream class and use it to write
data to a string:
QString string {};
QTextStream stream {string};
stream << “Hello World”;
The following code shows how to get a file name using the QFileDialog:
QString filename = QFileDialog::getSaveFileName(this, “Save”,
“C:/”, “Text (*.txt)”);
Frequently Asked Questions
Q. How long should the report be?
A. It should be between 1000 – 1500 words.
Q. How should I structure my report?
A. You should include the following sections: Introduction, Algorithm, Methodology, Results, and
Conclusion. You should discuss your program’s high-level operation in the Algorithm section; you
should discuss your program’s implementation in the Methodology section; and you should discuss
your program’s results in the Results section. Be sure to include your program’s results in your
Results section.
Q. What Integrated Development Environment (IDE) should I use?
A. You should use Qt Creator.
Q. What compiler should I use?
A. You should use Qt’s MinGW kit’s compiler.
Q. Can I get an extension?
A. Yes, but only for exceptional circumstances, e.g. cases of illness, injury, bereavement or other
critical personal circumstances beyond your immediate control. Extensions will be granted at course
or offering coordinator’s discretion. Last minute computer failure and loss of data/files is a very
common excuse and generally not acceptable. Plan to complete the assessment a few days before
the deadline. Start early! Do not underestimate the time it will take to get a working application and
write a good report.
Program Marking Rubric
The program is worth 2/3 of the assessment’s final grade.
D Range (40 – 49.99) C Range (50 – 64.99) B Range (65 – 79.99) A Range (80 – 100) Weighting
Poor Adequate Good Excellent.

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp
热点文章
程序代写更多图片

联系我们 - QQ: 99515681 微信:codinghelp
© 2014 www.7daixie.com
程序代写网!