91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

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

代寫 DTS102TC Programming with C++ 程序設計
代寫 DTS102TC Programming with C++ 程序設計

時間:2025-11-30  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


XJTLU Entrepreneur College (Taicang) Cover Sheet Module code and Title DTS102TC Programming with C++ School Title School of Artificial Intelligence and Advanced Computing Assignment Title Coursework 1 (Assignment) Submission Deadline 5 pm China time (UTC+8 Beijing) on Fri. 28th. Nov. 2025 Final Word Count NA If you agree to let the university use your work anonymously for teaching and learning purposes, please type “yes” here. I certify that I have read and understood the University’s Policy for dealing with Plagiarism, Collusion and the Fabrication of Data (available on Learning Mall Online). With reference to this policy I certify that: • My work does not contain any instances of plagiarism and/or collusion. My work does not contain any fabricated data. By uploading my assignment onto Learning Mall Online, I formally declare that all of the above information is true to the best of my knowledge and belief. Scoring – For Tutor Use Student ID Stage of Marking Marker Code Learning Outcomes Achieved (F/P/M/D) (please modify as appropriate) Final Score A B C 1st Marker – red pen Moderation – green pen IM Initials The original mark has been accepted by the moderator (please circle as appropriate): Y / N Data entry and score calculation have been checked by another tutor (please circle): Y 2nd Marker if needed – green pen For Academic Office Use Possible Academic Infringement (please tick as appropriate) Date Received Days late Late Penalty ☐ Category A Total Academic Infringement Penalty (A,B, C, D, E, Please modify where necessary) _____________________ ☐ Category B ☐ Category C ☐ Category D ☐ Category E DTS102TC Programming with C++ Coursework 1 (Assignment) Deadline: 5:00 pm China time (UTC+8 Beijing) on Friday 28th. Nov. 2025 Percentage in final score: 50% Maximum score: 100 marks (100% individual marks) Learning outcomes assessed: A. Demonstrate knowledge and understanding of basic principles of C++ programming language. B. Demonstrate knowledge and understanding of basic software development process. Late policy: 5% of the total marks available for the assessment shall be deducted from the assessment mark for each working day after the submission date, up to a maximum of five working days. Notice: • Please read the coursework instructions and requirements carefully. Not following these instructions and requirements may result in loss of marks. • The assignment must be typed in an MS Word and converted to a PDF document. The document must be submitted via Learning Mall Online to the Gradescope. Only electronic submission is accepted and no hard copy submission. All submissions should be written in English. • All students must download their file and check that it is viewable after submission. Documents may become corrupted during the uploading process (e.g. due to slow internet connections). However, students themselves are responsible for submitting a functional and correct file for assessments. • Please download the Source Code Template from Learning Mall Online. Do not change the file name of each code script. • Academic Integrity Policy is strictly followed. Overview The objective of this assignment is to develop proficiency in C++ programming and software development skills. You are required to write a C++ program to address each question. For each question, you must write code to generate the required results and submit it via Gradescope for evaluation of program implementation. Additionally, for each question in your report, you will need to prepare a brief report analyzing your methods and discussing the results in conjunction with your test cases. Code quality—including variable naming conventions and function comments—will also be assessed. 2 3 Section A. Fundamental of C++ Programming (70marks) In this section, there are 9 questions. Please use the code template available on the Learning Mall and submit your code solutions via Gradescope to pass the test cases. Note that you are limited to 5 submissions per question on Gradescope; exceeding this maximum will result in a loss of full marks for that question. Question 1. Algebra: solve quadratic equations (5 marks) The two roots of a quadratic equation 2 xbxax =++ 0 can be obtained using the following formula: a acbb r 2 2 4 1 −+− = and a r acbb 2 2 = 2 −−− 4 2 − 4acb is called the discriminant of the quadratic equation. If it is positive, the equation has two real roots. If it is zero, the equation has one root. If it is negative, the equation has no real roots. Follow the code template to write a program that has values for a, b, and c and displays the result based on the discriminant. If the discriminant is positive, display two roots. If the discriminant is 0, display one root. Otherwise, display “The equation has no real roots.” Note that you can use pow(x, 0.5) to compute √𝒙𝒙 . Here are some sample examples. Sample Run Enter a, b, c: 1.0 -3 2 The roots are: 2.0 and 1.0 Enter a, b, c: 1 -2 1 The root is: 1.0 Enter a, b, c: 1 0 1 The equation has no real roots Question 2. Geometry: area of a regular polygon (5 marks) A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for computing the area of a regular polygon is: where s is the length of a side. Follow the code template to write a program that has the number of sides and their length of a regular polygon and displays its area. Sample Run Enter the number of sides: 5 Enter the length of a side: 6.5 The area of the polygon is 72.69 Question 3. Count positive and negative numbers and compute the average of numbers (5 marks) Follow the code template to write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros). Display the average as a floating-point number. Sample Run Enter an integer value, the input ends if it is 0: 1 2 -1 4 0 The number of positives is 3 The number of negatives is 1 The total value is 6 The average value is 1.50 Question 4. Binary to decimal (5 marks) Follow the code template to write a function that returns a decimal number from a binary string. For example, binaryString 10001 is 17 (1*2^4+0*2^3+0*2^2+0*2+1=17 ). So, the function solve_bin_to_dec("10001") returns 17. Question 5. Print distinct numbers (5 marks) Follow the code template to write a program that reads in 10 numbers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once). The numbers are displayed in the order of their input and separated by exactly one space. 4 (Hint: Read a number and store it to an array if it is new. If the number is already in the array, discard it. After the input, the array contains the distinct numbers.) Sample Run Enter ten numbers: 1 2 3 2 1 6 3 4 5 2 The number of distinct numbers is 6 The distinct numbers are: 1 2 3 6 4 5 Question 6. Sum elements in each column (10 marks) Write a function that returns the sum of all the elements in a specified column in a matrix using the following header: double sumColumn(const double m[][4], int rowSize, int columnIndex) Follow the code template to write a program that reads a matrix and displays the sum of each column. Sample Run Enter a 3-by-4 matrix row by row: 1.5 2 3 4 5.5 6 7 8 9.5 1 3 1 Sum of the elements at column 0 is 16.5 Sum of the elements at column 1 is 9 Sum of the elements at column 2 is 13 Sum of the elements at column 3 is 13 Question 7. The Rectangle class (10 marks) Design a class named Rectangle to represent a rectangle. The class contains: • Two double data fields named width and height that specify the width and height of the rectangle. • A no-arg constructor that creates a rectangle with width 1 and height 1. • A constructor that creates a rectangle with the specified width and height. • The accessor and mutator functions for all the data fields. • A function named getArea() that returns the area of this rectangle. • A function named getPerimeter() that returns the perimeter. Implement the class. Write a test program that creates two Rectangle objects. Assign width 4 and 5 height 40 to the first object and width 3.5 and height 35.9 to the second. In the report, display the width, height, area, and perimeters of the first object and then the second object. Question 8. Geometry: The Rectangle2D class (15 marks) Define the Rectangle2D class that contains: • Two double data fields named x and y that specify the center of the rectangle with constant get functions and set functions. (Assume that the rectangle sides are parallel to x- or y-axes.) • The double data fields width and height with constant get functions and set functions. • A no-arg constructor that creates a default rectangle with (0, 0) for (x, y) and 1 for both width and height. • A constructor that creates a rectangle with the specified x, y, width, and height. • A constant function getArea() that returns the area of the rectangle. • A constant function getPerimeter() that returns the perimeter of the rectangle. • A constant function contains(double x, double y) that returns true if the specified point (x, y) is inside this rectangle. See Figure (a). • A constant function contains(const Rectangle2D &r) that returns true if the specified rectangle is inside this rectangle. See Figure (b). • A constant function overlaps(const Rectangle2D &r) that returns true if the specified rectangle overlaps with this rectangle. See Figure (c). In the report, draw the UML diagram for the class. Implement the class with the testing cases. Question 9. Geometry: find the bounding rectangle (10 marks) A bounding rectangle is the minimum rectangle that encloses a set of points in a two-dimensional plane, as shown in Figure (d). Write a function that returns a bounding rectangle for a set of points in a two-dimensional plane, as follows: const int SIZE = 2; Rectangle2D getRectangle(const double points[][SIZE]); Write another function that returns a pointer to the bounding rectangle as follows: 6 Rectangle2D* getRectanglePointer(const double points[][SIZE]); The Rectangle2D class is defined in Question 8. Follow the code template to write a program that enters five points and displays the bounding rectangle’s center, width, and height. Sample Run Enter five points: 1.0 2.5 3 4 5 6 7 8 9 10 The bounding rectangle’s center (5.0, 6.25), width 8.0, height 7.5 The bounding rectangle’s center (5.0, 6.25), width 8.0, height 7.5 Section B. Assignment Report (30 marks) 1) For all questions, correctly describe and analyse the key functions. Provide the program testing and execution which performs the calculation and arrives at the correct answer for the test cases (2 marks * 9 = 18 marks) 2) For all questions, provide clear and concise code with meaningful variable names and comments (1 marks * 9 = 9 marks) 3) Report quality: logical structure follows the template, adherence to 5-page limit, PDF format, no major grammar/spelling errors, etc. (3 marks) Submission Each individual student must submit the following files:  Report: A Student Name_ID.pdf file contains a cover letter with your information. This is a short report involves the program design, test results, and analysis comments for each question. The report should not exceed 5 pages.  Code: A Student Name_ID.zip file should include your program implementation, with all source code files. Please do not change the file names from the source code template. You must submit this source code on Gradescope, including all questions, even if you have not answered some of them.  You are allowed 5 resubmission attempts for your code on Gradescope. If you exceed this limit, your score will be based on your last submission. End of Coursework 、 請加QQ:99515681 郵箱:[email protected] WX:codinghelp

掃一掃在手機打開當前頁
  • 上一篇:代寫 Analyze 2G/3G/4G traffic using Wireshark 網絡安全
  • 下一篇:代寫股票指標 代做股票公式 一陽指破天公式
  • 無相關信息
    合肥生活資訊

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

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

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

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    欧美午夜不卡在线观看免费| 国产日韩精品视频一区| 午夜精品久久久| 欧美精品三级在线观看| 91色婷婷久久久久合中文| 怡红院av一区二区三区| 欧美日韩专区在线| 国产一区自拍视频| 美女视频一区二区三区| 国产亚洲综合性久久久影院| 国产九九精品| 成人激情校园春色| 亚洲自拍都市欧美小说| 欧美大片国产精品| 老司机一区二区三区| 粉嫩久久99精品久久久久久夜| 亚洲欧美色一区| 日韩欧美第一区| 性xx色xx综合久久久xx| 欧美99在线视频观看| 久久99精品国产| 一区二区三区美女视频| 久久精品日韩一区二区三区| 欧美色综合久久| 亚洲综合国产| 亚洲先锋成人| 成人午夜视频在线| 手机精品视频在线观看| 国产精品丝袜一区| 国产欧美日韩麻豆91| 欧美午夜视频网站| 亚洲黄色免费| 国产精品国产三级欧美二区| 国产在线精品一区二区三区不卡| 亚洲人成电影网站色mp4| 91麻豆精品国产91久久久资源速度| 欧美午夜精彩| 亚洲精品自在在线观看| 91免费版在线| 91视频在线观看免费| 99视频有精品| 国产成人丝袜美腿| 日韩 欧美一区二区三区| 一区二区在线观看不卡| 亚洲午夜激情av| 亚洲国产成人av网| 亚洲成人动漫精品| 久久99精品久久久久久动态图| 午夜私人影院久久久久| 亚洲丰满少妇videoshd| 亚洲一区日韩精品中文字幕| 亚洲四区在线观看| 亚洲一区二区三区自拍| 亚洲精品高清在线| 日本va欧美va精品发布| 国产乱人伦精品一区二区在线观看| 高清视频一区二区| 国产精品乱看| 91精品国产乱| 亚洲综合视频在线观看| 国产一区二区三区日韩| 91麻豆精品一区二区三区| 亚洲黄色大片| 欧美一区二区三区四区视频| 国产香蕉久久精品综合网| 综合精品久久久| 日本vs亚洲vs韩国一区三区二区| 国产suv一区二区三区88区| 欧美日韩精品免费观看| 久久久一二三| 久久久国产精品不卡| 亚洲综合色区另类av| 国产精品99久| 在线不卡亚洲| 欧美日韩第一区日日骚| 久久九九国产精品| 视频一区视频二区中文| 欧美激情综合| 欧美一级二级三级乱码| 亚洲一区av在线| 不卡的av在线| 日韩久久久精品| 麻豆国产精品一区二区三区 | 极品尤物av久久免费看| 国产精品乱码一区二区三区| 亚洲国产精品高清| 国产成人一区二区精品非洲| 男人的天堂亚洲| 亚洲日本一区二区| 欧美一区1区三区3区公司| 在线观看91精品国产麻豆| 天天色天天爱天天射综合| 亚洲激情一区二区| 欧美激情艳妇裸体舞| 国产成人欧美日韩在线电影| 色网站国产精品| 亚洲国产精品欧美一二99| 夜夜爽99久久国产综合精品女不卡| 欧美一区二区三区人| 日本最新不卡在线| 国产精品豆花视频| 日韩欧美视频一区| 成人aa视频在线观看| 欧美日韩精品是欧美日韩精品| 91视频你懂的| 精品国产sm最大网站| 韩国一区二区在线观看| 欧美日韩国产影片| 国产乱子伦一区二区三区国色天香 | 成人高清免费观看| 精品二区久久| 亚洲视频一区二区在线| 丁香婷婷综合色啪| 日韩欧美综合一区| 黄色成人在线网址| 亚洲成av人片在线观看无码| 欧美午夜精品免费| 成人在线视频一区二区| 欧美激情一区二区三区蜜桃视频| 亚洲视频狠狠| 视频一区二区三区入口| 91精选在线观看| gogogo免费视频观看亚洲一| 国产午夜亚洲精品不卡| 在线亚洲自拍| 国产精品88888| 中文字幕日韩一区二区| 久久精品成人| 高清在线成人网| 久久久午夜精品| 亚洲高清在线观看一区| 日韩成人免费电影| 欧美精品一区二区精品网| 国产欧美另类| 国产伦精品一区二区三区免费迷| 日本一区二区成人| 99在线|亚洲一区二区| 久久99热99| 亚洲综合一二区| 久久久亚洲精品一区二区三区| 亚洲三级国产| 国产成人精品www牛牛影视| 亚洲乱码一区二区三区在线观看| 在线观看日产精品| 国产日韩1区| 色综合一区二区| 午夜av一区二区三区| 国产日韩成人精品| 欧美一区二区三区视频免费播放| 欧美日韩在线不卡一区| 极品美女销魂一区二区三区免费| 亚洲最大色网站| 亚洲人妖av一区二区| 日韩精品一区二| 欧美精品18+| 91精品国产美女浴室洗澡无遮挡| 99国产精品| 亚洲美女一区| 亚洲综合国产激情另类一区| 国产亚洲永久域名| 国产一区再线| 国产综合精品| 99精品热视频只有精品10| 99热在线精品观看| 亚洲国产专区| 美女久久一区| 一本色道久久综合亚洲精品按摩| 新67194成人永久网站| 久久精品盗摄| 欧美三级在线播放| 日韩一二三四区| 久久久久亚洲蜜桃| 国产精品福利一区二区三区| 亚洲国产成人精品视频| 国模一区二区三区白浆| 粉嫩绯色av一区二区在线观看| 91视频免费看| 国产精品亚洲综合色区韩国| 亚洲在线不卡| 色av综合在线| 日韩亚洲欧美综合| 国产精品视频观看| 亚洲亚洲精品在线观看| 麻豆精品国产91久久久久久| 成人精品电影在线观看| 亚洲精品一区二区三区蜜桃久 | 美日韩一区二区三区| 国产高清视频一区| 欧美片网站免费| 久久天堂成人| 日韩一区二区在线免费观看| 亚洲欧洲av另类| 久久精品99国产精品日本| 午夜精彩国产免费不卡不顿大片| 一本色道亚洲精品aⅴ| 欧美激情一区二区三区蜜桃视频| 亚洲少妇30p| 亚洲成a人片综合在线| 成人黄色一级视频| 日韩午夜高潮|