国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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怎么修改定

    短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日韩欧美国产综合在线| 国产区欧美区日韩区| 欧美在线欧美在线| 97人人模人人爽人人喊38tv| 国产精品国产一区二区 | 国产成人精品一区二区| 亚洲不卡中文字幕无码| 激情五月亚洲色图| 久久久久资源| 日韩av电影在线网| 91精品久久久久久久久中文字幕| 欧美激情小视频| 蜜臀精品一区二区| 国产精品三级一区二区| 欧洲精品亚洲精品| 日韩在线视频中文字幕| 日本亚洲欧洲色α| 久久免费一级片| 天堂资源在线亚洲资源| 成人9ⅰ免费影视网站| 在线观看av的网址| www.亚洲天堂网| 精品久久久久久亚洲| 免费毛片网站在线观看 | 亚洲精品国产suv一区88| 高清国产在线一区| 国产99在线|中文| 国产在线视频91| 久久亚洲一区二区三区四区五区高| 男人的天堂狠狠干| 国产精品久久二区| 97精品一区二区三区| 亚洲精品一区二区三| 91久久国产精品| 性色av一区二区咪爱| 91精品国产99| 色狠狠久久av五月综合| 国产成人中文字幕| 日韩欧美视频网站| 精品国模在线视频| 精品视频一区二区在线| 欧美激情精品久久久久久黑人| 国产精品一区二区三区不卡| 中文字幕中文字幕在线中心一区 | 国产精品日韩av| 国产日韩第一页| 亚洲最新在线| 国产精品999视频| 日韩av大片在线| 色婷婷久久av| 国模极品一区二区三区| 在线免费观看一区二区三区| 久久婷婷国产综合尤物精品| 人人妻人人做人人爽| 国产精品久久久久91| 国产美女精品久久久| 午夜精品久久久久久久99黑人 | 亚洲精品成人三区| 日韩视频欧美视频| 国产日韩欧美影视| 少妇高清精品毛片在线视频| 国产xxxxx在线观看| 欧美成人高潮一二区在线看| 国产av国片精品| 国产mv久久久| 精品网站在线看| 日韩一区二区高清视频| 日韩亚洲欧美中文高清在线| 国产女主播一区二区三区| 视频一区国产精品| 国产精品二区在线观看| 91黄在线观看| 免费看黄色a级片| 午夜免费福利小电影| 国产精品免费成人| 91国产在线播放| 免费在线黄网站| 亚洲精品国产系列| 国产精品成人久久久久| 国产成人aa精品一区在线播放| 国产一级黄色录像片| 色噜噜狠狠一区二区三区| 国产精品久久色| 国产成人一区二区三区小说| 国产深夜精品福利| 日韩免费av一区二区| 影音先锋欧美在线| 久久久国产视频91| 久久综合入口| 国产精品一区免费观看| 欧美少妇一区二区三区| 亚洲一区二区在线播放| 国产精品美女网站| 久久久久久久久久久免费精品| 国产日韩专区在线| 欧美中文字幕在线播放| 午夜精品久久久久久久99热浪潮 | 日本三级久久久| 一本久久a久久精品vr综合| 久久精品国产99国产精品澳门| 91精品国产免费久久久久久| 麻豆一区二区三区在线观看| 日本视频精品一区| 亚洲一区二区三区四区视频| 精品免费二区三区三区高中清不卡| 国产高清一区视频| 99精品国产高清在线观看| 国产欧美日韩高清| 麻豆av一区二区| 欧美成ee人免费视频| 日本高清视频免费在线观看| 亚洲精品一品区二品区三品区| 色综合视频网站| 精品国产区在线| 久久综合五月天| 国产精品国产对白熟妇| 国产精品久久久久一区二区| 久久久国产精品亚洲一区| 国产成人精品一区二区| 日韩在线观看免费高清| 国产福利不卡| 国产成人av影视| 久久国产精品视频在线观看| 国产成人精品久久二区二区91| 久久久午夜视频| 久久人人看视频| 国产成人精品免高潮费视频| 久久免费福利视频| 国产精品69久久久| 久久免费观看视频| 国产激情在线观看视频| 国产成人激情视频| 久艹在线免费观看| 日韩亚洲欧美中文高清在线| 日韩中文字幕视频在线观看| 久久精品xxx| 久久久国产成人精品| 久久久999成人| 久久亚洲影音av资源网| 色综合天天狠天天透天天伊人| 一区二区三区av| 亚洲欧洲日夜超级视频| 午夜精品99久久免费| 日本精品久久电影| 欧美亚洲激情视频| 狠狠色综合一区二区| 精品少妇一区二区三区在线| 国产香蕉一区二区三区| 成人精品在线视频| 久久久亚洲福利精品午夜| 久久天天狠狠| 北条麻妃99精品青青久久| 久久人人爽亚洲精品天堂| 国产精品久久久久久久久久| 色综合色综合网色综合| 午夜精品一区二区三区在线观看| 日本视频精品一区| 蜜桃视频日韩| av电影一区二区三区| 久久精品免费一区二区| 国产精品欧美久久| 在线观看一区欧美| 日本不卡在线观看| 国产一级做a爰片久久毛片男| 91久久国产自产拍夜夜嗨| 久久草视频在线看| 国产精品高清在线| 亚洲www视频| 免费在线观看一区二区| 99在线首页视频| 北条麻妃在线一区二区| 中文字幕av日韩精品| 日韩国产欧美精品| 国产伦一区二区三区色一情| 久久精品日产第一区二区三区精品版 | 91精品国产高清久久久久久久久| 久久国产精品精品国产色婷婷| 久久中文字幕在线视频| 亚洲精品欧美一区二区三区| 欧美中文字幕第一页| 苍井空浴缸大战猛男120分钟| 久久久久久久久久久久久久一区| 欧美精品做受xxx性少妇| 日本少妇高潮喷水视频| 国产伦精品一区| 国产成人精品在线| 中文字幕无码不卡免费视频| 明星裸体视频一区二区| 国产精品99久久99久久久二8| 国产精品久久久久秋霞鲁丝| 午夜肉伦伦影院| 国产日韩欧美在线视频观看| 深夜福利国产精品| 亚洲一区二区中文| 国产一区精品视频| 精品国产一区二区三区久久狼5月 精品国产一区二区三区久久久狼 精品国产一区二区三区久久久 | 国产精品自产拍在线观看中文| www亚洲欧美| 日韩av大片免费看| 成人伊人精品色xxxx视频|