日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              9000px;">

                        国产精品福利影院| 欧美天天综合网| 五月婷婷综合网| 欧美性一区二区| 久久99国产精品尤物| 亚洲自拍与偷拍| 国产精品美女久久久久aⅴ国产馆| 91丨九色丨蝌蚪丨老版| 久久精品国产精品亚洲精品| 亚洲一区二区黄色| 国产精品久久免费看| 精品国产伦一区二区三区免费| 成人性生交大合| 伦理电影国产精品| 午夜亚洲国产au精品一区二区 | 91精品综合久久久久久| 色先锋aa成人| 91香蕉视频在线| 国产一区二区三区四区五区美女| 丝袜亚洲另类欧美| 成人欧美一区二区三区1314| 国产精品久久久久久久裸模| 欧美国产欧美综合| 久久久久久久精| 久久久久国产精品免费免费搜索| 色噜噜狠狠色综合中国| 91丨porny丨最新| 99久久夜色精品国产网站| 暴力调教一区二区三区| 国产精品白丝av| 久久99久久精品| 国产精品一品视频| 国产69精品一区二区亚洲孕妇| 国产精品亚洲午夜一区二区三区 | 欧美日韩国产美女| 欧美撒尿777hd撒尿| 99精品国产视频| 91玉足脚交白嫩脚丫在线播放| 高清成人在线观看| 成人久久久精品乱码一区二区三区 | 成人av午夜影院| 欧美三级视频在线播放| 91精品国产综合久久香蕉麻豆 | 欧美日韩国产精品成人| 欧美在线免费观看视频| 欧美精品粉嫩高潮一区二区| 日韩一区二区在线看| 久久久久国产精品麻豆| 国产精品午夜在线| 国产精品亲子乱子伦xxxx裸| 亚洲免费视频成人| 日韩国产精品91| 性做久久久久久| 国产伦精品一区二区三区视频青涩 | 中文字幕不卡的av| 亚洲欧美日韩在线播放| 亚洲成人免费视频| 国产91精品在线观看| 91麻豆免费看片| 欧美电影一区二区| 国产精品欧美久久久久无广告| 亚洲一区二区三区在线看| 日韩国产一区二| 懂色av噜噜一区二区三区av| 91亚洲精品一区二区乱码| 91精品在线免费| 国产欧美日韩综合| 婷婷久久综合九色综合绿巨人 | 久久综合五月天婷婷伊人| 中文字幕成人av| 蜜桃视频在线观看一区| 成人av影视在线观看| 欧美电视剧免费观看| 亚洲在线免费播放| 国产1区2区3区精品美女| 91精品国产91久久久久久一区二区 | 精品国产乱码久久久久久牛牛| 亚洲欧美日韩成人高清在线一区| 韩国av一区二区三区| 欧美美女网站色| 琪琪一区二区三区| 91精品婷婷国产综合久久性色| 亚洲国产aⅴ天堂久久| 91福利社在线观看| 亚洲午夜免费福利视频| 欧美日韩精品一区二区三区四区| 亚洲国产精品久久不卡毛片 | 国产精品久久看| 91丨porny丨中文| 一区二区高清在线| 欧美视频一二三区| 蜜臀久久99精品久久久久久9| 精品国产精品一区二区夜夜嗨| 国产在线精品免费| 亚洲国产高清在线| 欧洲一区二区三区免费视频| 亚洲国产视频一区二区| 在线综合亚洲欧美在线视频| 国内外成人在线| 中文字幕字幕中文在线中不卡视频| 欧美亚洲综合一区| 老色鬼精品视频在线观看播放| www久久精品| 91成人免费在线视频| 人妖欧美一区二区| 中文字幕国产一区二区| 欧洲国内综合视频| 激情五月播播久久久精品| 国产精品人人做人人爽人人添 | 免费观看在线综合色| 国产精品网站在线观看| 精品视频一区二区三区免费| 精品一区二区三区不卡| 伊人婷婷欧美激情| 久久影院午夜片一区| 欧美在线制服丝袜| 国产自产高清不卡| 亚洲成在人线在线播放| 国产午夜精品一区二区三区视频| 欧美日韩亚洲综合在线 | 99精品国产91久久久久久| 午夜精品福利视频网站| 2欧美一区二区三区在线观看视频| 成人av先锋影音| 免费成人av在线播放| 亚洲女子a中天字幕| 国产午夜三级一区二区三| 91精品国产aⅴ一区二区| 成人aaaa免费全部观看| 免费高清在线一区| 亚洲一区二区欧美日韩| 久久免费美女视频| 欧美一区二区黄色| 欧美色图一区二区三区| 成人午夜精品在线| 国内成人自拍视频| 喷白浆一区二区| 日韩极品在线观看| 亚洲女爱视频在线| 日韩一区欧美一区| 国产欧美日本一区视频| 久久久国产午夜精品 | 成人小视频免费在线观看| 极品少妇一区二区| 久久精品二区亚洲w码| 午夜a成v人精品| 午夜电影一区二区| 亚洲一区二区高清| 亚洲综合男人的天堂| 亚洲综合男人的天堂| 亚洲欧美日韩久久精品| 亚洲女同ⅹxx女同tv| 亚洲人被黑人高潮完整版| 国产精品色一区二区三区| 国产精品伦理一区二区| 国产女人18毛片水真多成人如厕| 久久综合久久鬼色| 国产欧美日韩视频一区二区 | 亚洲精品一二三区| 亚洲一区二三区| 天堂在线亚洲视频| 亚洲成a人v欧美综合天堂下载| 亚洲成人激情自拍| 日韩黄色在线观看| 国内成人精品2018免费看| 国产一区二区三区在线观看精品| 国产精品88888| 91理论电影在线观看| 91国内精品野花午夜精品| 在线观看av一区| 91麻豆精品国产91久久久久久久久| 91麻豆精品国产91久久久久久 | a美女胸又www黄视频久久| 91美女片黄在线观看| 欧美色图在线观看| 精品久久久久久久人人人人传媒| 国产日韩视频一区二区三区| 国产精品传媒视频| 午夜亚洲国产au精品一区二区 | 国产偷国产偷亚洲高清人白洁| 国产精品美女久久久久高潮| 一区二区久久久| 日韩精品视频网| 成人性视频免费网站| 欧美三级电影一区| 久久久噜噜噜久久中文字幕色伊伊| 国产精品久久久久四虎| 三级久久三级久久久| 国产91高潮流白浆在线麻豆 | 日韩在线播放一区二区| 国产一区二区三区免费看| 色狠狠桃花综合| 日韩一级黄色大片| 亚洲精品写真福利| 狠狠色丁香久久婷婷综| 在线亚洲+欧美+日本专区| 久久久99精品久久| 免费在线观看成人| 日本大香伊一区二区三区| 国产视频一区在线播放|