国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫ACS130、代做C++設計編程

時間:2024-03-15  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:CEG5301代做、MATLAB編程語言代寫
  • 下一篇:代寫G1109 Machine Learning with Python
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久精品香蕉视频| 亚洲日本精品一区| aaa免费在线观看| 国产免费内射又粗又爽密桃视频| 欧美日韩亚洲一| 日本福利视频网站| 日韩视频在线视频| 欧美在线激情网| 激情内射人妻1区2区3区| 黄色影视在线观看| 国产综合av在线| 国产女人18毛片| av 日韩 人妻 黑人 综合 无码| 国产人妻人伦精品| 成人在线精品视频| 91精品国产自产91精品| 69av视频在线播放| 国产高清精品软男同| 国产成人av网| 国产精品视频一区二区三区四区五区 | 精品视频一区二区| 国产一区精品视频| 99www免费人成精品| 久久riav二区三区| 国产精品久久久久久久av大片| 久久国产精品久久久久久| 欧美激情一区二区久久久| 午夜伦理精品一区| 日本视频一区在线观看| 欧美久久久久久久久久久久久久 | 日韩精品手机在线观看| 精品少妇人妻av一区二区| 97国产在线播放| 日韩中文字幕第一页| 久久97久久97精品免视看| 日本一区免费在线观看| 国产综合精品一区二区三区| 91干在线观看| 欧美成年人网站| 视频一区二区三| 黄色动漫在线免费看| 国产精品一区免费观看| 国产第一区电影| 超碰日本道色综合久久综合| 欧美一区二区三区四区在线观看地址| 日韩欧美亚洲天堂| 国产欧美精品久久久| 久久精品五月婷婷| 欧美日韩成人在线观看| 日韩人妻一区二区三区蜜桃视频| 国产人妻互换一区二区| 日韩一区二区福利| 亚洲综合欧美日韩| 精品一区二区三区毛片| 久久精品国产综合精品| 中文字幕一区二区中文字幕| 欧美亚洲激情在线| 久久免费在线观看| 精品国产乱码久久久久| 日韩精品无码一区二区三区免费| 99www免费人成精品| 国产精品成熟老女人| 日韩免费视频在线观看| 国产精品444| 亚洲熟妇无码另类久久久| 国内久久久精品| 久久久久久久久久久免费精品| 亚洲午夜精品久久| 国产区一区二区| 欧美理论电影在线观看| 欧美日韩一道本| 国产高清精品一区二区三区| 亚洲欧洲免费无码| 国产精品一线二线三线| 国产精品热视频| 人妻少妇精品无码专区二区| 777国产偷窥盗摄精品视频| 一区二区视频在线观看| 国产日韩专区在线| 久久成人免费视频| 国产在线视频欧美一区二区三区| 久久久国产精品一区| 欧美中文在线观看| 日韩在线观看免费高清| 热99这里只有精品| 日韩专区在线观看| 日韩欧美一区二区视频在线播放 | 国产精品伊人日日| 精品久久久三级| 国产一区精品在线| 欧美猛交免费看| 国产伦精品一区| 自拍另类欧美| 91久久久久久国产精品| 性色av香蕉一区二区| 国产激情在线看| 日韩视频精品| 久久久国产一区| 国内精品久久国产| 久色乳综合思思在线视频| 国模吧一区二区三区| 精品国产无码在线| 成人国产精品日本在线| 午夜视频久久久| 久久久久久久少妇| 黄色一级免费大片| 中文字幕不卡每日更新1区2区| 国产伦精品一区二区三区免| 亚洲高清视频一区二区| 久久精品国产综合精品| 欧美日韩黄色一级片| 久久婷婷国产麻豆91天堂| 国产精品稀缺呦系列在线| 午夜精品久久久内射近拍高清| 久久波多野结衣| 精品欧美一区二区久久久伦| 欧美精品制服第一页| 91av一区二区三区| 欧美久久综合性欧美| 欧美巨大黑人极品精男| 91免费版网站在线观看| 人妻无码视频一区二区三区| 国产精品二区三区| 91好吊色国产欧美日韩在线| 欧美在线日韩在线| 国产99视频在线观看| 久久精品99久久| 国产午夜福利视频在线观看| 亚洲www在线| 国产精品三区四区| 成人中文字幕av| 欧美在线激情网| 一本大道熟女人妻中文字幕在线 | 久久久女女女女999久久| 欧美污视频久久久| 亚洲最大福利视频网站| 久久精品91久久香蕉加勒比| 国产精品一区二区三区免费| 日韩欧美猛交xxxxx无码| 久久99国产精品自在自在app| 国产成人精品日本亚洲11| 激情小视频网站| 午夜精品一区二区三区在线播放 | 亚洲人成无码www久久久| 国产精品视频永久免费播放| 97精品视频在线播放| 黄网站色视频免费观看| 少妇熟女一区二区| 九九久久久久久久久激情| 日韩在线视频线视频免费网站| 国产精品综合久久久| 欧美在线视频免费| 亚洲欧洲日韩综合二区| 国产精品久久久久久久久| 久久国产精品免费一区| 99精品一区二区三区的区别| 精品视频免费观看| 日本高清一区| 性欧美大战久久久久久久| 欧美精品在线看| 国产精品美女免费视频| 久久国产精品免费观看| 99视频国产精品免费观看| 国精产品一区一区三区有限在线| 日本不卡二区| 亚洲高潮无码久久| 中文字幕人成一区| 国产精品高清在线观看| 日韩最新在线视频| 91av网站在线播放| 国产伦精品一区二区三区四区免费| 欧美日本韩国一区二区三区| 性色av一区二区咪爱| 伊人婷婷久久| 欧美激情精品久久久久久大尺度| 国产精品男人的天堂| 日韩中文字幕在线精品| 久久综合福利| 国产精品10p综合二区| 91久久久久久久久久久| 91久久精品一区二区别| 99精品视频播放| 91九色精品视频| 91精品在线播放| 国产精品av一区| 久久久免费高清电视剧观看| 91国偷自产一区二区三区的观看方式| 国产精品自拍小视频| 国产精自产拍久久久久久蜜| 国产精品专区第二| 国产精品稀缺呦系列在线| 成人精品视频99在线观看免费| 粉嫩av一区二区三区天美传媒| 成人久久久久爱| 99久久久精品视频| 69av在线视频| 久久久久久久网站| 久热精品视频在线| 国产精品久久久久久中文字| 欧美日韩成人网|