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

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

代寫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
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          9000px;">

                久久久精品影视| 久久久久久99精品| 精品久久久网站| 青椒成人免费视频| 3atv在线一区二区三区| 强制捆绑调教一区二区| 91精品婷婷国产综合久久性色| 亚洲福利一二三区| 91精品国产麻豆国产自产在线 | 亚洲日本一区二区| 欧美日韩五月天| 国产一区二区在线看| 中文字幕精品一区二区三区精品| 国产精品1区2区| 久久久久久久久久久黄色| 国产精品一区二区你懂的| 国产亲近乱来精品视频| 91一区二区在线| 日本女人一区二区三区| 欧美经典三级视频一区二区三区| 色综合视频在线观看| 天天影视色香欲综合网老头| 精品国产乱码久久| 一本一本大道香蕉久在线精品| 日本女优在线视频一区二区| 中文字幕欧美日韩一区| 欧美精品在线一区二区| 成人免费视频播放| 偷拍一区二区三区| 国产精品另类一区| 欧美一级片免费看| 欧美日韩在线免费视频| 成人手机在线视频| 国产一区二区精品在线观看| 亚洲一区二区在线观看视频| 久久影视一区二区| 4438成人网| 色网综合在线观看| 国产成人久久精品77777最新版本| 国产精品午夜电影| 久久网站热最新地址| 色婷婷国产精品综合在线观看| 国产精品一区免费在线观看| 水野朝阳av一区二区三区| 亚洲欧洲综合另类在线| 国产精品三级av| 国产欧美中文在线| 国产免费成人在线视频| 日韩精品一区二区三区视频| 色88888久久久久久影院野外 | 七七婷婷婷婷精品国产| 一区二区三区久久久| 国产精品污污网站在线观看| 欧美岛国在线观看| 日韩欧美一区二区免费| 欧美日韩精品欧美日韩精品一综合| av在线播放一区二区三区| 大尺度一区二区| 成人免费看的视频| 粉嫩久久99精品久久久久久夜| 激情小说亚洲一区| 激情文学综合丁香| 国产精品888| 成人一区二区三区中文字幕| 国产91丝袜在线18| 91在线观看地址| 91美女在线看| 日本精品一区二区三区高清| 91女厕偷拍女厕偷拍高清| 91在线视频18| 欧美日韩一级大片网址| 91精品国产综合久久精品| 4438x成人网最大色成网站| 欧美精品在线一区二区| 日韩久久久精品| 国产午夜精品理论片a级大结局| 久久久久99精品一区| 国产精品国产a| 夜夜夜精品看看| 亚洲va天堂va国产va久| 久久精品国产秦先生| 国产不卡高清在线观看视频| caoporn国产一区二区| 欧美主播一区二区三区美女| 欧美高清你懂得| 337p日本欧洲亚洲大胆色噜噜| 久久久久久影视| 久久婷婷久久一区二区三区| 中文字幕永久在线不卡| 中文字幕日本不卡| 亚洲二区在线观看| 久久不见久久见免费视频7| 成人精品高清在线| 欧美精品99久久久**| 国产丝袜欧美中文另类| 亚洲综合区在线| 狠狠色狠狠色综合| 色先锋久久av资源部| 26uuu国产一区二区三区| 亚洲欧美激情一区二区| 久久精品国产一区二区三区免费看| 国产黄色精品视频| 欧美伦理电影网| 欧美韩日一区二区三区四区| 天天影视涩香欲综合网| 99精品欧美一区二区三区小说| 欧美一区二区三区免费视频| 亚洲欧美中日韩| 国产一区二区伦理| 91精品国产aⅴ一区二区| 欧美日韩激情在线| 亚洲三级电影网站| 国产成人精品亚洲午夜麻豆| 欧美老肥妇做.爰bbww视频| 国产精品女主播av| 国内精品久久久久影院薰衣草| 色综合久久久久综合99| 国产午夜精品福利| 久久国产三级精品| 91精品国产综合久久久久久久久久 | 精品国产免费一区二区三区香蕉| 亚洲欧美区自拍先锋| 国产成人免费视频精品含羞草妖精| 欧美日产国产精品| 亚洲男人天堂一区| www..com久久爱| 久久精品人人做人人综合| 青草av.久久免费一区| 欧美一区二区三区性视频| 日本在线不卡一区| 日韩精品一区二区三区蜜臀| 久久精品av麻豆的观看方式| 亚洲精品在线网站| 盗摄精品av一区二区三区| 国产精品久久久久久户外露出 | 欧美日韩高清一区二区不卡| 一区二区三区日韩欧美| 欧美午夜免费电影| 日本麻豆一区二区三区视频| 欧美成人一级视频| 国产麻豆精品在线观看| 国产亚洲精品超碰| 成人黄色软件下载| 亚洲视频在线一区| 欧美日韩亚洲综合一区二区三区| 亚洲国产你懂的| 69成人精品免费视频| 丝袜国产日韩另类美女| 欧美v日韩v国产v| 国产最新精品精品你懂的| 久久久精品综合| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 精品在线你懂的| 久久夜色精品国产噜噜av| 国产河南妇女毛片精品久久久| 久久亚洲免费视频| 99九九99九九九视频精品| 一区二区在线观看视频| 欧美视频完全免费看| 日本va欧美va精品发布| 久久久www成人免费毛片麻豆| 成人综合婷婷国产精品久久蜜臀| 综合久久久久久久| 正在播放一区二区| 风间由美一区二区av101| 亚洲乱码国产乱码精品精98午夜| 欧美日产国产精品| 国产v日产∨综合v精品视频| 自拍偷拍亚洲综合| 日韩一区二区免费电影| 国产精品中文字幕日韩精品| 一个色综合av| 久久久不卡网国产精品二区| 在线观看免费一区| 精品一区二区免费在线观看| 国产精品美女久久久久久久网站| 欧美日韩一级片网站| 国产91露脸合集magnet| 一区二区成人在线视频 | 一区二区三区四区激情 | 日本一区二区三区视频视频| 欧美日韩精品一区二区三区四区| 成人听书哪个软件好| 激情图区综合网| 麻豆国产精品官网| av成人免费在线| 国产精一区二区三区| 免费在线观看一区| 婷婷久久综合九色综合伊人色| 亚洲天堂2014| 国产精品国产三级国产普通话三级 | 国产区在线观看成人精品| 色哟哟国产精品| 国产精品1区2区| 男女男精品视频网| 亚洲五码中文字幕| 亚洲欧美福利一区二区| 国产精品三级久久久久三级| 日韩精品一区二区三区四区| 欧美日韩国产综合草草|