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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

CPT106代做、代寫C++設(shè)計(jì)程序

時間:2024-05-09  來源:合肥網(wǎng)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





 

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

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 wps 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品免费久久久久影院| 国产av天堂无码一区二区三区| 精品日本一区二区三区| www.欧美黄色| 久久这里有精品视频| 内射国产内射夫妻免费频道| 国产mv久久久| 午夜精品久久久久久久99黑人| 国产欧美日韩专区发布| 国产精品黄页免费高清在线观看 | 黄色国产一级视频| 久久久久久国产三级电影| 亚洲一区二区三区四区在线播放 | 国产精品美女久久久久av福利| 日本www在线视频| 久久精品二区| 欧洲精品久久| 久久精品国产亚洲| 女同一区二区| 国产精品成人国产乱一区| 国产专区欧美专区| 久久精品色欧美aⅴ一区二区| 日韩欧美一级在线| 色黄久久久久久| 欧美资源在线观看| 国产精品区一区| 人体精品一二三区| 精品国产欧美一区二区五十路| 日本高清视频精品| 日韩在线www| 黄色www网站| 精品视频9999| 国产精品综合久久久| 在线观看日本一区| 91免费看国产| 日韩 欧美 高清| 啊v视频在线一区二区三区| 极品日韩久久| 欧美片一区二区三区| 91九色国产社区在线观看| 日韩中文字幕一区| 久久www视频| 激情伊人五月天| 欧美日韩国产999| 91久久久亚洲精品| 日韩色妇久久av| 国产精品美乳一区二区免费| 国产一区二区丝袜高跟鞋图片| 亚洲一卡二卡| 日韩在线激情视频| 国产特级黄色大片| 亚洲 国产 日韩 综合一区| 久久久久久午夜| 免费看又黄又无码的网站| 欧美激情xxxxx| 国产成人精品久久亚洲高清不卡 | 国产精品极品在线| 99在线视频首页| 日韩欧美亚洲天堂| 精品福利影视| 久久久在线观看| 免费高清一区二区三区| 亚洲一区二区三区乱码| 久久精品网站视频| 麻豆久久久9性大片| 亚洲精品无人区| 国产成人精品一区| 国产又粗又猛又爽又黄的网站| 亚洲一区二区在线播放| 久久久久久久久爱| 国产精品夜夜夜爽张柏芝 | 成人h在线播放| 欧美自拍资源在线| 亚洲中文字幕无码中文字| 精品久久久av| 91精品国产综合久久久久久蜜臀 | 国产精品成人观看视频国产奇米| 99久久国产综合精品五月天喷水| 欧洲美女7788成人免费视频| 欧美激情综合色| 久久激情五月丁香伊人| www.亚洲天堂网| 蜜桃日韩视频| 人人妻人人澡人人爽精品欧美一区| 久久99视频免费| 国产成人精品一区| 久久综合伊人77777麻豆| 精品少妇一区二区三区在线| 日本香蕉视频在线观看| 国产精品久久色| 日韩在线中文视频| 91国产中文字幕| 国产伦一区二区三区色一情| 午夜精品视频在线| 精品免费国产| 久久精品国产成人| 国产av天堂无码一区二区三区| 国产精品一区二| 国内精品伊人久久| 青青青在线观看视频| 亚洲第一精品区| 久久99精品国产99久久6尤物| 日韩视频精品在线| 久久久久九九九| 国产又黄又爽免费视频| 欧美人与性禽动交精品| 日本精品二区| 日韩一区二区三区高清| 亚洲欧洲日夜超级视频| 色综合色综合网色综合| 久久综合网hezyo| 国产精品久久久久久久天堂第1集 国产精品久久久久久久午夜 | 欧美一区视久久| 日韩久久久久久久久久久久| 无码aⅴ精品一区二区三区浪潮| 一区二区三区一级片| 国产精品欧美久久久| 色婷婷综合成人| 久久国产精品高清| 国产不卡av在线| 国产成人jvid在线播放| 久久久女人电视剧免费播放下载| www国产无套内射com| av一区二区三区在线观看| 粉嫩av四季av绯色av第一区| 国产女人精品视频| 国产女主播一区二区| 国产美女久久精品| 成人久久一区二区| 91精品国产91久久| 国产成人精品视频ⅴa片软件竹菊| 国产精品一久久香蕉国产线看观看 | 日本一区二区三区在线视频| 天堂精品视频| 日本女人高潮视频| 欧美性在线观看| 国内精品国产三级国产在线专| 蜜桃成人免费视频| 国产日本一区二区三区| 不卡日韩av| 国产成人精品久久二区二区91| 久久久久国产精品熟女影院| 久草在在线视频| 日韩中文字幕网| 国产精品国产精品国产专区不卡| 美日韩精品视频免费看| 一区二区三区四区欧美| 亚洲v国产v| 欧美一区免费视频| 国产啪精品视频| 99视频免费观看蜜桃视频| 久久免费一级片| 国产精品日韩久久久久| 一区二区三区观看| 欧美一级片免费在线| 欧美亚洲日本黄色| 精品一区2区三区| 91精品在线播放| 久久天天躁狠狠躁夜夜躁| 精品国偷自产一区二区三区| 亚洲精品中文字幕在线| 人妻少妇精品久久| 国产原创精品| 久久久这里只有精品视频| 日韩一区视频在线| 精品久久久久久一区| 欧美一级片一区| 麻豆91av| 国产成人精品免高潮在线观看| 国产精品久久97| 熟妇人妻va精品中文字幕| 青青草精品毛片| 粉嫩av一区二区三区免费观看| 久久久久久久久国产| 欧美激情乱人伦一区| 日本精品在线视频| 国产啪精品视频| 日韩视频在线观看免费| 亚洲天堂第一区| 黄色免费福利视频| 国产成人精品a视频一区www| 精品久久久久久乱码天堂| 日韩欧美三级一区二区| 国产乱码精品一区二区三区日韩精品 | 日韩综合中文字幕| 亚洲在线观看视频网站| 欧美中在线观看| 成人亚洲综合色就1024| 久久精品亚洲一区| 视频一区免费观看| 国产日韩欧美二区| 久久久精品网站| 亚洲图色在线| 狠狠色综合欧美激情| 久激情内射婷内射蜜桃| 亚洲欧美日韩精品久久久| 国产熟女高潮视频| 国产精品美女999| 青青青在线视频播放| 久久免费福利视频|