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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          一区二区三区视频在线观看| 91久久香蕉国产日韩欧美9色| 国产精品久久久久久模特 | 国产精品天天摸av网| 国产美女精品| 在线国产日韩| 一区二区三区免费观看| 午夜在线a亚洲v天堂网2018| 久久久国产一区二区| 欧美人牲a欧美精品| 国产精品综合| 亚洲狠狠丁香婷婷综合久久久| 日韩亚洲在线观看| 久久精品人人做人人综合| 欧美成人黄色小视频| 国产精品亚发布| 亚洲国产精品悠悠久久琪琪| 亚洲一区日韩在线| 免费在线亚洲| 国产精品视频一二| 亚洲精品久久久久久久久| 性做久久久久久| 欧美日韩国产影片| 依依成人综合视频| 午夜久久tv| 欧美日韩日本国产亚洲在线| 狠狠色狠狠色综合日日91app| 日韩一区二区免费高清| 久久久久久尹人网香蕉| 国产精品久久久久毛片大屁完整版| 亚洲第一成人在线| 欧美在线播放视频| 国产精品久久久久久久9999| 亚洲国产成人不卡| 香蕉久久精品日日躁夜夜躁| 欧美日韩一区二区免费视频| 亚洲国产另类精品专区| 久久久久久国产精品一区| 国产精品扒开腿爽爽爽视频 | 国产精品欧美经典| 欧美国产免费| 国产一区二区高清视频| 99热精品在线观看| 欧美刺激性大交免费视频| 国内成+人亚洲| 午夜精品国产更新| 国产精品久久9| av成人手机在线| 欧美激情一区二区| 亚洲娇小video精品| 男人的天堂亚洲| 亚洲国产高清在线观看视频| 久久中文字幕导航| 黄色成人在线免费| 久久综合狠狠综合久久激情| 国产一区二区久久| 久久久久国产一区二区| 黄色一区二区三区四区| 毛片一区二区| 亚洲欧洲日产国码二区| 久久国产精品99国产精| 性色一区二区三区| 欧美三级网页| 亚洲深夜福利| 国产精品久久久久久久久久久久久 | 欧美性久久久| 亚洲欧美另类久久久精品2019| 国产精品久久91| 午夜精品视频在线| 狠狠色综合网| 欧美日产国产成人免费图片| 99精品欧美一区二区蜜桃免费| 欧美日韩麻豆| 香蕉免费一区二区三区在线观看| 国产老肥熟一区二区三区| 久久福利资源站| 亚洲国产经典视频| 欧美日韩国产色视频| 国产欧美日韩中文字幕在线| 久久久www成人免费无遮挡大片| 国产一区视频网站| 欧美福利精品| 午夜久久tv| 亚洲黄色影院| 国产精品日韩在线| 久久精品一区二区国产| 91久久精品国产91久久性色tv| 欧美性生交xxxxx久久久| 久久精品人人爽| 亚洲精品在线观看视频| 国产精品一区三区| 欧美国产日本在线| 销魂美女一区二区三区视频在线| 亚洲高清久久久| 国产精品综合久久久| 欧美成人一区二区三区片免费| 亚洲欧美成人综合| 亚洲精品综合| 国产在线观看91精品一区| 欧美丝袜一区二区| 理论片一区二区在线| 亚洲免费视频成人| 亚洲精品国产品国语在线app| 国产欧美日韩综合| 欧美日本国产| 欧美成年网站| 久久久久一区二区| 午夜精品www| 在线视频中文亚洲| 亚洲国产日日夜夜| 国产在线乱码一区二区三区| 欧美色欧美亚洲另类七区| 欧美电影免费观看大全| 久久亚洲国产精品一区二区| 亚洲性感美女99在线| 日韩一二在线观看| 91久久精品视频| 亚洲第一页在线| 精品91在线| 韩国三级在线一区| 国产精品视频区| 美女视频黄a大片欧美| 久久久人成影片一区二区三区| 国产精品99久久久久久www| 亚洲欧洲精品一区二区三区波多野1战4 | 亚洲三级免费| 1024亚洲| 亚洲国产欧美一区二区三区久久| 在线日韩av片| 亚洲国产综合91精品麻豆| 亚洲成人在线视频播放| 尤妮丝一区二区裸体视频| 尤物精品在线| 亚洲欧洲视频| 99精品99久久久久久宅男| 亚洲理论电影网| 亚洲视频一区在线观看| 亚洲在线视频免费观看| 欧美亚洲在线视频| 久久精品视频在线看| 老司机精品导航| 欧美日韩另类在线| 国产精品国产三级国产aⅴ浪潮 | 一本色道久久| 亚洲欧美在线视频观看| 久久精品二区| 免费成人小视频| 欧美日韩国产一级片| 国产精品卡一卡二| 国产一区在线看| 亚洲国产三级在线| 亚洲在线视频免费观看| 久久精品国产精品| 欧美电影免费| 国产精品影视天天线| 一区二区视频免费在线观看| 亚洲三级视频在线观看| 亚洲一区二区综合| 久久先锋影音av| 欧美日韩另类综合| 国产在线观看一区| 一本久久综合| 久久精品中文字幕免费mv| 欧美理论电影在线播放| 国产欧美日韩亚洲| 亚洲国产小视频| 新狼窝色av性久久久久久| 欧美成人精精品一区二区频| 国产精品日韩二区| 亚洲精品国产日韩| 欧美怡红院视频一区二区三区| 欧美成年人视频| 国产日韩欧美一区| 一本色道婷婷久久欧美| 麻豆成人91精品二区三区| 国产精品美女诱惑| 亚洲精品日本| 久久深夜福利免费观看| 国产精品国产福利国产秒拍| 亚洲福利在线视频| 欧美在线免费视频| 国产精品久久精品日日| 亚洲精品欧美激情| 久久亚洲精品一区二区| 国产精品夜夜夜一区二区三区尤| 亚洲高清二区| 另类成人小视频在线| 国产精品外国| 亚洲小说区图片区| 欧美日本精品| 亚洲福利在线观看| 久久人人爽人人| 国产一区在线观看视频| 欧美亚洲免费| 国产精品网站在线| 99re6热在线精品视频播放速度| 另类成人小视频在线| 韩日在线一区| 久久人体大胆视频| 樱花yy私人影院亚洲|