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

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

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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                日韩一卡二卡三卡国产欧美| 欧美大胆一级视频| 国产麻豆精品在线观看| 男人的j进女人的j一区| 亚洲高清一区二区三区| 亚洲国产另类精品专区| 亚洲制服丝袜av| 亚洲最新在线观看| 亚洲精品一卡二卡| 亚洲男人都懂的| 亚洲精品你懂的| 亚洲精选视频在线| 亚洲第一精品在线| 日本在线不卡视频| 蜜桃视频一区二区三区| 韩国av一区二区三区| 国产精品123区| 99久免费精品视频在线观看| 色综合天天在线| 国产欧美综合色| 中文字幕精品一区二区三区精品| 国产精品拍天天在线| 亚洲三级电影网站| 视频一区国产视频| 久久成人精品无人区| 国产成人丝袜美腿| 91国偷自产一区二区三区成为亚洲经典 | 一区二区在线看| 日韩黄色在线观看| 久久99久国产精品黄毛片色诱| 久久成人久久爱| 99国内精品久久| 欧美日韩国产综合一区二区| 欧美成人r级一区二区三区| 国产亚洲欧美一级| 亚洲电影在线免费观看| 国产一区二区精品久久| 色综合网色综合| 精品国产制服丝袜高跟| 亚洲同性同志一二三专区| 亚洲国产精品天堂| 国产成人免费视频网站| 欧美午夜理伦三级在线观看| 26uuu国产电影一区二区| 亚洲女同一区二区| 狠狠网亚洲精品| 欧美色偷偷大香| 中文字幕一区二区三区精华液 | 国产成a人亚洲精品| 欧美主播一区二区三区美女| 久久毛片高清国产| 亚洲va欧美va国产va天堂影院| 国产福利一区二区三区视频| 欧美日韩国产片| 日韩一区在线免费观看| 久久99深爱久久99精品| 欧美三区在线观看| 中文幕一区二区三区久久蜜桃| 三级成人在线视频| 一本大道久久精品懂色aⅴ| 久久久精品tv| 麻豆国产一区二区| 欧美日韩免费电影| 亚洲女女做受ⅹxx高潮| av在线不卡免费看| 欧美激情中文不卡| 国产丶欧美丶日本不卡视频| 久久在线免费观看| 国内精品久久久久影院薰衣草 | 国产亚洲欧洲997久久综合 | 国产精品免费看片| 国产精品一级片| 日韩欧美专区在线| 青青青爽久久午夜综合久久午夜| 在线精品视频一区二区三四| 国产精品三级av| 不卡的av网站| 成人免费在线视频观看| 91麻豆自制传媒国产之光| 中文字幕av免费专区久久| 国产成人免费视频网站高清观看视频| 日韩欧美一区电影| 激情综合五月天| 精品国产sm最大网站| 韩国三级在线一区| 久久久久久久久久看片| 国产在线观看免费一区| 久久精品亚洲一区二区三区浴池| 国产精品中文字幕欧美| 国产精品久久久久久久久搜平片 | 日韩欧美视频在线| 国产风韵犹存在线视精品| 国产精品―色哟哟| 91首页免费视频| 亚洲影院在线观看| 欧美不卡一区二区三区| 国产精品一二三四五| 亚洲人一二三区| 日韩一区二区三区三四区视频在线观看| 日韩在线观看一区二区| 久久人人超碰精品| 91在线你懂得| 蜜桃av一区二区在线观看| 久久久国产精品麻豆| 在线日韩一区二区| 美国十次综合导航| 国产精品白丝在线| 欧美日韩三级一区二区| 久久99精品国产91久久来源| 国产精品久久久久9999吃药| 欧美三级在线视频| 国产.欧美.日韩| 亚洲香蕉伊在人在线观| 久久这里只有精品视频网| 在线免费观看日本欧美| 久久99精品久久久久久国产越南| 国产精品成人一区二区三区夜夜夜| 一本色道久久综合亚洲91| 理论电影国产精品| 亚洲精品成a人| 久久久久久久久99精品| 欧美视频精品在线观看| 国产精品亚洲人在线观看| 亚洲成年人影院| 亚洲欧洲韩国日本视频| 欧美一区二区三区四区五区 | 欧美日韩日日骚| aaa亚洲精品| 韩国视频一区二区| 日本中文字幕一区二区视频| 亚洲三级在线播放| 久久―日本道色综合久久| 91国内精品野花午夜精品| 丁香网亚洲国际| 久88久久88久久久| 午夜视频一区二区| 亚洲欧美福利一区二区| 日本一区二区三区高清不卡| 日韩欧美一区在线| 欧美一区中文字幕| 欧美天天综合网| 色拍拍在线精品视频8848| 成人av免费网站| 99热精品国产| 9色porny自拍视频一区二区| 国产精品亚洲一区二区三区妖精 | 在线观看不卡一区| 欧美性高清videossexo| 色天使久久综合网天天| 91老司机福利 在线| 成人动漫av在线| 99久久精品情趣| 99re热这里只有精品免费视频| 高清成人在线观看| 顶级嫩模精品视频在线看| 成人午夜又粗又硬又大| 粉嫩av亚洲一区二区图片| 成人在线视频首页| 成人91在线观看| 色欧美日韩亚洲| 欧美揉bbbbb揉bbbbb| 欧美做爰猛烈大尺度电影无法无天| 亚洲三级免费电影| 日韩欧美亚洲国产精品字幕久久久 | 亚洲成av人片一区二区梦乃| 午夜伦理一区二区| 蜜桃免费网站一区二区三区| 久久精品国产久精国产爱| 国产精品99精品久久免费| 国产不卡在线视频| 99精品久久免费看蜜臀剧情介绍| 色婷婷综合五月| 欧美一区二区视频在线观看2022| 欧美第一区第二区| 国产三级久久久| 亚洲一区二区三区在线| 秋霞电影一区二区| 国产69精品久久久久毛片| 色猫猫国产区一区二在线视频| 91精品在线麻豆| 欧美国产丝袜视频| 亚洲一区在线播放| 韩国女主播成人在线| www.欧美精品一二区| 欧美军同video69gay| 久久婷婷综合激情| 亚洲欧美另类图片小说| 久久精品国产成人一区二区三区| 成人不卡免费av| 在线播放中文一区| 中文字幕av不卡| 奇米综合一区二区三区精品视频| 国产精华液一区二区三区| 欧美美女一区二区在线观看| 国产精品入口麻豆原神| 午夜精品一区二区三区电影天堂 | 色婷婷综合久久久久中文| 精品奇米国产一区二区三区| 亚洲欧美在线观看| 激情综合网av|