国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

CPT106代做、代寫C++設計程序

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



CPT106 Fundamental of C++ Project 2
1
CPT106 C++ Programming and Software Engineering II
Individual Project
Fundamental of class and object
Project Number 2
Contribution to Overall Marks 20%
Release date 10 April 2024
Submission Deadline 10 May 2024, 23:59
How should the work be submitted?
SOFT COPY ONLY!
(MUST be submitted through Learning Mall so that we can run your programs during
marking.)
Assessment Overview
This assessment aims to test some basic concepts of C++ programming and coding in the software
development environment (Visual Studio). To distribute the workload of the individual project
more evenly throughout the whole semester, we divided it into 3 smaller individual projects for you
to complete separately. This is the second individual project.
What should be submitted?
Only your C++ source code files (.cpp and .h) should be submitted to Learning Mall (LM). Your
grade will also be given through LM. There are several steps for you to note:
1. You should create a solution named “CPT106Solution”.
2. Create a project named “Project 2”.
3. Create a CPP file for question 1.
4. Create a CPP file and 3 header files for question 2.
5. Include clear comments in your code to make it easy to understand.
6. Only submit the cpp and header files to the LMO.
7. ALL programs MUST compile and run in Visual Studio 2013/2016/2019/2022.
CPT106 Fundamental of C++ Project 2
2
1. Develop a C++ program in a single cpp file with the following functions. (50 marks)
a. Define a class with following structure and members:
class MyArray {
private:
int* arr=NULL;
int num = 0;
public:
MyArray(int arrayLen) ;
void Display();
MyArray* operator+(MyArray& a);
friend MyArray* operator-(MyArray& a, MyArray& b);
};
b. Define a constructor MyArray(int arrayLen) to allocate memory using the pointer arr
for arrayLen integers. These integers should be initialized by a randomized integer
between 100 and 999. (10 marks)
c. Define a function void Display() to print out all the randomized integers referenced by
the pointer arr. (10 marks)
d. Overload operator + to add integer values in a and current object (this) accordingly to
get a new MyArray object and return its pointer. For example, if the integer values in
the current object (this) and a are {1, 2, 3} and {4, 5, 6, 7}, the integer values in the
new object should be {5, 6, 9, 7}. (10 marks)
e. Define a friend function MyArray* operator - (MyArray& a, MyArray& b) out of
the class MyArray to achieve subtraction operator for integers in the objects of a and b
and get a new MyArray object. For example, if the integers in a are {1, 2, 30} and
integers in b are {4, 5, 6, 7}, the integers in the new MyArray object are {-3, -3, 24, -
7}. (10 marks)
f. Create a main function out of the class MyArray to achieve the following steps: (10
marks)
i. Use the constructor to create two MyArray objects with different amounts of
integers.
ii. Call the display() function to print out the integers in these two objects.
iii. Call the overloading operator + to get a new object and call display() to print
out integers in the new object.
iv. Call the friend function operator - to get a new object and call display() to print
out integers in the new object.
2. Develop a C++ program with the following steps. (50 marks)
a. Define a class Vehicle in a header file “Vehicle.h” as the following: (10 marks)
i. Define four private variables to represent the Vehicle’s brand name, color,
power and weight.
ii. Define a constructor to initialize all the private variables.
iii. Define a virtual function input() to initialize all the private variables by the
user’s input from the keyboard.
iv. Define a virtual function display() to print out all the values of the private
Project 2 (100)
CPT106 Fundamental of C++ Project 2
3
variables.
b. Define a class Car in a header file “Car.h” as the following: (15 marks)
i. Publically Inherit from the base class Vehicle.
ii. Define a new private variable, seats, to represent the number of seats in the car.
iii. Define a constructor to initialize all the private variables.
iv. Define an overloading function input() to initialize all the private variables by
the user’s input from the keyboard.
v. Define an overloading function display() to print out all the values of the
private variables.
c. Define a class Truck in a header file “Truck.h” as the following: (15 marks)
i. Publically Inherit from the class Car.
ii. Define a new private variable, load, to represent the load capacity of the truck.
iii. Define a constructor to initialize all the private variables.
iv. Define an overloading function input() to initialize all the private variables by
the user’s input from the keyboard.
v. Define an overloading function display() to print out all the values of the
private variables.
d. Define a main function in a cpp file with the following steps: (10 marks)
i. Create a pointer array Vehicle *p[3].
ii. Create at least one object for each class (Vehicle, Car and Truck) and put these
objects into the pointer array.
iii. Use a for loop and call the display() function to print out the information of all
objects.
Marking Scheme
Function definition 70%
Comments 10%
Correction & Robustness 20%

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





 

掃一掃在手機打開當前頁
  • 上一篇:CHC6171代做、代寫Python程序語言
  • 下一篇:菲律賓中國公民免簽嗎(免簽入境需要哪些材料)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美日韩一区二区三区免费| 秋霞毛片久久久久久久久| 午夜啪啪福利视频| 国内视频一区| 九九九九免费视频| 亚洲国产精品影视| 成人一区二区av| 精品福利影视| 蜜桃视频日韩| 国产精品免费一区二区三区四区 | 欧美日韩国产综合在线| 国产高清www| 欧美一区二区视频在线| …久久精品99久久香蕉国产| 最新av网址在线观看| 国产欧美精品xxxx另类| 精品自拍视频在线观看| 国产欧美韩日| 中文字幕日韩精品久久| 波多野结衣成人在线| 一区二区不卡在线视频 午夜欧美不卡'| 国产日韩二区| 欧美激情精品久久久久| 国产精品永久免费观看| 亚洲人一区二区| 久久久综合亚洲91久久98| 伊人久久大香线蕉成人综合网| 丰满人妻中伦妇伦精品app| 欧美激情第1页| av网站在线观看不卡| 亚洲 国产 欧美一区| 国产传媒一区二区三区| 欧洲视频一区二区三区| 久久人人爽人人爽人人片亚洲| 欧美不卡三区| 精品国产乱码久久久久久蜜柚| 国产女教师bbwbbwbbw| 久久久久久国产精品三级玉女聊斋| aaa毛片在线观看| 视频一区二区在线| 精品国产一区二区三区久久| 欧美亚洲国产成人| 国产精品成人品| 成人3d动漫一区二区三区| 日韩一级片免费视频| 久久99导航| 国产在线观看一区二区三区| 久久久久久12| 久久精品aaaaaa毛片| 激情综合网婷婷| 欧美激情亚洲视频| 久久亚洲a v| 欧美日韩在线播放一区二区| 欧美日韩高清区| 国产成人永久免费视频| 免费特级黄色片| 色综合天天综合网国产成人网| 91九色对白| 免费在线一区二区| 亚洲一区二区三区四区视频 | 欧美国产综合视频| 国产999在线| 久久av综合网| 国产亚洲欧美在线视频| 午夜精品免费视频| 国产精品美女在线| 91高潮精品免费porn| 日韩激情视频一区二区| 中文字幕免费在线不卡| 色视频www在线播放国产成人| 国产色综合天天综合网| 日本久久中文字幕| 久久99精品视频一区97| 久久久国产精品x99av| 91精品久久久久久久久久久| 蜜臀av性久久久久蜜臀av| 日韩在线xxx| 欧美激情二区三区| 久久综合伊人77777蜜臀| 91精品国产91久久久久福利| 国内精品模特av私拍在线观看| 天堂资源在线亚洲视频| 久热精品视频在线| 久久亚洲免费| 分分操这里只有精品| 欧美第一黄网| 日韩精品久久一区二区三区| 亚洲午夜精品一区二区三区| 国产精品久久久久久久久久东京| 久久精品国产综合精品| av片在线免费| 国产私拍一区| 国语自产精品视频在线看一大j8| 亚洲在线欧美| 九九久久综合网站| 国产精品成人播放| 国产精品视频白浆免费视频| 久久人妻精品白浆国产| 国产精品一区=区| 欧美久久在线观看| 日本精品久久久久久久久久| 亚洲欧美一区二区原创| 欧美极品在线播放| 国产精品福利在线观看| 久久久av网站| 久久久久久久av| 国产成人一二三区| 久久精品一区二区三区不卡免费视频| 99中文字幕在线观看| 国产日韩一区二区在线观看| 欧美成人一区二区在线观看| 欧美日韩黄色一级片| 日本午夜人人精品| 亚洲国产精品女人| 亚洲综合一区二区不卡| 一区二区三区电影| 欧美日韩国产999| 欧美精品久久久久久久久久| 欧美极品第一页| 欧美精品福利在线| 一区二区三区四区在线视频| 精品国产乱码久久久久久88av| 精品久久精品久久| 欧美激情日韩图片| 亚洲中文字幕无码专区| 亚洲综合色av| 亚洲福利av在线| 亚洲一区二区在线| 五月天亚洲综合情| 日韩啊v在线| 秋霞在线观看一区二区三区| 欧美日韩精品久久| 蜜桃av噜噜一区二区三| 国产乱人伦真实精品视频| 国产精品自拍网| 久久久影视精品| 日韩在线视频国产| 久久视频在线看| 久久国产精品影片| 亚洲精品欧美日韩专区| 欧美一级在线看| 欧洲精品国产| 欧美激情第一页在线观看| 麻豆中文字幕在线观看| 国产精品有限公司| 国产精品91视频| 日韩亚洲综合在线| 久久亚洲一区二区三区四区五区高| 欧美激情一级二级| 色女人综合av| 欧美日韩一区二区三区免费| 国产区精品在线观看| 91美女片黄在线观| 国产成人免费91av在线| 色综合久久88| 日本网站免费在线观看| 黄色国产精品一区二区三区| 国产无套内射久久久国产| 91精品免费视频| 久久久99久久精品女同性| 欧美日韩爱爱视频| 日本精品一区二区三区在线| 裸模一区二区三区免费| 91精品91久久久中77777老牛| 久久久精品亚洲| 一区二区成人国产精品| 欧洲精品在线一区| 不卡一卡2卡3卡4卡精品在| 久久久久久久91| 一区二区免费电影| 欧美一区视频在线| 99视频在线免费播放| 久久96国产精品久久99软件| 精品国产乱码久久久久软件| 日韩国产精品一区二区| 国产伦精品一区二区三区在线| 久久久免费精品| 久久av红桃一区二区小说| 日本一区视频在线观看| 国产女人18毛片| 国产成人免费观看| 亚洲a级在线播放观看| 麻豆精品视频| 久久国产精品亚洲va麻豆| 精品国产乱码久久久久久丨区2区| 日本三级久久久| 国产精品一区二区三区不卡| 久久久久久久一区二区三区| 欧美激情在线有限公司| 欧美日韩精品免费看| 国产脚交av在线一区二区| 九九九热精品免费视频观看网站| 人体内射精一区二区三区| 成人av一级片| 国产精品老牛影院在线观看| 日本中文字幕不卡免费| 成人av网站观看| 精品国产乱码久久久久久蜜柚 | 国产精品区免费视频| 日韩福利在线|