久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

代寫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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    一级特黄妇女高潮| 草草视频在线免费观看| 国产九九九视频| 免费在线观看亚洲视频 | a级黄色片网站| 免费无码不卡视频在线观看| 在线a免费观看| 日本在线视频www| 中国一级大黄大黄大色毛片| 国内自拍视频一区| 国产av天堂无码一区二区三区| www.99r| 成人免费在线小视频| 亚洲欧美日韩不卡| 免费一级特黄录像| 大陆极品少妇内射aaaaa| 中国一级大黄大黄大色毛片| 911福利视频| 成人精品小视频| 欧美精品卡一卡二| 中文字幕乱码免费| 日本特黄在线观看| 亚洲 欧美 日韩系列| 欧美日韩中文在线视频| 男女日批视频在线观看| 神马午夜伦理影院| 操人视频免费看| 欧美一级小视频| 三上悠亚在线一区| 欧美黄色性生活| 午夜激情福利在线| 韩国日本在线视频| 激情深爱综合网| 日韩小视频网站| a级片一区二区| dy888午夜| 永久av免费在线观看| 污污网站在线观看视频| 日本激情综合网| 亚洲精品手机在线观看| 波多野结衣 作品| 波多野结衣 作品| 91视频 - 88av| 看一级黄色录像| 国产又粗又大又爽的视频| 欧美日韩一级在线| 亚洲第一精品区| 亚洲天堂av免费在线观看| 国产九九九视频| 国产精品8888| 男人天堂av片| 精品视频在线观看一区| 999在线观看视频| 精品国产一区三区| 男人日女人下面视频| 欧美网站免费观看| 午夜肉伦伦影院| 日本激情综合网| 91丝袜超薄交口足| 97超碰免费观看| www.在线观看av| 毛片在线视频播放| www.国产区| 手机视频在线观看| 看看黄色一级片| 熟女视频一区二区三区| av网站手机在线观看| 男人日女人bb视频| 91女神在线观看| 激情五月五月婷婷| 男女超爽视频免费播放| 久草精品在线播放| 最新免费av网址| 400部精品国偷自产在线观看| 狠狠精品干练久久久无码中文字幕| 久艹在线免费观看| 欧美牲交a欧美牲交aⅴ免费下载| 91插插插插插插插插| 91亚洲一区二区| 毛片在线播放视频| 欧美性猛交xxx乱久交| 三级黄色片免费看| 黄色一级片在线看| 一区二区在线播放视频| 日本成人在线免费视频| 成人午夜免费剧场| 国内性生活视频| 亚洲综合欧美在线| 三级在线免费观看| 激情五月开心婷婷| 三日本三级少妇三级99| 国产二区视频在线| 尤蜜粉嫩av国产一区二区三区| 黑人巨大国产9丨视频| 亚洲乱码中文字幕久久孕妇黑人| 涩涩网站在线看| 欧美 日韩 亚洲 一区| 午夜激情av在线| 极品粉嫩国产18尤物| 国产免费又粗又猛又爽| 国产精品视频二| 春日野结衣av| 五月六月丁香婷婷| 免费无码国产v片在线观看| 视频在线观看免费高清| 男人天堂手机在线视频| 伊人影院综合在线| 亚洲精品无码国产| av免费一区二区| 99精品在线免费视频| 肉色超薄丝袜脚交| 日本黄网站免费| 菠萝蜜视频在线观看入口| 国产三级三级三级看三级| 国产肉体ⅹxxx137大胆| 色悠悠久久综合网| 女人和拘做爰正片视频| 中文字幕乱码免费| 日日躁夜夜躁aaaabbbb| 青青草国产免费| 一级网站在线观看| 污污视频网站免费观看| 久久久久久久久久久99| 中国黄色录像片| 最新av免费在线观看| 国产免费成人在线| 青青草国产精品视频| 天天干天天色天天爽| 爱豆国产剧免费观看大全剧苏畅| 久久久久久久久久久视频| 轻点好疼好大好爽视频| 99re99热| 亚洲激情在线看| 免费观看成人网| 2022亚洲天堂| 欧美视频在线观看视频| 国产午夜精品视频一区二区三区| 性欧美在线视频| 欧美大尺度做爰床戏| aⅴ在线免费观看| 青青青青草视频| 国产日韩欧美精品在线观看| 草草草视频在线观看| 亚洲成人动漫在线| 中文字幕黄色大片| 在线观看免费视频高清游戏推荐| 国产一级不卡毛片| 免费观看精品视频| 东京热加勒比无码少妇| 欧美成人一区二区在线观看| 国精产品一区一区三区视频| www.av毛片| aaa一级黄色片| 亚洲娇小娇小娇小| 欧美美女一级片| 污污的网站免费| 一区二区在线免费看| av网站在线不卡| 日韩一区二区三区久久| 日韩高清第一页| 欧美又黄又嫩大片a级| 极品粉嫩美女露脸啪啪| 中文字幕线观看| 免费久久久久久| 女人床在线观看| 六月婷婷激情综合| 91精品国产91久久久久麻豆 主演| 成人一区二区免费视频| 日韩av三级在线| 国产熟人av一二三区| 亚洲视频第二页| 亚洲天堂一区二区在线观看| 992tv快乐视频| 男人日女人视频网站| 国产l精品国产亚洲区久久| 成人性视频欧美一区二区三区| 免费一区二区三区在线观看 | 男人j进女人j| 免费在线看黄色片| 亚洲 欧美 日韩 国产综合 在线| 妺妺窝人体色www在线小说| 人人干人人视频| 人人爽人人爽av| 成人午夜免费在线视频| 精品久久久久久久久久中文字幕| 无遮挡又爽又刺激的视频 | 一二三在线视频| 日本精品久久久久久久久久| www.玖玖玖| 最新天堂中文在线| 99热这里只有精品7| 成人毛片一区二区| 99视频免费播放| 久久人人爽人人片| 国产毛片视频网站| 欧美成人黄色网址| 可以在线看黄的网站| 免费裸体美女网站| 艳母动漫在线免费观看| 99视频在线免费播放|