加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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程序語言
  • 下一篇:菲律賓中國公民免簽嗎(免簽入境需要哪些材料)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    白嫩白嫩国产精品| 欧洲一区精品| 亚洲高清在线一区| 青青草一区二区三区| 免费美女久久99| 久久神马影院| 日本超碰一区二区| 国产情侣一区| 午夜不卡影院| 欧美专区在线| 五月精品视频| 国产女人18毛片水真多18精品| 国产精品v亚洲精品v日韩精品| 日韩免费高清| 蜜臀va亚洲va欧美va天堂| 99欧美视频| 少妇精品在线| 电影91久久久| 日韩高清电影一区| 成人四虎影院| 日韩电影在线视频| 欧美韩日一区| 欧美bbbbb| 最新成人av网站| 蜜桃国内精品久久久久软件9| 果冻天美麻豆一区二区国产| 亚洲国产国产| 国产成人精品免费视| 日韩精品久久理论片| 国产a亚洲精品| 欧亚一区二区| 中文av在线全新| 久久久久久穴| 免费久久99精品国产| 日韩午夜黄色| aa亚洲婷婷| 欧美日韩hd| 伊人影院久久| 一区福利视频| 99av国产精品欲麻豆| 在线观看免费一区二区| 精品在线播放| **女人18毛片一区二区| 国产综合亚洲精品一区二| 久久国产毛片| 伊人精品一区| 在线观看免费一区二区| 天天射—综合中文网| 黑人一区二区| 国产视频欧美| 日本久久精品| а√天堂8资源中文在线| 91欧美在线| 香蕉成人av| 国产日韩免费| 欧美激情在线| 成人在线视频www| 日韩成人精品在线| 国产精品115| 色婷婷狠狠五月综合天色拍| 欧美日韩在线观看视频小说| 婷婷伊人综合| 另类国产ts人妖高潮视频| 欧美jizz| 欧美片第1页| 日韩精品久久理论片| 一区二区在线| 日韩av在线播放中文字幕| 国产精品成人自拍| 久久精品国产99久久| 欧美日韩四区| 97在线精品| 色综合视频一区二区三区44| 影音先锋亚洲电影| 国产探花一区| 久久99国产精品久久99大师| 亚洲午夜电影| 蜜乳av另类精品一区二区| a在线视频v视频| 99精品欧美| 亚洲国产最新| 久久久久亚洲| 免费在线成人网| 国产原创一区| 久久不见久久见中文字幕免费| 国产精品久av福利在线观看| 欧美日韩国产免费观看视频| 视频一区二区国产| 免费一级欧美在线观看视频| 亚洲一区二区小说| 免费看久久久| 丝袜美腿高跟呻吟高潮一区| 国产91亚洲精品久久久| 999精品视频在线观看| 欧美三区在线| 中文国产一区| 久久精品国产99| 欧美精品momsxxx| 亚洲第一区色| 久久毛片亚洲| 国产精品白丝久久av网站| 欧美在线导航| 日韩av自拍| 亚洲精品影院在线观看| 青青草国产免费一区二区下载| 亚洲欧美久久| 日本欧美一区二区三区乱码| 99亚洲乱人伦aⅴ精品| 国产视频一区在线观看一区免费| 国产一区二区主播在线| 亚洲国产精品嫩草影院久久av| 亚洲午夜视频| 午夜av成人| 日韩av综合| 久久福利影视| 日韩国产成人精品| 欧洲精品一区| 天堂中文在线播放| 先锋影音国产精品| 在线视频日韩| 国内揄拍国内精品久久| 欧洲亚洲成人| 日韩福利一区| 精品午夜视频| 丝袜诱惑亚洲看片| 亚洲区综合中文字幕日日| 亚洲第一区色| 久久精品72免费观看| 青青草国产免费一区二区下载| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲一区二区三区| 婷婷六月综合| 日本欧美久久久久免费播放网| 久久国产精品免费精品3p| 亚洲www.| 欧美精品中文| 国产福利亚洲| 久久精品影视| 欧美一区成人| 国产99精品一区| 久久精品日韩欧美| 国产字幕视频一区二区| 亚洲国产mv| 亚欧美无遮挡hd高清在线视频| 欧美一区高清| 欧美美女一区| 一区二区三区精品视频在线观看| 精品国产乱码久久久久久果冻传媒| 欧美www视频在线观看| 日韩精品a在线观看91| 日韩在线播放一区二区| 偷拍精品福利视频导航| 欧美r级电影| 98视频精品全部国产| 欧美成a人国产精品高清乱码在线观看片在线观看久 | 性感美女一区二区在线观看| 91精品国产自产精品男人的天堂| 日韩毛片视频| 91精品国产91久久久久久黑人| 久久精品国产在热久久| 九色精品国产蝌蚪| 亚洲香蕉久久| av日韩中文| 久久精品国产亚洲blacked| 久久精品国产亚洲a| 仙踪林久久久久久久999| 国产一精品一av一免费爽爽| 欧美mv日韩| 日韩精品一卡| 欧美日一区二区三区在线观看国产免| 国产亚洲精品久久久久婷婷瑜伽| 成人在线分类| 欧美1级2级| 欧美日韩一区二区三区视频播放| 国产精品黄色| 国产精品久久久久久久久妇女| 青青草91久久久久久久久| 日韩国产高清在线| 国产精品国内免费一区二区三区| 国产精品毛片久久久| 国产欧美日韩一级| 蜜桃视频第一区免费观看| 国产欧美自拍一区| 亚洲国产午夜| 日韩欧美另类一区二区| 欧美亚洲在线日韩| 国产尤物久久久| 人人精品久久| 久久电影一区| 久久久国产亚洲精品| 国产欧美日韩在线一区二区| 日本高清不卡一区二区三区视频| 欧美精品九九| 国内精品麻豆美女在线播放视频| 欧美日韩亚洲一区在线观看| 日韩欧美另类一区二区| 影音国产精品| 色老板在线视频一区二区| 国产精品18| 国产日韩欧美一区在线|