加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    亚洲另类黄色| 色综合咪咪久久网| 综合亚洲自拍| 欧洲精品一区二区三区| 欧美.www| 麻豆一二三区精品蜜桃| 日本不卡在线视频| 五月天av在线| 日韩视频在线一区二区三区 | 国内精品久久久久久久影视麻豆| 美国毛片一区二区三区| 99久久精品国产亚洲精品| 高清久久精品| 欧美a视频在线| 碰碰在线视频| 99国产精品视频免费观看一公开| 青青草国产免费一区二区下载| 亚洲国产日韩在线| 日本国产一区| 日韩在线观看一区二区| 91精品观看| 精品国产aⅴ| 日韩激情中文字幕| 国产视频一区二| 欧美一区二区三区免费看| av免费不卡国产观看| 91久久久精品国产| 国产精品超碰| 日本少妇精品亚洲第一区| 97精品资源在线观看| 亚欧美中日韩视频| 91精品韩国| 97欧美在线视频| 久久午夜精品| 另类亚洲自拍| 国产一区二区精品| 午夜精品网站| 欧美 日韩 国产一区二区在线视频 | 日韩福利视频网| 国产欧美日韩综合一区在线播放| 亚洲v.com| 久草在线中文最新视频| 久久久久久久欧美精品| 久久国产福利| 热久久一区二区| 国内黄色精品| 亚洲一级淫片| 在线成人超碰| 国产精品久久久久久av公交车| 国产一区二区三区的电影| 成人午夜毛片| 欧美一区高清| 国产精品多人| 国产精品亚洲综合在线观看| 一区二区三区国产精华| 亚洲色图国产| 成人在线日韩| 亚洲深夜福利在线观看| 亚洲香蕉视频| 亚洲精品高潮| 久久精品免费一区二区三区 | 天海翼精品一区二区三区| 精品一区二区三区四区五区| 成人永久在线| 日韩精品欧美大片| 凹凸av导航大全精品| 日本电影一区二区| 国内亚洲精品| 在线一区视频| 免费xxxx性欧美18vr| 中文字幕不卡三区视频| 欧洲一区精品| 久久精品一区二区国产| 综合激情婷婷| 日产欧产美韩系列久久99| 成人av影音| 欧美码中文字幕在线| 中文亚洲欧美| 亚洲精华液一区二区三区| 色综合视频一区二区三区日韩| 麻豆精品蜜桃视频网站| 国产精品中文字幕亚洲欧美| 日韩精品一区二区三区免费视频| 国产毛片久久久| 欧美在线亚洲综合一区| 蜜臀av性久久久久蜜臀av麻豆| 色综合一本到久久亚洲91| 国产黄色精品| 国产成人精品三级高清久久91| 欧美三级第一页| 免费久久久久久久久| 日本大胆欧美人术艺术动态| 交100部在线观看| 亚洲欧美网站在线观看| 色妞ww精品视频7777| 私拍精品福利视频在线一区| 亚洲尤物在线| 日韩精品免费观看视频 | 奶水喷射视频一区| 91天天综合| 亚洲综合小说| 久久久久国产精品午夜一区| 丝袜诱惑亚洲看片| 亚洲国产精选| 亚洲图区在线| 午夜国产精品视频免费体验区| 中文字幕成在线观看| 日本中文字幕不卡| 亚洲天堂av资源在线观看| 黄色工厂这里只有精品| 日韩福利一区| 国产日韩视频在线| 久久在线视频免费观看| jizzjizz中国精品麻豆| 国内精品嫩模av私拍在线观看| 国产劲爆久久| 欧美丰满日韩| 国产精品一区免费在线| 久久精品av| 超级碰碰久久| 亚洲精品国产动漫| 99亚洲视频| 久久精品国产99久久6| 午夜日韩影院| 免费在线看一区| 国产一精品一av一免费爽爽| 91精品国产91久久久久久密臀| 日韩aaaa| 国产中文字幕一区二区三区| 女人天堂亚洲aⅴ在线观看| 精品成人av| 亚洲国产中文在线二区三区免| 日韩精品一二三区| 国产精品嫩模av在线| 亚洲美女少妇无套啪啪呻吟| 日韩国产高清在线| 久久一本综合| 久久久国产精品网站| 精品精品国产三级a∨在线| 综合久久2023| 57pao国产一区二区| 三级在线观看视频| 日韩激情精品| 日本三级一区| 国产精品白浆| 99欧美精品| 台湾亚洲精品一区二区tv| 深夜视频一区二区| 白嫩白嫩国产精品| 91精品韩国| 色爱av综合网| 国产欧美综合一区二区三区| 亚洲无线视频| 日韩高清不卡在线| 最新精品国产| 韩国三级大全久久网站| 丝袜亚洲另类欧美| 精品中文在线| 天天综合网站| 欧美中文字幕一区二区| 国产欧美日韩亚洲一区二区三区| 精品欧美午夜寂寞影院| 日韩欧乱色一区二区三区在线| 99久久影视| 影音先锋久久久| 美女视频一区免费观看| 日韩成人伦理电影在线观看| 麻豆国产在线| 欧美日韩直播| 亚洲在线久久| 成人影视亚洲图片在线| 99国产精品免费网站| 欧美日韩va| 99在线热播精品免费99热| 亚州综合一区| 不卡一二三区| 亚洲午夜激情在线| 国产精品亚洲人成在99www| 阿v视频在线观看| 久久久久久久久99精品大| 亚洲色图国产| 狼人综合视频| 欧美日韩黑人| 日韩av不卡在线观看| 日韩三级一区| 国产亚洲精品bv在线观看| 99亚洲乱人伦aⅴ精品| 久久精品国产精品亚洲精品| 中文亚洲字幕| 精品国产一区二区三区av片 | 午夜裸体女人视频网站在线观看| 99精品一区| 日韩av中文字幕一区| 另类一区二区三区| 日韩中文字幕一区二区三区| theporn国产在线精品| 亚洲欧洲自拍| 成人动漫免费在线观看| 精品99re| 国产精品www994|