CSE 320 Fall 2018

CSE 320留学生作业代写、代做java/c++课程设计作业、代写ARM作业、代做CS/python程序语言作业
CSE 320 Fall 2018
Computer Project #11
Assignment Overview
This assignment develops familiarity with data structures in assembly language. You will develop the ARM
assembly language functions to complete a program which manages statistics for a hockey team.
It is worth 40 points (4% of course grade) and must be completed no later than 11:59 PM on Thursday, 11/29.
Assignment Deliverables
The deliverables for this assignment are the following files:
proj11.makefile – the makefile which produces proj11
proj11.support.s – the source code for your support module
Be sure to use the specified file names and to submit them for grading via the CSE handin system.
Assignment Specifications
The program will use an ordered table to maintain the data set, where each player's jersey number will serve as a
unique key to identify that player. The capacity of the ordered table will be determined when it is created.
1. The instructor-supplied driver module (function "main" and associated functions) will perform all input and
output, and will manage the overall operation of the program.
2. You will supply the functions whose declarations are listed below:
int search( struct table*, unsigned long, struct player** );
int delete( struct table*, unsigned long );
int insert( struct table*, unsigned long, char*, int, int, int );
Those three functions (and any "helper" functions which you develop) will constitute a module named
"proj11.support.s".
Assignment Notes
1. The functions in your support module must be hand-written ARM assembly language functions (you may not
submit compiler-generated assembly language functions).
2. The file "project11.support.h" (below) includes all relevant declarations, along with descriptive comments.
3. The file "project11.driver.o" contains the instructor-supplied driver module.
4. The file "project11.data" contains a sample data set (the statistics for the MSU Men’s Hockey team during the
2017-2018 season). Your program must function correctly for that sample data set, as well as any other properly
formatted data set.
5. You may wish to create a stub for the required functions, then translate, link and execute the program to
explore the behavior of the driver module.
/***********************************************************************/
/* Declarations for Project #11 */
/***********************************************************************/
struct player
{
unsigned short number; /* player's jersey number (key) */
char name[25]; /* player's name */
unsigned short games; /* number of games played */
unsigned short goals; /* number of goals scored */
unsigned short assists; /* number of assists scored */
unsigned short points; /* points (goals + assists) */
float points_per_game; /* points per game played */
};
struct table
{
unsigned short capacity; /* number of elements in table */
unsigned short count; /* number of players in table */
struct player* memory; /* pointer to array of players */
};
/***********************************************************************/
/* Function: search */
/* */
/* Purpose: locate and return a pointer to a player, if the player */
/* is present in the table. */
/* */
/* Arguments: */
/* pointer to table of players */
/* jersey number of player to be located */
/* pointer to pointer to player */
/* */
/* Return value: */
/* 1 (true) if player located, 0 (false) otherwise */
/***********************************************************************/
int search( struct table*, unsigned long, struct player** );
http://www.6daixie.com/contents/3/2259.html
/***********************************************************************/
/* Function: delete */
/* */
/* Purpose: delete a player from the table, if the */
/* player is present in the table. */
/* */
/* Arguments: */
/* pointer to table of players */
/* jersey number of player to be deleted */
/* */
/* Return value: */
/* 1 (true) if player deleted, 0 (false) otherwise */
/***********************************************************************/
int delete( struct table*, unsigned long );
/***********************************************************************/
/* Function: insert */
/* */
/* Purpose: insert a player into the table, as long as there is */
/* room in the table and the player is not already present. */
/* */
/* Arguments: */
/* pointer to table of players */
/* jersey number of player to be inserted */
/* pointer to name of player */
/* number of games played */
/* number of goals scored */
/* number of assists scored */
/* */
/* Return value: */
/* 1 (true) if player inserted, 0 (false) otherwise */
/***********************************************************************/
int insert( struct table*, unsigned long, char*, int, int, int );

因为专业,所以值得信赖。如有需要,请加QQ99515681 或邮箱:[email protected] 

微信:codinghelp

猜你喜欢

转载自www.cnblogs.com/welcomejava/p/10046361.html
cse