狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

代寫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
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

標簽:

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

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

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

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

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    奇米777四色影视在线看| 三年中文高清在线观看第6集| 无限资源日本好片| 国产一区二区片| 在线视频一二区| 午夜免费高清视频| 黄色国产精品视频| 亚洲精品蜜桃久久久久久| www,av在线| 美女在线视频一区二区| 欧美三级午夜理伦三级| 免费超爽大片黄| 成人在线免费观看网址| 欧美性受xxxx黒人xyx性爽| 青青草精品视频在线观看| 老太脱裤让老头玩ⅹxxxx| 青草网在线观看| 玖玖精品在线视频| 国产精品一区在线免费观看| 亚洲美女性囗交| 中文字幕第38页| www.久久av.com| 亚洲视频一二三四| 日本高清免费在线视频| www.欧美激情.com| 亚洲精品国产久| 国产又爽又黄ai换脸| 日本中文字幕影院| 久久精品国产精品亚洲精品色| 亚洲综合伊人久久| 熟女视频一区二区三区| 欧洲xxxxx| 丁香花在线影院观看在线播放| 国产精品久久久久7777| 能在线观看的av| 黄色一级免费大片| 日韩欧美理论片| www.亚洲成人网| 日韩视频第二页| 五月激情婷婷在线| 亚洲激情免费视频| 国产三区在线视频| 手机免费看av网站| 麻豆映画在线观看| 日本精品一区二区三区四区| 欧美在线观看视频网站| 特黄特黄一级片| 亚洲 高清 成人 动漫| 在线免费观看视频黄| 青青在线免费视频| 日韩中文字幕二区| 特级西西444www| 国产精品无码av在线播放| 亚欧在线免费观看| 日本久久久网站| 玩弄japan白嫩少妇hd| 亚洲区成人777777精品| 91成人在线观看喷潮教学| 黄色手机在线视频| 精品国偷自产一区二区三区| 国产91色在线观看| 成 年 人 黄 色 大 片大 全| 国产91色在线观看| 激情伊人五月天| 日本黄网站色大片免费观看| 免费在线观看毛片网站| 9色视频在线观看| 免费在线观看污网站| 国产成人黄色片| 91国在线高清视频| 99日在线视频| 成人性生生活性生交12| 欧美成人高潮一二区在线看| 日本一区二区免费高清视频| 久久精品影视大全| 人妻有码中文字幕| 妺妺窝人体色777777| 蜜臀在线免费观看| 在线一区二区不卡| xxxx在线免费观看| 欧美日韩亚洲自拍| 中文字幕第21页| 农村妇女精品一二区| 欧美 日韩 亚洲 一区| 中文字幕精品在线播放| 搡的我好爽在线观看免费视频| 亚洲免费av一区二区三区| 精品国产免费av| 热99这里只有精品| ww国产内射精品后入国产| 国产情侣第一页| 久草免费福利在线| 国产不卡一区二区视频| 美脚丝袜脚交一区二区| 精品视频在线观看一区| 老太脱裤让老头玩ⅹxxxx| 日本a视频在线观看| 亚洲 自拍 另类小说综合图区| 超碰成人免费在线| 熟女少妇在线视频播放| 国产黄色一级网站| 成人亚洲视频在线观看| 中文字幕av不卡在线| 中文字幕第88页| 蜜桃视频成人在线观看| 337p亚洲精品色噜噜狠狠p| 亚洲精品蜜桃久久久久久| 国产精品久久中文字幕| 国产三级日本三级在线播放| 三级性生活视频| 天堂av免费看| 1024av视频| 天堂一区在线观看| 日本女人高潮视频| av免费观看大全| 国产精品久久久毛片| www.18av.com| 九色porny91| 亚洲色图都市激情| 国产又大又硬又粗| 欧美精品色视频| 欧美日韩黄色一级片| 亚洲激情在线看| 日本福利视频在线观看| 成人免费视频久久| 亚洲欧美一二三| 日本精品www| 伊人再见免费在线观看高清版 | 欧美一级免费播放| 手机视频在线观看| 蜜桃传媒一区二区三区| 亚洲最大天堂网| 男女av免费观看| 黑人巨大国产9丨视频| 日本在线观看a| 久久精品无码中文字幕| 国产无色aaa| 成人免费视频久久| 自拍日韩亚洲一区在线| 色男人天堂av| 日韩大片一区二区| av网站在线观看不卡| 久久久久亚洲av无码专区喷水| av丝袜天堂网| 国产免费黄视频| 欧美激情视频免费看| 最近中文字幕免费mv| 在线黄色免费观看| av无码精品一区二区三区| 少妇高潮喷水在线观看| 青青草免费在线视频观看| 日本中文字幕影院| 中文字幕国产传媒| 欧美精品aaaa| 美女一区二区三区视频| 欧美视频第一区| 国产精品97在线| 国产三区在线视频| 久久久久人妻精品一区三寸| 少妇高潮毛片色欲ava片| 欧美一区二区视频在线播放| 无颜之月在线看| 国产四区在线观看| 波多野结衣 作品| 欧洲美女和动交zoz0z| 玖玖精品在线视频| 中文字幕色呦呦| 青青青在线视频播放| www在线观看免费| 浮妇高潮喷白浆视频| 成人中文字幕在线播放| 亚洲自偷自拍熟女另类| 欧美黄网站在线观看| 国产一级片黄色| 性刺激的欧美三级视频| 色综合五月婷婷| 欧美日韩中文字幕在线播放| www精品久久| 白嫩少妇丰满一区二区| 精品999在线| 亚洲区成人777777精品| 青青青青草视频| 一本久道综合色婷婷五月| 日韩高清第一页| xxxxxx在线观看| 啊啊啊一区二区| 亚洲一级片网站| 久久精品在线免费视频| 国产真人做爰毛片视频直播| 日本成人中文字幕在线| 涩多多在线观看| 国产精品久久中文字幕| 欧美三级理论片| 国产欧美久久久久| 婷婷六月天在线| 成人午夜视频免费观看| 狠狠操精品视频| 777久久精品一区二区三区无码 | 免费日韩视频在线观看| 777一区二区|