亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美va在线观看_成人黄网大全在线观看_日韩精品一区二区三区中文_亚洲一二三四区不卡

代寫CE4703、C++設(shè)計編程代做

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


代寫CE4703、C++設(shè)計編程代做
CE4703 Computer Software 3
ED5071 Computer Engineering Fundamentals
Assignment #1
Dr Reiner Dojen 1
Due 11:00h on Thursday, 09.11.2023
1
reiner.dojen@ul.ie
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 或郵箱:99515681@qq.com   WX:codehelp

標(biāo)簽:

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    欧美一区二区三区四区五区| 国产亚洲精品v| 女同一区二区三区| 视频在线一区| 亚洲影院天堂中文av色| 精品久久一区| 黑人一区二区| 日本麻豆一区二区三区视频| 九九视频精品免费| av一区二区久久| 国产精品三级视频| 亚洲一区二区三区四区在线| 亚洲国产欧美一区二区三区丁香婷| 午夜精品久久久久久久99水蜜桃| 欧美午夜片在线免费观看| 欧美在线高清视频| 日韩免费观看高清完整版| 成人一区二区不卡免费| 久香视频在线观看| 一本色道久久综合| 毛片在线视频| 在线播放91灌醉迷j高跟美女| 欧美日韩成人综合| 精品日韩在线一区| 三级黄视频在线观看| 欧美a免费在线| 日韩免费va| 久9re热视频这里只有精品| 亚洲黄色一区| 午夜精品毛片| 久久精品免费观看| 国产农村妇女精品| 色婷婷久久久综合中文字幕| 成人免费视频77777| www 日韩| 亚洲人成网站在线在线观看| 欧美精品一区二区久久| 午夜亚洲视频| 欧美国产日韩a欧美在线观看| 色又黄又爽网站www久久| 日本免费视频www| 91破解版在线观看| 亚洲性视频大全| 麻豆精品蜜桃视频网站| 国产精品国产三级国产有无不卡| 欧美性高清videossexo| 丝袜视频国产在线播放| 日韩中文视频| 午夜视频一区| 久久久国产午夜精品| 在线观看国产91| 国内在线免费高清视频| 99精品美女视频在线观看热舞| 99久久久久| 91女人视频在线观看| 欧美日韩精品欧美日韩精品| 精品亚洲成a人片在线观看| 99亚洲伊人久久精品影院| 欧美精品国产一区二区| 99精品视频在线播放观看| 欧美性生活大片视频| 91在线视频| 亚洲妇女av| 国产精品亚洲人在线观看| 色婷婷久久久亚洲一区二区三区| 午夜影院免费看| 99久久99九九99九九九| 日韩精品一级二级| 欧美色视频日本版| av免费在线一区二区三区| 136福利精品导航| 久久成人羞羞网站| 欧美在线观看一二区| 1024在线播放| 亚洲国产成人精品女人| 国产精品九色蝌蚪自拍| 黄色av地址| 久久精品免视看国产成人| 韩国一区二区视频| 在线播放日韩导航| 大胆人体一区二区| 久久久精品午夜少妇| 精品女同一区二区三区在线播放| 国产一区二区三区不卡在线| 亚洲69av| 国产精品美女久久久久高潮| 可播放的18gay1069| 1313精品午夜理伦电影| 99精品视频在线观看| 成人性生交大片免费看视频r| 亚洲天堂导航| 精品写真视频在线观看 | 午夜小视频福利在线观看| 欧美亚洲精品在线| 亚洲精品综合在线| 亚洲欧美视频一区二区| 91tv官网精品成人亚洲| 亚欧色一区w666天堂| 亚洲区欧洲区| 日日骚欧美日韩| 日韩欧美在线123| 日韩成人视屏| 国产亚洲综合色| 国产视频在线看| 欧美激情成人在线| 欧美性猛交xxxx乱大交3| 免费毛片b在线观看| 另类小说综合欧美亚洲| 一本久久a久久精品亚洲| 91丨九色丨尤物| 天天综合入口| 91综合久久一区二区| 亚洲五月六月丁香激情| xxxx成人| 国产传媒欧美日韩成人| 一级黄色av| 91精品国偷自产在线电影| 欧美日韩国产精品| 国产精品久久乐| 国产人伦精品一区二区| 日韩毛片久久久| 国产精品综合色区在线观看| 日韩精品在线网站| 九一精品国产| 91福利社在线观看| 999精品嫩草久久久久久99| 中文无字幕一区二区三区 | 色综合久久天天| xxxxx.日韩| 免费萌白酱国产一区二区三区| 26uuu精品一区二区在线观看| 一色桃子在线| xx欧美视频| 欧美12一14sex性hd| 国产精品久久天天影视| 欧美剧情片在线观看| 91看片一区| 综合分类小说区另类春色亚洲小说欧美 | 伊人资源视频在线| 久久一本综合| 伊人电影在线观看| 欧美伊人久久久久久午夜久久久久| 电影中文字幕一区二区| 亚洲欧美日韩国产另类专区| 男人最爱成人网| 日韩限制级电影在线观看| 日韩中文字幕在线一区| 亚洲欧美日韩在线播放| 国产欧美日韩在线观看视频| 精品视频在线一区二区| 色就色 综合激情| 国产一区91| 第一sis亚洲原创| 久久国产成人精品| 免费一区二区| 全国精品免费看| 欧美a级在线观看| 日韩三级影院| 欧美一区二区免费观在线| 国产精品一二三| 日韩三级av| 麻豆传媒在线完整视频| 亚洲欧洲日韩av| 奇米影视一区二区三区| 日韩精品亚洲专区在线观看| 男女午夜网站| 91亚洲国产成人精品一区二三| wwwww亚洲| 天天影视色香欲综合网老头| 日韩国产欧美| 成人影院大全| 在线免费福利| 日韩欧美国产小视频| 在线观看成人小视频| 日本一区二区三级电影在线观看| 日韩国产大片| 免费一级毛片在线观看| 精品视频一区二区不卡| 欧美国产激情二区三区| 日韩中文字幕高清在线观看| 欧美美女一区二区在线观看| 久久激情五月婷婷| 亚洲婷婷在线| 51亚洲精品| 草草影院在线观看| 欧美人体大胆444www| 成年午夜在线| 国产精品二线| 在线成人av观看| 一区二区三区电影大全| 视频欧美精品| av在线播放一区| 成人爱爱网址| 国产美女在线播放| 亚洲国产精品一区二区尤物区| 懂色av一区二区三区免费看| 激情综合五月婷婷| 亚洲国产日本| 亚洲国产免费看| 国产在线观看91一区二区三区 |