99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMP2404代做、C++編程設計
COMP2404代做、C++編程設計

時間:2024-11-04  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMP2404 -“Introduction to Software Engineering”
Assignment 3
1 Submission Instructions
Submit to Brightspace on or before the due date a compressed file (.tar or .zip) that includes
1. Header and source files for all classes instructed below.
2. A working Makefile that compiles and links all code into a single executable. The Makefile should be specific
to this assignment - do not use a generic Makefile.
3. A README file with your name, student number, a list of all files and a brief description of their purpose,
compilation and execution instructions, and any additional details you feel are relevant.
2 Learning Outcomes
In this assignment you will learn to
1. Add functionality to an existing codebase.
2. Change a class implementation while keeping the same interface
3. Make a UML diagram to illustrate the interaction between classes.
4. Implement copy constructors that use deep copy, while properly managing all dynamic memory.
5. Implement proper encapsulation (using the const keyword where appropriate)
VERY IMPORTANT!!! YOU WILL LOSE MARKS IF YOU DO NOT CONST YOUR FUNC TIONS AND PARAMETERS!!!.
3 Overview
This is a continuation of the GetHub project from assignment 2. As a starting point, you may use your own assignment,
or use the code provided.
In addition to changing existing classes, you will implement a Client class that can “download” (i.e., make a
deep copy of) a Repo, and then print the Files it contains.
As before there is a Control class that connects and coordinates the functionality of your classes with a View
class. In addition there is a separate TestControl class that allows you to run tests.
You will be required to make a UML diagram of the completed project.
4 UML Diagram
Make a UML diagram of the completed project. You may omit the Control, TestControl, Tester, and View classes.
A partial UML diagram is provided to help you get started. It includes the “uses” notation, which we did not discuss
in class, but this is the only place in the diagram where this particular notation should appear.
COMP2404 -“Introduction to Software Engineering”
Assignment 3
GetHub
// add, remove, get
+ addRepo(in title: string, in owner: string)
+ deleteRepo(in index: int)
+ getNumRepos(): int
+ download(in index: int, out repo: Repo): bool
+ addFile(in repo: string, in title: string, in content: string, in date: Date)
+ addFile(in repo: int, in title: string, in content: string, in date: Date)
+ deleteFile(in repo: int, in file: int)
// print
+ printRepos()
+ printRepo(in index: int)
+ printFileContents(in repoIndex: int, in fileIndex: int)
Client
+ cloneRepo(in getHub: GetHub, in index: int)
+ printRepo ( )
+ printFileContents(in index: int)
uses
COMP2404 -“Introduction to Software Engineering”
Assignment 3
5 Classes Overview
This application will consist of 11 classes. Ten classes are provided: these are the same classes from Assignment 2.
You will add another class and make changes to some of the existing classes.
1. The Date class (Entity object):
(a) Contains date information.
2. The File class (Entity object):
(a) Contains information about the File (name, content, last date modified)
3. The Repo class (Entity object):
(a) Contains information about the Repo (title, owner)
(b) Manages a collection of Files
4. The FileList class (Collection object):
(a) Data structure for File pointers.
5. The RepoList class (Collection object):
(a) Data structure for Repo pointers.
6. The GetHub class (Control, Collection, View object):
(a) Manages a collection of Repos.
(b) Provides services to add, delete, access, and print Repos and the Files in the Repos.
(c) Prints (error) messages to std::cout
7. The View class (Boundary object):
(a) Presents a menu, takes input from the user
8. The Control class (Control object):
(a) Manages the interaction of the other objects.
9. The TestControl class (Control object):
(a) Manages the interaction of the other objects in order to run tests.
10. The Tester class (???):
(a) Provides testing functionality.
We will be using std::cout as the main output object for error reporting.
COMP2404 -“Introduction to Software Engineering”
Assignment 3
6 Instructions
Download the starting code from Brightspace. It includes some global functions that you are to use for testing as
well as some classes. All member variables are private unless otherwise noted. All member functions are public
unless otherwise noted. Some return values are not explicitly given. You should use your best judgment (they will
often be void, but not always). ALL CLASSES MUST HAVE A PRINT FUNCTION (except for FileList and
RepoList). This print function should display the metadata of the class using appropriate formatting.
Your finished code should compile into two executables called a3 and a3test using the command make all or
simply make. The Makefile is provided for you. Your submission should consist of a single zip file with a suitable
name (e.g., assignment2.zip) that contains a folder containing all your files. This folder should also contain a
README with your name, student number, a list of all files that are included, a directory structure (if applicable),
compiling and running instructions, and any other information that will make the TAs life easier when they mark
your assignment.
Below are the changes you should make to the existing project. Section 6.1 should be applied to all classes.
6.1 Encapsulation
You should apply the const keyword to existing classes wherever possible. That means any function that can be made
const should be, and any parameter that can be made const should be. The only exceptions are (Test)Control,
Tester, and View classes - you do not need to apply const to these classes.
VERY IMPORTANT!!! YOU WILL LOSE MARKS IF YOU DO NOT CONST YOUR FUNC TIONS AND PARAMETERS!!!.
6.2 The File Class
We are going to modify the lessThan function, and add an equals function.
1. Adjust the lessThan() function so that it returns true if this File’s name comes before the parameter’s name
in alphabetical order. If the two names are equal (i.e., it is the same File) then order them as defined by
Date::lessThan using the lastModified parameter.
2. Make an equals() function that returns true if the name and the Date are equal (you do not have to compare
the content).
6.3 The Repo Class
You should add a copy constructor to the Repo class that does a deep copy of all data. Be sure to add any other
functions that you require, here or in other classes, to correctly manage your memory.
6.4 The List Classes
Modify FileList and RepoList so that they are both implemented using DOUBLY LINKED LISTS. You should
keep the same interface (public functions defined in the header), and the functions should do the same jobs as before
(except for isFull, detailed below).
Observe that once you change the implementation, everything should work exactly as before. That means all
the tests will pass whether you change these classes or not. But a TA will check and deduct or award marks as
appropriate. There is an additional change detail below.
1. FileList and RepoList:
(a) Have isFull() always return false.
COMP2404 -“Introduction to Software Engineering”
Assignment 3
(b) As a reminder, FileList should add Files in the order defined by File::lessThan, while RepoList
should add Repos to the back of the list.
6.5 The Client Class
Make a Client class. Refer to the UML diagram for function specifications. As in the GetHub class, when an
operation fails, be sure to send an appropriate error message to cout.
1. Member variables:
(a) A Repo pointer. This is the current Repo that the Client is working with.
2. The constructor should initialize all member variables appropriately (you should set your pointer to nullptr
to start with).
3. The destructor should delete all dynamically allocated memory reachable by this class.
4. cloneRepo: cloneRepo should make a deep copy of the GetHub Repo at the given index, and store the address
in your Repo pointer.
5. printRepo: call Repo::printFiles on the stored Repo, or give an error message if the Repo pointer is null.
6. printFileContents(int index): Call printContents on the File stored at the given index.
6.6 The Control Class
This class controls the interactions between the View, GetHub, and Client classes. Most of it has been done for you.
You should add a Client class, and complete downloadRepo(), printClientRepo() and printClientFileContent().
6.7 The TestControl Class
This class has been done for you. It interacts with your classes and the View to run a series of tests and output your
mark.
The old tests are provided for convenience. They may not work properly until you const your classes. You get
5 marks if the old tests still work after you have made your modifications.
In addition there are 2 new tests for the Client class worth 10 marks each.
6.8 The View Class
This class has been done for you. It interacts with the user and returns values to the control object
6.9 The main.cc and test.cc Files
These have been done for you. main.cc is compiled into an executable a3 using the Control class. test.cc is
compiled into an executable a3test using the TestControl and Tester classes. The a3 executable lets you interact
with your application from a user’s perspective. The a3test executable runs tests and gives you your mark.
7 Grading
The marks are divided into three main categories. The first two categories, Requirements and Constraints are
where marks are earned. The third category, Deductions is where you are penalized marks.
COMP2404 -“Introduction to Software Engineering”
Assignment 3
7.1 Specification Requirements
These are marks for having a working application (even when not implemented according to the specification, within
reason). The test suite will automatically allocate the marks, though they can be adjusted by the marking TA if
some anomaly is found.
General Requirements
• All marking components must be called and execute successfully to earn marks.
• All data handled must be printed to the screen to earn marks (make sure the various print functions print
useful information).
Application Requirements: With the exception of the memory leaks marks (Part 6), these marks are generated
by the a3test executable. Part 5 will be tested by a TA by running the individual tests in the a3test executable
with valgrind.
1. (5 marks):
(a) RepoList test
(b) GetHub Repo test
(c) GetHub File test
2. (10 marks): Client cloneRepo test
3. (10 marks): Client memory test
4. (10 marks, 5 marks each) FileList and RepoList are Doubly Linked Lists.
5. (4 marks): Tests 2 and 3 should pass with no memory leaks or other memory faults (2 marks per test)
6. (6 marks total) Control functions
(a) (2 marks) downloadRepo
(b) (2 marks) printClientRepo
(c) (2 marks) printClientFileContent
7. (5 marks) UML diagram
Requirements Total: 50 marks
7.2 Constraints
The previous section awards marks if your program works correctly. In this section marks are awarded if your
program is written according to the specification and using proper object oriented programming techniques. This
includes but is not limited to:
• Apply “const”-ness to your program.
– Print statements, getters, and any member function that does not change the value of any member variables
should be const.
– Any parameter object (passed by reference) that will not be modified should be const.
• Proper declaration of member variables (correct type, naming conventions, etc).
COMP2404 -“Introduction to Software Engineering”
Assignment 3
• Proper instantiation of member variables (statically or dynamically)
• Proper instantiation of objects (statically or dynamically)
• Proper constructor and function signatures.
• Proper constructor and function implementation.
• Proper use of arrays and data structures.
• Passing objects by reference or by pointer. Do not pass by value.
• Reusing existing functions wherever possible within reason. There are times where duplicating tiny amounts
of code makes for better efficiency.
• Proper error checking - check array bounds, data in the correct range, etc.
7.2.1 Constraints: 10 marks
1. 2 marks: Proper implementation and const-ing of the File class.
2. 2 marks: Proper implementation and const-ing of the List classes.
3. 2 marks: Proper implementation and const-ing of the Repo class.
4. 2 marks: Proper implementation and const-ing of the GetHub class.
5. 2 marks: Proper implementation and const-ing of the Client class.
Constraints Total: 10 marks
Requirements Total: 50 marks
Assignment Total: 60 marks
7.3 Deductions
The requirements listed here represent possible deductions from your assignment total. In addition to the constraints
listed in the specification, these are global level constraints that you must observe. For example, you may only use
approved libraries, and your programming environment must be properly configured to be compatible with the virtual
machine. This is not a comprehensive list. Any requirement specified during class but not listed here must also be
observed.
7.3.1 Documentation and Style
1. Up to 10%: Improper indentation or other neglected programming conventions.
2. Up to 10%: Code that is disorganized and/or difficult to follow (use comments when necessary).
COMP2404 -“Introduction to Software Engineering”
Assignment 3
7.3.2 Packaging and file errors:
1. 5%: Missing README
2. 10%: Missing Makefile (assuming this is a simple fix, otherwise see 4 or 5).
3. up to 10%: Failure to use proper file structure (separate header and source files for example), but your program
still compiles and runs
4. up to 50%: Failure to use proper file structure (such as case-sensitive files and/or Makefile instructions) that
results in program not compiling, but is fixable by a TA using reasonable effort.
5. up to 100%: Failure to use proper file structure or other problems that severely compromise the ability to
compile and run your program.
As an example, submitting Windows C++ code and Makefile that is not compatible with the Linux VM would
fall under 4 or 5 depending on whether a reasonable effort could get it running.
7.3.3 Incorrect object-oriented programming techniques:
• Up to 10%: Substituting C functions where C++ functions exist (e.g. don’t use printf or scanf, do use cout
and cin).
• Up to 25%: Using smart pointers.
• Up to 25%: Using global functions or global variables other than the main function and those functions and
variables expressly permitted or provided for initialization and testing purposes.
7.3.4 Unapproved libraries:
• Up to 100%: The code must compile and execute in the default course VM provided. It must NOT require
any additional libraries, packages, or software besides what is available in the standard VM.
• Up to 100%: Your program must not use any classes, containers, or algorithms from the standard template
library (STL) unless expressly permitted.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:ME5701程序代寫、代做Matlab設計編程
  • 下一篇:CS 7280代做、代寫Python編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                亚洲免费资源在线播放| 欧美日韩综合不卡| 国内精品伊人久久久久av一坑| 国产黄色精品网站| 欧美电影免费观看高清完整版在| 久久久亚洲午夜电影| 精品一区二区三区在线观看| 精品视频一区二区不卡| 亚洲资源在线观看| 欧美色偷偷大香| 亚洲一区二区三区小说| 色婷婷综合五月| 亚洲男人的天堂av| 在线视频一区二区三区| 亚洲第一电影网| 欧美videofree性高清杂交| 婷婷久久综合九色国产成人| 欧美肥妇free| 成人一二三区视频| 亚洲激情欧美激情| 在线播放日韩导航| 国产一区在线精品| 国产精品国产三级国产有无不卡| 在线精品视频免费观看| 国产在线精品免费av| 亚洲一区二区三区四区在线| 欧美r级在线观看| 欧美午夜不卡在线观看免费| 狠狠色2019综合网| 一个色综合网站| 久久久噜噜噜久久中文字幕色伊伊| 91网站在线播放| 国产黄人亚洲片| 久久精品国产第一区二区三区| 亚洲色图视频网站| 国产精品国产精品国产专区不蜜| 欧美日韩在线直播| 在线观看亚洲专区| 在线视频国产一区| 欧美亚洲国产一区在线观看网站 | 久久精品99国产精品| 国产午夜亚洲精品理论片色戒| 91精品久久久久久久久99蜜臂| 色先锋久久av资源部| 91国偷自产一区二区使用方法| 国产超碰在线一区| 国产.精品.日韩.另类.中文.在线.播放| 亚洲综合色婷婷| 麻豆成人久久精品二区三区红 | 久久久精品国产99久久精品芒果| 日韩欧美aaaaaa| 欧美激情中文字幕一区二区| 亚洲天堂精品在线观看| 一区二区三区在线不卡| 亚洲国产精品一区二区尤物区| 亚洲国产成人av好男人在线观看| 日韩精品亚洲一区二区三区免费| 男人的天堂亚洲一区| 不卡在线视频中文字幕| 欧美午夜影院一区| 中文字幕一区二区三区蜜月| 亚洲高清免费在线| av在线这里只有精品| 777亚洲妇女| 亚洲人成人一区二区在线观看 | 欧美激情中文字幕一区二区| 亚洲国产精品嫩草影院| 国产精品激情偷乱一区二区∴| 国产精品色哟哟| 日韩电影在线免费看| 成人av网站免费观看| 久久一区二区视频| 国产在线精品一区二区三区不卡| 欧美日韩亚州综合| 国产精品久久久久aaaa樱花| 久久精品国产第一区二区三区| 欧美三级日韩三级| 亚洲免费观看在线观看| 91美女福利视频| 亚洲一区二区三区四区在线免费观看| 成人黄色在线网站| 亚洲视频免费在线观看| 欧美又粗又大又爽| 日韩av高清在线观看| 日韩一区二区影院| 国产一区日韩二区欧美三区| 国产亚洲成aⅴ人片在线观看| 国产一区在线视频| 综合久久一区二区三区| 精品视频免费在线| 国产精品亚洲成人| 一区二区三区国产豹纹内裤在线| 欧美日韩在线播放三区| 久久精品国产999大香线蕉| 精品国产乱码久久久久久老虎| 国产传媒一区在线| 亚洲最新在线观看| 国产精品久久久久久久久晋中| 欧美日本一道本在线视频| 国产精品资源网站| 日本欧美在线看| 亚洲精品欧美在线| 国产日韩欧美综合一区| 日韩欧美高清在线| 日本高清视频一区二区| 免费成人美女在线观看.| 国产欧美一区二区三区鸳鸯浴| 91精品国产综合久久蜜臀| 色欧美片视频在线观看| 99久久99久久精品免费看蜜桃| 国产一区二区三区最好精华液| 日产精品久久久久久久性色| 亚洲欧美国产77777| 亚洲精品第1页| 亚洲日本va午夜在线影院| 欧美日韩国产精品成人| 欧美日韩精品久久久| 欧美日免费三级在线| 欧美视频一二三区| 欧美一卡在线观看| 欧美国产欧美综合| 亚洲欧美日韩国产一区二区三区| 亚洲欧洲日韩av| 日韩国产精品久久久| 精品在线一区二区三区| 白白色 亚洲乱淫| 欧美男女性生活在线直播观看| 欧美自拍偷拍午夜视频| 亚洲精品一区二区三区精华液 | 在线精品视频免费观看| 成人国产一区二区三区精品| 91福利在线播放| 国产日韩欧美精品一区| 亚洲第一狼人社区| 国产aⅴ综合色| 欧美成人精品3d动漫h| 中文乱码免费一区二区| 亚洲午夜在线观看视频在线| 国产91精品一区二区麻豆网站| 一本色道久久加勒比精品| 26uuuu精品一区二区| 天堂蜜桃一区二区三区| 91网址在线看| 中文字幕中文字幕一区二区| 国产一区二区久久| 偷拍一区二区三区四区| zzijzzij亚洲日本少妇熟睡| 制服丝袜激情欧洲亚洲| 亚洲欧美日韩国产另类专区| 国产成人h网站| 日韩女优毛片在线| 蜜桃视频免费观看一区| 日韩一区二区在线看| 七七婷婷婷婷精品国产| 91精品久久久久久久99蜜桃 | 国产综合久久久久影院| 成人性视频网站| 国产日韩欧美一区二区三区乱码 | 久久久久久久一区| 不卡一区二区在线| 亚洲午夜在线视频| 欧美一区二区三区四区高清| 日韩电影在线免费看| 国产精品国产精品国产专区不片| 国产乱子伦视频一区二区三区| 欧美精品一区二区蜜臀亚洲| 成年人午夜久久久| 男人操女人的视频在线观看欧美| 国产日韩欧美高清在线| 在线免费精品视频| 久久国产尿小便嘘嘘尿| 亚洲精品视频免费观看| 日本道在线观看一区二区| 亚洲一区在线免费观看| 26uuu欧美| 精品人在线二区三区| 欧美日韩国产经典色站一区二区三区| 精品无人区卡一卡二卡三乱码免费卡| 亚洲靠逼com| 伊人色综合久久天天人手人婷| 国产女同互慰高潮91漫画| 欧美日韩你懂得| 高清在线观看日韩| 成人黄动漫网站免费app| 国产精选一区二区三区| 奇米综合一区二区三区精品视频| 亚洲精品一卡二卡| 一区二区三区中文字幕在线观看| 国产精品美女久久久久久久 | 欧美视频第二页| 日本精品视频一区二区三区| 91丨九色porny丨蝌蚪| 一本高清dvd不卡在线观看| 91美女精品福利| 欧美伦理影视网| 久久久久久免费毛片精品| 久久毛片高清国产| 一区二区三区在线视频播放| 亚洲国产视频直播| 秋霞电影网一区二区|