免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300

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

    免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300
    一区二区在线观看免费视频播放| 欧美日韩国产另类不卡| 亚洲福利视频一区| 亚洲精品菠萝久久久久久久| 亚洲三级小视频| 亚洲久草在线视频| 亚洲一区二区三区四区在线观看| 中文字幕一区二区三区不卡| 成人免费小视频| 综合久久给合久久狠狠狠97色| 中文一区二区在线观看| 国产精品少妇自拍| 中文字幕一区二区三区四区| 国产亚洲精品bt天堂精选| 欧美国产亚洲另类动漫| 国产精品麻豆网站| 亚洲欧洲综合另类在线| 91小视频在线| 欧美日韩一区二区三区在线看| 欧美人伦禁忌dvd放荡欲情| 91精品国产综合久久精品| 国产成人精品免费在线| 国产91在线观看| 91小视频在线| 欧美日韩电影一区| 精品黑人一区二区三区久久| 欧美激情综合网| 亚洲精品乱码久久久久久| 亚洲国产精品一区二区尤物区| 亚洲线精品一区二区三区| 亚洲国产视频网站| 免费亚洲电影在线| 亚洲国产日韩a在线播放性色| 亚洲成人久久影院| 久久99在线观看| 奇米色777欧美一区二区| 国内精品久久久久影院一蜜桃| 成人激情午夜影院| 欧美在线一区二区| 欧美一区二区网站| 欧美国产丝袜视频| 亚洲国产你懂的| 激情综合五月天| 91在线观看地址| 视频一区欧美日韩| 国产揄拍国内精品对白| 97国产精品videossex| 欧美日韩国产高清一区二区| 精品国产乱子伦一区| 亚洲欧美偷拍另类a∨色屁股| 偷拍亚洲欧洲综合| 大桥未久av一区二区三区中文| 91九色最新地址| 久久夜色精品国产噜噜av| 中文字幕一区二区不卡| 蜜桃视频免费观看一区| 99精品视频在线观看| 欧美精品久久久久久久久老牛影院 | 欧美一区二区性放荡片| 久久人人爽人人爽| 亚洲一区二区三区四区在线免费观看| 韩国三级电影一区二区| 91官网在线观看| 欧美tk丨vk视频| 一区二区在线观看不卡| 狠狠v欧美v日韩v亚洲ⅴ| 91黄色免费网站| 日韩毛片一二三区| 精品一区精品二区高清| 91久久精品午夜一区二区| 丝袜美腿亚洲综合| 欧美成va人片在线观看| 国产精品456露脸| 国产精品电影一区二区| 91美女在线观看| 亚洲香蕉伊在人在线观| 日韩欧美国产系列| 国产不卡视频在线播放| 亚洲精品一卡二卡| 91精品国产综合久久国产大片| 国产精品原创巨作av| 亚洲日本中文字幕区| 6080国产精品一区二区| 国产福利精品导航| 夜夜精品视频一区二区| 日韩欧美色综合网站| 成人深夜在线观看| 亚洲一区二区三区自拍| 日韩欧美国产成人一区二区| 国产.欧美.日韩| 亚洲尤物视频在线| www久久精品| 色哟哟亚洲精品| 久久综合综合久久综合| 国产精品久久三区| 欧美一区二区三区啪啪| 夫妻av一区二区| 亚洲成人中文在线| 国产农村妇女毛片精品久久麻豆 | 91在线精品一区二区| 天堂午夜影视日韩欧美一区二区| 久久精品视频在线免费观看 | 欧美一区二区三区在线| 99久久伊人网影院| 日产国产欧美视频一区精品| 亚洲国产成人午夜在线一区| 欧美精品日韩一区| www.亚洲国产| 另类欧美日韩国产在线| 亚洲精品第1页| 久久精品人人做人人爽人人| 日本韩国欧美一区| 激情综合色丁香一区二区| 亚洲人xxxx| 久久久久久久久久久久久女国产乱| 91极品视觉盛宴| 国产美女精品在线| 日韩国产欧美一区二区三区| 中文字幕av一区二区三区高| 欧美一级在线观看| 一本到高清视频免费精品| 国产中文字幕精品| 亚洲成人动漫在线观看| 中文字幕欧美激情| 欧美大片在线观看一区二区| 色狠狠色噜噜噜综合网| 国产成人高清在线| 日本成人在线不卡视频| 亚洲欧美另类图片小说| 国产欧美视频一区二区| 日韩欧美一级二级三级| 欧美日韩精品专区| 91在线国产观看| 国产精品一区久久久久| 日韩国产欧美在线观看| 一区二区国产视频| 国产精品乱码人人做人人爱| 欧美成人三级在线| 欧美日本一道本在线视频| 99r国产精品| 国产a级毛片一区| 久久精品国产一区二区三| 午夜久久久久久电影| 亚洲男女毛片无遮挡| 国产精品免费av| 久久综合九色综合欧美就去吻| 欧美日韩国产美女| 欧美性生活大片视频| 9色porny自拍视频一区二区| 精品一区二区三区久久| 天天影视网天天综合色在线播放| 亚洲另类春色校园小说| 最新高清无码专区| 国产精品网站一区| 国产亚洲精品久| 久久婷婷久久一区二区三区| 欧美一区二区三区性视频| 欧美日韩一区二区三区高清| 色综合夜色一区| 国产成人免费高清| 久久99精品视频| 免费日本视频一区| 日韩极品在线观看| 日韩成人一区二区三区在线观看| 亚洲v中文字幕| 一区av在线播放| 亚洲欧美日韩中文播放| 国产精品久久久久aaaa| 欧美国产精品中文字幕| 久久久91精品国产一区二区精品| 久久嫩草精品久久久久| 久久这里都是精品| 精品久久久久香蕉网| 777亚洲妇女| 欧美一区永久视频免费观看| 欧美视频在线一区二区三区 | 国产精品小仙女| 国产成人99久久亚洲综合精品| 国产精品69久久久久水密桃| 国产成人在线免费| 丁香激情综合国产| 国产成人免费视频精品含羞草妖精| 精品一区二区三区在线观看 | 紧缚捆绑精品一区二区| 国产曰批免费观看久久久| 激情久久五月天| 九九视频精品免费| 国产福利不卡视频| jizz一区二区| av日韩在线网站| 91麻豆免费看片| 欧美性做爰猛烈叫床潮| 欧美性感一区二区三区| 欧美日韩国产系列| 精品欧美一区二区三区精品久久| 久久精品免费在线观看| 亚洲日本在线a| 手机精品视频在线观看| 精品一二三四区| 成人黄色777网|