99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫(xiě)ACS130、代做C++設(shè)計(jì)編程

時(shí)間:2024-03-15  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



ACS130 Introduction to Systems Engineering and Software
C Programming Assignment Matrices
Tara Baldacchino (t.baldacchino@sheffield.ac.uk)
Assignment weighting: 15% of module mark
Assignment released: Friday 8 March (Semester 2, week 5)
Assignment due: 11.59pm Thursday 21 March (week 7)
Submission: You must submit your .c file to ACS130 Blackboard assignment dropbox
entitled. “C Program: Matrices” in the Assessment section. Do not copy your .c file into any
other format. Do not submit executable files to the assignment dropbox. Multiple
submissions to the Blackboard assignment dropbox are allowed up to the deadline.
After the deadline, your last version is the version that will be marked (you cannot
resubmit after the deadline).
You must make sure that your code runs on Codeblocks before submitting. Any code that
won’t run properly, will be marked as is which could mean you could get a 0. It is your
responsibility to submit a .c code that compiles and runs.

You will receive feedback via a rubric and a mark for your code. Provisional marks may change
as a result of unfair means and/or late submissions. I will then go over a sample solution during
a session so that you can get feedback on the code.
Assignment briefing:
This assignment will assess your ability to solve a problem using these C programming
elements: repetition (e.g. for.. or while..), selection (if), structures, two dimensional arrays,
pointers, I/O and functions. Your task is to write a C program to:
• **Allow the user to input the size of a matrix. The contents of the matrix are read in
from a file, which has a list of 100 float numbers (numbers in the file are <100.00). If
the matrix is 3x2, then the first 2 numbers in the list form the first row, the second 2
numbers in the list form the second row …and so on).
• The matrix must have between 1 and 10 columns and between 1 and 10 rows. The
matrix size (rows x columns) is determined by the user, and this information is stored
in a struct matrix (specified below) in members int nrows and int ncols.
• The contents of the matrix will also be stored in the struct matrix in member
float mValues[10][10].
• Calculate the determinant: Ask the user to choose the row and column to form a 2x2
matrix, which is a subset of the original matrix. The 2x2 matrix contents must be stored
in a new struct matrix variable, along with its size. The determinant of this matrix is
then calculated. (See sample run of program below).
• Find the inverse of the 2x2 matrix: The inverse matrix contents must be stored in a
new struct matrix variable, along with its size. ##
• Loop from ** to ##, but allow the user some way of exiting the loop and stopping the
program
The program shall define a structure to hold information about the matrices as follows (only
define one structure, but declare 3 structure variables: one for the original matrix, one for the
2x2 sub matrix and one for the inverse):
struct matrix
{
 float mValues[10][10]; // to hold the values in the matrix, up to 10 rows x 10 columns
 int nrows; // to hold the number of rows used in mValues
 int ncols; // to hold the number of columns used in mValues
};
Notes (refer to mark scheme for more details):
1. The array that holds the matrix values has maximum size 10x10, which means that
the program must be able to work with any array up to that size. For this program, the
minimum array size allowed is 1 x 1.
2. A sample .txt file with 100 numbers is available on ACS130 Blackboard. Please note
that you will need to test your code thoroughly to cover every possible scenario (eg to
get a det=0). I will be using a different test data to test your program.
3. The program must display to the screen the contents of each matrix in the program,
after it has been input or created.
4. The program must allow both square and non-square matrices, e.g. 3 x 3 is square, 3
x 4 is not square.
5. You must program defensively. The program must guard against incorrect entries
for rows and columns at every possible instance. The program must ask the user to
enter again if incorrect. You also need to check if the input file is available. You also
need to take into consideration things like: possibility of generating a 2x2 matrix
(because the input matrix is smaller, eg, 2x1), having a 1x1 matrix, and finding the
inverse when the determinant is 0 or does not exist.
6. You cannot use global variables. You will get 0 for the whole code. #define can
be used (and encouraged).
7. You cannot use while(1) loops. You will get 0 for the whole code. You can use a
while(OK) loop where OK is a variable that is, for eg, 0 or 1
8. You cannot use break (unless it is part of a switch case).
9. You cannot use goto, continue, jump.
10. The program must include main( ) and the following 4 functions. The function
prototypes must be as follows:
void matrixInput(struct matrix *mat, FILE *in); /* to input the size (number
of rows and columns) of the matrix, and read in the values from the file (using fscanf) into the
2D array that makes up the matrix NOTE, the file opening and checking occurs in main(), eg
FILE *fin; fin=fopen(“ xyz.txt”,’r’); then use fin in the function call. */
void matrixDisplay(struct matrix mat); /* to display the values in the 2D array
that makes up the matrix*/
float matrixDeterminant(struct matrix m1, struct matrix *m2, int
*check); /* to form sub matrix m2 from m1, find the determinant of m2, where m2 is a 2x2
subset matrix of m1; returns determinant to main. If determinant is not equal to 0, check =1; if
determinant=0, check=2, otherwise check is 0 (eg when size of matrix <2x2). check variable
is needed for the inverse. This function does not display either m1 or m2. */
void matrixInverse(struct matrix m2, float determinant, struct matrix
*m3); /* to find the inverse (if possible) of the 2x2 matrix; this function does not display either
m2 or m3. */
11. You are free to add extra functions, for example, for out-of-range checks (for rows and
columns), or any other defensive programming required, but you must have the 4
functions listed above.
Figure 1: A sample screenshot of the expected output from this code.
Marking criteria: The following table lists the components/marking criteria of the assignment
and the marks available for each component.
Component Marks
Criteria A:
Have global variables been used? OR
Have while(1) loops been used? OR
Have goto, continue, jump, break (unless in a switch case) been used?
Yes/no
If YES, then give 0 for
whole program.
Criteria B:
• Does the program use the function prototypes as instructed, and are the
parameters used properly within the functions?
void matrixInput(struct matrix *mat, FILE *in);
void matrixDisplay(struct matrix mat);
float matrixDeterminant(struct matrix m1, struct matrix *m2, int *check);
void matrixInverse(struct matrix m, float determinant, struct matrix *m3);
Yes/no
If NO, then 8 mark
penalty for whole
program.
Criteria 1: Program layout and readability including things like how clear is the
code and does it have comments, including header comments, meaningful
variable names, and indentation?

 /1
Criteria 2: Inputting and displaying matrix:
• Does the program allow the user to enter number of rows and columns, and
reads numbers from the file into appropriate array in struct?
• Does the program display the correct contents of each matrix to the screen?
Is the display in a sensible format?

 /2
Criteria 3: Determinant of matrix>=2x2
• Does the program find the correct determinant when original matrix >=2x2?
Variable check= 1
 /2
Criteria 4: Inverse of matrix>=2x2
• Does the program find the correct inverse when the determinant exists and
is not equal to 0 (Variable check= 1)?
 /2
Criteria 5: Defensive Programming
• Does it check for the file?
• Does the code guard against incorrect entries at every instance: rows & cols?
 /2
Criteria 6: Defensive Programming Determinant
• Determinant when original matrix < 2x2 (Variable check= 0), or determinant
is 0 (Variable check= 2)
 /2
Criteria 7: Defensive Programming Inverse
• Inverse for when determinant is 0 or does not exist. /1
Criteria 8: Original Matrix 1x1
• Correct determinant and inverse of 1x1 matrix.
 /1
Criteria 9: Details
• Looping through the program until user decides to quit.
• Clarity of instructions printed to the screen.
 /2
Total /15
Penalties for late submission: 5% reduction in the mark for every day, or part thereof, that the
assignment is late, and a mark of zero for submission more than five days late.
How you should work: This is an individual assignment, and it must be wholly your own work. You
must not copy algorithms or code for this assignment from any other source. You must not show anyone
else your code, nor must you look at anyone else’s code, because if you do this is likely to result in
similarity in your algorithms and code. You can discuss concepts, but if discussion leads to similar code
this will be treated as an unfair means case. Please do not post assignment questions on Stack
Exchange or CSDN or anything similar. This constitutes unfair means.
Unfair means: The module leader will submit your C programs to a plagiarism checker. Any suspicions
of the use of unfair means will be investigated and may lead to penalties. See
https://www.sheffield.ac.uk/new-students/unfair-means for more information.
Extenuating circumstances: If you have medical or personal circumstances which cause you to be
unable to submit this assignment on time, please complete and submit an extenuating circumstances
form along with documentary evidence of the circumstances.
Help: This assignment briefing, the lectures and labs and the C online resources on your ACS130
reading list provide all the information that is required to complete this assignment. You need to decide
on the algorithm to solve this problem, subject to the instructions in the assignment briefing. You also
need to create and debug the C code to solve this problem. However if you need clarifications on the
assignment then please post a question on the ACS130 Blackboard discussion board. I will not
reply to assignment related emails unless the query is of a personal nature. The discussion board is an
opportunity for everyone to see the Q&A so that no one is disadvantaged.
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:CEG5301代做、MATLAB編程語(yǔ)言代寫(xiě)
  • 下一篇:代寫(xiě)G1109 Machine Learning with Python
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶(hù)要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
  • 短信驗(yàn)證碼 trae 豆包網(wǎng)頁(yè)版入口 目錄網(wǎng) 排行網(wǎng)

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美一级一区二区| 国产成人鲁色资源国产91色综 | 日韩一区和二区| 色综合久久久久综合体桃花网| 国产福利一区在线| 国产一区久久久| 黑人巨大精品欧美一区| 精品综合免费视频观看| 激情欧美日韩一区二区| 久久99精品久久久久久国产越南| 日韩黄色免费电影| 午夜精品一区二区三区免费视频| 蜜桃视频在线一区| 国产欧美一区二区三区沐欲| 91丨porny丨蝌蚪视频| 久久精品国产一区二区| 亚洲精品乱码久久久久久日本蜜臀| 国产不卡视频在线观看| 亚洲国产电影在线观看| 玉足女爽爽91| 亚洲国产高清在线观看视频| 久久精品欧美日韩| 日本一区二区视频在线| 久久婷婷综合激情| 日本精品裸体写真集在线观看| 亚洲va天堂va国产va久| 日韩一区二区在线免费观看| 欧美日韩国产三级| 国产综合色在线视频区| 国产综合色在线| 成人永久看片免费视频天堂| jlzzjlzz国产精品久久| 欧美午夜精品电影| 精品福利二区三区| 国产精品美日韩| 亚洲成人av资源| 国产在线精品一区二区三区不卡 | 精品久久久久久无| 国产精品欧美极品| 亚洲日本电影在线| 美女网站一区二区| 成人小视频在线| 欧美日韩在线不卡| 久久奇米777| 亚洲一区二区三区三| 久久精品久久精品| 欧美亚洲一区二区在线观看| 久久久久久久电影| 奇米在线7777在线精品| 91毛片在线观看| 欧美电影影音先锋| 亚洲欧美在线观看| 麻豆一区二区在线| 91福利区一区二区三区| 日本一区二区三区四区在线视频 | www.亚洲激情.com| 欧美一级精品在线| 亚洲精品免费在线| 国产老肥熟一区二区三区| 欧美日韩成人高清| 亚洲黄色在线视频| 99久久99久久综合| 国产日韩精品一区二区三区| 波多野结衣在线一区| av电影在线不卡| 欧美性视频一区二区三区| 国产精品一区三区| 欧美亚洲愉拍一区二区| 国产精品二三区| 国产成人午夜片在线观看高清观看| 在线免费观看日本欧美| 国产精品久久久久影院老司| 美腿丝袜在线亚洲一区| 欧美精品色综合| 亚洲高清免费观看 | 91精品办公室少妇高潮对白| 国产日韩高清在线| 精油按摩中文字幕久久| 欧美电影免费观看高清完整版在线观看| 亚洲另类色综合网站| av电影天堂一区二区在线| 久久久久国产精品厨房| 美女网站色91| 日韩欧美色综合| 日韩影院免费视频| 91精品久久久久久蜜臀| 日本不卡的三区四区五区| 欧美一区二区网站| 激情欧美一区二区| 久久久精品中文字幕麻豆发布| 精品中文av资源站在线观看| 6080亚洲精品一区二区| 亚洲国产成人av| 欧美一区二区久久久| 日韩中文字幕不卡| 精品久久久久久久久久久久包黑料| 国产自产高清不卡| 国产女主播视频一区二区| 国产成人午夜高潮毛片| 欧美国产精品中文字幕| 色婷婷香蕉在线一区二区| 亚洲综合色成人| 欧美mv日韩mv国产网站| 欧美亚洲国产怡红院影院| 日韩专区在线视频| 久久久久久久久久久久久夜| 99久久婷婷国产综合精品电影| 一级特黄大欧美久久久| 日韩免费看的电影| 成av人片一区二区| 亚洲成人激情自拍| 久久亚洲一级片| 99精品偷自拍| 免费在线一区观看| 国产亚洲污的网站| 欧美日韩在线免费视频| 国内一区二区视频| 亚洲精品日韩综合观看成人91| 日韩欧美专区在线| 成人av片在线观看| 日韩av一区二区三区四区| 国产精品色噜噜| 欧美一区二区网站| 一本大道久久a久久综合| 韩日av一区二区| 性做久久久久久免费观看| 国产日韩欧美精品在线| 欧美日韩一级片网站| 成人av资源下载| 久久国产精品露脸对白| 一区二区三区欧美久久| 国产日韩欧美一区二区三区综合| 制服丝袜中文字幕一区| 欧美在线免费视屏| 99热99精品| 国产成人精品免费视频网站| 男人操女人的视频在线观看欧美| 亚洲精品高清在线观看| 亚洲国产成人在线| 久久久久高清精品| 日韩视频永久免费| 这里只有精品视频在线观看| 日本福利一区二区| 不卡在线观看av| 国产乱码精品1区2区3区| 久久se这里有精品| 免费不卡在线观看| 午夜av一区二区三区| 亚洲国产精品影院| 尤物在线观看一区| 国产成人精品免费一区二区| 丝瓜av网站精品一区二区 | 91免费观看在线| 成人午夜激情影院| 国产宾馆实践打屁股91| 国产一区啦啦啦在线观看| 麻豆精品视频在线观看| 六月婷婷色综合| 精品亚洲成av人在线观看| 日本女优在线视频一区二区 | 99视频在线精品| 99在线精品免费| 99国产精品国产精品毛片| 成人免费不卡视频| 99久久免费国产| 色婷婷综合久久久中文字幕| 91电影在线观看| 欧美日韩免费高清一区色橹橹| 欧美日韩综合不卡| 欧美一区二区三区视频在线观看| 欧美一区二区三区的| 欧美一区二区在线观看| 日韩精品自拍偷拍| 国产亚洲精品精华液| 亚洲国产精品成人综合| 国产精品高潮久久久久无| 亚洲色图欧洲色图| 亚洲国产日韩精品| 国内精品免费在线观看| 成人免费av资源| 欧美亚一区二区| 欧美一区二区三区在线看| 欧美一级一区二区| 欧美激情一区二区三区四区| 亚洲人妖av一区二区| 亚洲成人www| 国产在线精品一区二区不卡了 | 成人毛片视频在线观看| av日韩在线网站| 欧美性猛交xxxx乱大交退制版| 日韩三级av在线播放| 国产精品久久久久9999吃药| 亚洲二区在线观看| 国产精品99久久久久久宅男| 91日韩精品一区| 欧美哺乳videos| 亚洲欧美另类小说视频| 国内久久婷婷综合| 久久久久久久久久久电影| 亚洲丝袜美腿综合|