加勒比久久综合,国产精品伦一区二区,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国产| 91精品国产成人观看| 亚洲一区在线| 日本欧美不卡| 亚洲一区日韩| 99久久久国产精品美女| 国产成人黄色| 久久狠狠亚洲综合| 黄色aa久久| 亚洲免费婷婷| 亚洲午夜激情在线| 一区二区三区四区视频免费观看 | 懂色aⅴ精品一区二区三区| 亚洲资源av| 欧美福利影院| 精品久久久久久久| 日韩av不卡一区二区| 超碰国产精品一区二页| 涩涩涩久久久成人精品| 日韩欧美一区免费| 国产精品美女| 亚洲黄页一区| 欧美搞黄网站| 久久精品动漫| 亚洲一区网址| 日韩免费电影在线观看| 综合视频在线| 日本网站在线观看一区二区三区 | 欧美国产先锋| 美女网站视频久久| 国产一区 二区| 午夜精品成人av| 爱啪啪综合导航| 蜜臀久久99精品久久久久宅男| 伊人久久久大香线蕉综合直播| 久久亚洲国产| 欧美色图一区| 麻豆精品少妇| 精品久久97| 欧美a大片欧美片| 久久超级碰碰| 精品人人人人| 精品久久久亚洲| 精品精品久久| 久久久久网站| 欧美1区2区视频| 精品日韩毛片| 亚洲国产一成人久久精品| 欧洲杯半决赛直播| 一本色道久久| 国产精品99在线观看| 欧美国产小视频| 日韩电影免费网址| 神马久久资源| 一区二区激情| 亚洲三级在线| 国产中文字幕一区二区三区| 少妇精品久久久一区二区| 欧美人与牛zoz0性行为| 日韩欧美在线精品| 国产精品tv| 亚洲小说区图片区| 99在线热播精品免费99热| 麻豆成人在线| 免费观看亚洲| 久久国产欧美日韩精品| 国产精品成人一区二区网站软件| 在线欧美激情| 日韩av电影免费观看高清完整版| 亚洲视频一起| 欧美综合另类| 久久国产精品久久久久久电车 | 粉嫩av一区二区三区四区五区| 欧美成人毛片| 成人免费观看49www在线观看| 亚洲男人都懂第一日本| 欧美顶级毛片在线播放| 欧美日韩国产一区二区三区不卡| 老**午夜毛片一区二区三区| 午夜欧美激情| 国产精品a久久久久| 亚洲精品一级二级三级| 青青草国产免费一区二区下载| 精品一区欧美| 97精品视频在线看| 欧美亚洲一级| 精品久久亚洲| 91成人国产| 国产精品论坛| 欧美日本国产| 91嫩草精品| 亚洲激情精品| 免费成人在线电影| 伊人久久大香伊蕉在人线观看热v 伊人久久大香线蕉综合影院首页 伊人久久大香 | 正在播放日韩精品| 日本成人中文字幕| japanese色系久久精品| 亚州av乱码久久精品蜜桃| 欧美韩日高清| 亚洲五月综合| 欧美一区二区三区久久| 久久亚洲精品伦理| 欧美一区二区三区久久精品| 日产欧产美韩系列久久99| 婷婷中文字幕一区| 午夜激情电影在线播放| 国产精品视频一区二区三区综合| 国产精品1luya在线播放| 国产视频一区三区| 美女网站视频久久| 国产精品白浆| 美国欧美日韩国产在线播放| 99精品国产在热久久| 中文字幕一区日韩精品| 日韩在线播放一区二区| 亚洲精品一二| 国内成人在线| 天天综合网站| 九九99久久精品在免费线bt| 99亚洲一区二区| 日韩高清欧美激情| 99视频精品全国免费| 日韩欧美在线中字| 免费观看亚洲天堂| 日韩.com| 国产一区二区三区电影在线观看| 女生裸体视频一区二区三区| 玖玖精品在线| 天堂网av成人| 色综合天天色| 精品久久视频| 国产综合色在线观看| 欧美日韩网站| 日韩欧美精品一区| 亚洲成人黄色| 日韩激情图片| 高潮久久久久久久久久久久久久 | 亚洲情侣在线| 成人aaaa| 亚洲乱码久久| 亚洲精品1区| 国产精品成人**免费视频| 日韩一级大片| 高清在线一区二区| 亚洲欧美日本视频在线观看| 伊人久久大香线蕉综合影院首页| 伊人成年综合电影网| 麻豆精品一二三| 亚洲视频播放| 久久99国产成人小视频| 国产精品高颜值在线观看| 精品中文字幕一区二区三区四区| 色喇叭免费久久综合网| 精品国产一区二| 日本精品在线中文字幕| 九九热播视频在线精品6| 久久精品二区亚洲w码| 精品欧美久久| 亚洲欧美一级| 免费人成网站在线观看欧美高清| 日韩美女毛片| 偷拍中文亚洲欧美动漫| 欧美日韩麻豆| 国内视频精品| 日韩精品一级二级| 99re8这里有精品热视频8在线| 亚洲成av在线| 亚洲午夜电影| 国产伦精品一区二区三区视频| 日韩成人a**站| 精品国产精品久久一区免费式| 美女视频一区在线观看| 亚洲一区亚洲| 白嫩白嫩国产精品| 亚洲区一区二| 成入视频在线观看| 99精品全国免费观看视频软件| 青青草国产成人99久久| 蜜臀精品一区二区三区在线观看 | 日本激情一区| 精品久久97| 欧美三级不卡| 在线精品亚洲欧美日韩国产| 99热在线成人| 亚洲亚洲免费| 欧美一区二区三区久久精品茉莉花 | 日韩中文影院| 亚洲欧美bt| 成人中文在线| 成人黄色91| 国产黄色一区| 丝袜国产日韩另类美女| 99久久www免费| 亚洲精品中文字幕99999| 美女视频一区二区| 美女91在线看| 日韩一区二区久久| 99久久激情| 欧美a在线观看|