精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

代寫CE4703、C++設計編程代做

時間:2023-11-03  來源:  作者: 我要糾錯


代寫CE4703、C++設計編程代做
CE4703 Computer Software 3
ED5071 Computer Engineering Fundamentals
Assignment #1
Dr Reiner Dojen 1
Due 11:00h on Thursday, 09.11.2023
1
[email protected]
CE4703/ED5071 Assignment #1
1 Overview
Your task is to develop a program that can create and anlyse arrays of integers
in various ways. While developing the program, you must follow the principle
of modular programming (I also strongly encourage to re-use code as much as
possible). Also, for any non-trivial function, you must follow the 7 Steps of
Systematic Program Construction. Furthermore, you must comment all your
code for Doxygen.
All code must be developed as a Microsoft Visual Studio (VS) project using
standard C.
You also need to construct a report (in plain text format - just add a text file
named after you student ID to your VS project) that contains the following:
• A list of modules that make up your program.
• For each module, list what functions it contains. Also, provide a function
prototype (i.e. a function declaration) for each function.
• Specification for each function.
• Pseudocode representation for each function. For simple functions, a single
iteration is sufficient - for any non-trivial function pseudo-code representation provide (at least) two iterations of refinement. As discussed in the
lecture, I recommend to also include your pseudo-code as “in-code” comments in your source files.
2 Modular Structure
Your program must implement the functions listed below in Section 2.1 Required
Functions. Before you start implementing these functions, you must design a
modular structure - that is, define the modules that will make up your program.
For each module, decide what functions it contains.
2.1 Required Functions
You must provide a function for each of the listed tasks below. Feel free to
implement additional functions.
Page 1 of 7
CE4703/ED5071 Assignment #1
Note: For this assignment, arrays distinguish between “used” and “unused” elements. This means, that the size (or capacity) of an array indicates the maximum
number of elements that can be stored in the array. However, not all elements
may be “used” - in the extreme case, nothing is stored in an array: That is, while
an array may have 20 elements, none of these are used to store a value. Thus,
you somehow need to find a way to store values in the array in such a way that
you can distinguish between “used” and “unused” array elements (various ways
are possible, e.g. you can use a marker value that is stored in “unused” locations
or you can use a secondary array to indicate which locations are used and which
are not used (other methods do exist)).
Any function that takes in an array needs to be aware of this distinction - for
example, the function to compute the average value should only consider “used”
elements and ingore “unused” elements.
• Return a random positive integer number. Use the standard library function
rand to generate these numbers - use the same range as rand(). Feel free
to seed the random number generator.
• Return a random integer number with given limits (stated limits should be
inclusive, that is if limits 10 and 20 are given number both 10 and 20 may
be returned as the random number).
• Fill a given array of integers with a given size with value 0 - that is fill the
array to its capacity (all elements are now “used”).
• Fill a given array of integers with a given size with a user-defined value n
- that is fill the array to its capacity.
• Fill a given array of integers with a given size with random values within a
given range - that is fill the array to its capacity.
• Clear an array of integers with a given size - that is, mark all array elements
as being “unused”.
• “Defragment” an array of integers with a given size: move all “used” elements to the beginning of the arra and all “free” elements to the end of the
array.
• Sort an array of integers with a given size in ascending order (you need to
find a method yourself - any method that works is acceptable, it does not
need to be particularly efficient).
• Randomize an array of integers with a given size - that is rearrange the
elements of an arry in a random fashion.
Page 2 of 7
CE4703/ED5071 Assignment #1
• Print only “used” elements of an array of integers with a given size in form
{n1, n2, n3,. . . , n}. An empty array (array with only “unused” elements) is
printed as {}.
• Print (all) elements of an array of integers with a given size in form
{n1, n2, n3,. . . , n}. This function prints both, used and unused elements.
• Return the minimum element of an array of integers with a given size.
• Return the maximum element of an array of integers with a given size.
• Compute and return the average value (as double) of and array of integers
with a given size.
• Obtain and return the median value of and array of integers with given size.
• Compute and return the variance (as double) of and array of integers with
a given size. Variance v of {n1, n2, n3, . . . , nN } is given as:
P
N
i=1
(ni − avg)
2
N
,
where avg is the average value and N are the number of elements in the
array).
• Compute and return the standard deviation (as double) of and array of
integers with a given size. Standard deviation is calculated as follows:
vuuut
P
N
i=1
(ni − avg)
2
N
,
where avg is the average value and N are the number of elements in the
array).
• Return the number of used elements in an array of integers of a given size
(this is not neccessarily the same as the size).
• Return the number of unique used elements in an array of integers of a
given size. For example, if your array holds elements {3, 1, 2, 3, 4, 3, 2,
2, 3, 4}, it holds 10 elements in total, but it holds only 4 unique elements
(elements 1,2,3,4).
• Print (to the screen) a frequency distribution of the unique elements of an
array of integers of a given size. That is, print to the screen a summary
how often each (unique) element occurs in the array. For example, if your
array holds elements {3, 1, 2, 3, 4, 3, 2, 2, 3, 4} then the following ouput
should be obtained:
Page 3 of 7
CE4703/ED5071 Assignment #1
N Count
3 4
1 1
2 3
4 2
Note: The output should be something like this. Minor differences in formatting (number of blanks etc.) will not impact on the marking. The order
in which the elements occur in the two column display is not important.
• A test main() function - see comments in Section 3.
3 Module Implementation
Implement your application one module at a time (all modules should be placed
within the same VS project). Each module consists of two files: a header file
(with a .h extension - make sure it contains an inlude guard) that contains all
declarations and a source file (with a .c extension) that contains the implementation for all functions of a given module. As these modules are quite small, there
is no need to organize them in folders/directories. Also, please make sure to store
the main() function in a separate C souce file.
Also, your program must use the following:
• Files need to #include your own header files as required.
• At least one simple Pre-Processor macro must be defined and used.
• At least one Pre-Processor macro that takes in two parameters must be
defined and used.
• Conditional Inclusion in at least one location.
• Define the following symbolic constants:
Symbolic Constants Name Value
MYSIZE1 10
MYSIZE2 50
MIN1 0
MAX1 10
MIN2 100
MAX2 120
Page 4 of 7
CE4703/ED5071 Assignment #1
3.1 The main() Function
The main() function performs the following (whenever an array is printed to the
screen, make sure to also print the array’s name):
• Create array data1 with MYSIZE1 elements, clear the array and print the
array.
• Fill data1 with random values in range MIN1 to MAX1 and print the array.
• Sort data1 and print it to the screen.
• Randomize data1 and print it to the screen.
• Fill data1 with values {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and print it to screen.
Remove values 1, 4, 5, and 9 from array (mark their locations being “unused”) and print all of the array. Also, print the number of used elements
in data1.
• Defragment the array and print again all of the array.
• Obtain and print minimum, maximum, average and median value of data1.
• Obtain and print variance and standard deviation of data1.
• Create array data2 with MYSIZE2 elements, fill it with values {3, 1, 2, 3,
4, 3, 2, 2, 3, 4} and print it to the screen.
• Obtain and print the number of used elements in data2, the number of
unique used elements and print the frequency distribution of data2.
• Fill data2 with MYSIZE2 random values in range MIN2 to MAX2 (overwrite previous values).
• Obtain and print minimum, maximum, average and median value of data2.
• Obtain and print variance and standard deviation of data2.
• Obtain and print the number of used elements in data2, the number of
unique used elements and print the frequency distribution of data2.
• Sort data2 and print it.
Page 5 of 7
CE4703/ED5071 Assignment #1
4 Marking
This is an individual assignment - each student must develop his/her own solution.
Any duplicate solutions will receive 0 marks.
The following items will impact on your marks:
• Does your solution perform the required actions correctly?
• Quality of Modular Structure.
• Overall quality of your code (including choice of names for variables and
structure of your code).
• Do not use global variables - unless you provide a very good justification
why global variables make sense, you will loose marks!
• Quality of your comments (cf. slide “Commenting Guidelines” in Unit 1).
Lack of comments will result in very significant loss of marks!!! And yes,
you do need “in code” comments in addition to the Doxygen comments
• Quality of your code format - follow K&R Coding Style as discussed in
lecture (cf. slides “K & R Coding Style” in Unit 1).
• Presence of warnings will cause loss of marks! Please make sure to use
standard C, enable warninga and use separate compilation.
• If your code does not compile you will receive 0 marks!
• Thus, if you are not able to finish any part of the exercise successfully,
comment out the sections of code that cause the problem (don’t delete it -
I might find some merrit in it and you may gain some marks).
Marking Scheme
hline Modular Structure & report 30
Correcly implemented functions (1 1
2 marks each) 30
Complete & suitable Doxygen Comments in code, doxygen documentation generated & submitted
20
All Pre-Processor features implmented 10
Correct & complete main() function (2/bullet-point). 30
Penalties:
Poor Modular Structure: Up to -50%
Insufficient comments: Up to -30%
Poor code format: Up to -30%
Bad coding style (e.g. using goto or global variables) Up to -50%
Compile Time Warning: -10% each
Compile Time Error: -100%
Total: (Note: Marks will be scaled down to 20%.) 120
Page 6 of 7
CE4703/ED5071 Assignment #1
5 Deadline & Submission
Deadline for this assignment is 11:00h on Thursday, 09.11.2023.
Please submit your solution as a single zip file via the module’s Brightspace page.
All solutions must be submitted as MV Studio projects - please put your entire
solution into a zip archive (Remove the “.vs” folder in your solution and peform
Build→Clean before you zip your solution).
A complete solution contains:
• All source & header files (suitable formatted & commented) as part of a
VS project.
• Generated Doxygen documentation in HTML format (stored in a subfolder
in the project’s base folder).
• Report - named after your ID number - in text format, containing: List
of modules, list of functions per module, specification for each functions,
pseudo-code for each function.
6 Queries
Please post any queries regarding the assignment on the forum “Assignment #1
Q&A” (found in “Discussions” tab on the Brightspace page). This will ensure
that the entire class gets the benefit of the answer.
請加QQ:99515681 或郵箱:[email protected]   WX:codehelp

標簽:

掃一掃在手機打開當前頁
  • 上一篇:CHC5028代做、C/C++程序設計代寫
  • 下一篇:代做COMP9024、代寫c/c++編程設計
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      国产精品欧美久久久久无广告 | 中文字幕在线观看一区二区| 一区二区三区日韩欧美精品| 国产超碰在线一区| 久久日韩粉嫩一区二区三区 | 狠狠色综合播放一区二区| 884aa四虎影成人精品一区| 亚洲成av人片www| 日韩亚洲欧美一区| 久久成人免费电影| 久久蜜臀精品av| 国产91清纯白嫩初高中在线观看| 亚洲国产激情av| a级高清视频欧美日韩| 一区二区三区日韩欧美| 欧美精品欧美精品系列| 老司机精品视频导航| 久久九九久精品国产免费直播| 成人免费黄色大片| 亚洲成人黄色小说| 日韩欧美久久一区| 99久久99久久精品免费看蜜桃| 亚洲一区二区3| 久久久综合九色合综国产精品| 粉嫩一区二区三区性色av| 一区二区三区四区乱视频| 91精品国产综合久久久蜜臀图片| 韩日欧美一区二区三区| 亚洲精品中文在线观看| 日韩一区二区三区三四区视频在线观看 | 色综合久久综合网欧美综合网| 亚洲影院在线观看| 精品国产污污免费网站入口| 99re成人精品视频| 紧缚捆绑精品一区二区| 亚洲激情成人在线| 国产日韩亚洲欧美综合| 欧美挠脚心视频网站| 成人免费黄色在线| 久久精品国产亚洲高清剧情介绍 | 国产欧美一区二区在线| 欧美日韩在线播放三区| 懂色一区二区三区免费观看| 午夜激情久久久| 中文字幕人成不卡一区| 精品人在线二区三区| 欧美在线一区二区| 北条麻妃国产九九精品视频| 久久国产三级精品| 亚洲gay无套男同| 一区二区三区在线免费| 国产精品素人一区二区| 久久综合久久综合久久| 91麻豆精品国产91久久久久久 | 亚洲一级不卡视频| 国产精品毛片久久久久久久| 精品剧情在线观看| 日韩视频在线永久播放| 欧美日韩在线精品一区二区三区激情| 成人免费电影视频| 成人激情免费网站| 成人激情开心网| 成人一级黄色片| 国产乱色国产精品免费视频| 日韩精品亚洲一区| 天天操天天干天天综合网| 亚洲在线免费播放| 亚洲地区一二三色| 亚洲国产欧美日韩另类综合| 亚洲一区二区在线播放相泽| 亚洲精品视频观看| 一区二区高清在线| 亚洲国产美女搞黄色| 亚洲国产日韩精品| 日韩黄色片在线观看| 亚洲国产精品久久一线不卡| 亚洲自拍欧美精品| 五月激情丁香一区二区三区| 石原莉奈一区二区三区在线观看 | 国产一区二区在线影院| 国产一区不卡在线| 国产成人99久久亚洲综合精品| 国产福利电影一区二区三区| 成人午夜视频福利| 91国偷自产一区二区三区成为亚洲经典| 91麻豆免费看| 欧美精选一区二区| 久久天天做天天爱综合色| 中文字幕va一区二区三区| 日韩一区在线免费观看| 亚洲国产美女搞黄色| 久久精品久久精品| 成人午夜av影视| 欧美亚洲日本国产| 精品电影一区二区三区| 国产精品婷婷午夜在线观看| 亚洲视频你懂的| 日韩av一二三| 成人精品免费网站| 欧美日韩国产一级二级| 久久久久久久精| 亚洲六月丁香色婷婷综合久久 | 韩国在线一区二区| 成人a免费在线看| 欧美日韩一级二级三级| 精品国内二区三区| 1024亚洲合集| 老司机精品视频一区二区三区| 国产a精品视频| 欧美人狂配大交3d怪物一区| 国产偷国产偷精品高清尤物| 亚洲国产一区二区a毛片| 国产一区二区美女诱惑| 欧美视频在线不卡| 国产精品视频yy9299一区| 日韩电影在线一区| 91免费版在线| 欧美激情一区在线| 久久电影国产免费久久电影 | 免费看黄色91| 在线看一区二区| 中文成人av在线| 久久99精品久久只有精品| 色就色 综合激情| 国产精品麻豆欧美日韩ww| 久久69国产一区二区蜜臀| 欧美日韩电影在线播放| 一区二区三区在线看| 成人动漫av在线| 久久久欧美精品sm网站| 日韩av午夜在线观看| 欧美三区免费完整视频在线观看| 欧美激情一区在线| 国产乱子伦一区二区三区国色天香| 欧美在线观看视频一区二区| 国产精品国产自产拍高清av| 久久99精品网久久| 日韩欧美一区在线| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美亚洲国产一区在线观看网站| 一区在线中文字幕| 一本到不卡精品视频在线观看| 国产精品三级在线观看| 国产乱码字幕精品高清av | 97久久精品人人做人人爽50路 | 亚洲一区在线观看网站| 99久久99久久免费精品蜜臀| 国产精品色哟哟| 99re在线视频这里只有精品| 亚洲欧美在线另类| 在线观看日韩av先锋影音电影院| 一区二区三区在线观看动漫| 色屁屁一区二区| 亚洲精品乱码久久久久久黑人| 99热国产精品| 亚洲午夜精品一区二区三区他趣| 欧美视频你懂的| 午夜精品免费在线观看| 欧美一区二区三区婷婷月色| 麻豆91在线看| 亚洲国产精华液网站w| hitomi一区二区三区精品| 一区二区三区欧美| 欧美一区二区三区成人| 精品制服美女久久| 国产精品久久看| 欧美色窝79yyyycom| 久久99精品久久久久久久久久久久| 久久久亚洲综合| 色婷婷综合激情| 青娱乐精品视频在线| 欧美电影免费提供在线观看| 成人在线综合网站| 亚洲一区二区三区中文字幕 | 国产99久久久国产精品潘金| 亚洲精选在线视频| 日韩免费电影一区| 国产成人免费在线视频| 亚洲午夜久久久久久久久电影院 | 久久久久久久久久看片| 在线免费不卡视频| 国产一区日韩二区欧美三区| 亚洲蜜桃精久久久久久久| 宅男噜噜噜66一区二区66| 国产成人av一区二区三区在线观看| 亚洲女女做受ⅹxx高潮| 日韩欧美国产电影| 色伊人久久综合中文字幕| 蜜桃精品在线观看| 亚洲精品自拍动漫在线| 精品国产免费一区二区三区四区 | 成人免费黄色在线| 日本不卡的三区四区五区| 国产精品视频观看| 日韩亚洲欧美在线观看| 在线视频一区二区三| 国产精品一区二区在线看| 日韩精品色哟哟| 一区二区日韩av| 中文字幕在线观看不卡|