Assignment 2
Problem:
Design a class that can be used to keep score information for a rugby team using TDD.
Requirements:
//Team object constructor
public Team(string newTeamName) { }
//Get and Set the name public string Name { }
//Team's total score for the game public int TotalScore { }
//Team's number of Try in the game public int ScoreTry { }
//Team's number of Convert in the game public int ScoreConvert { }
//Team's number of Pentry in the game public int ScorePenaltyKick { }
//Team's number of Drop Kick in the game public int ScoreDropKick { }
//To add and count the try (5 points) score for the Team public void AddTryScore() { }
//To add and count the conversion (2 points) score for the Team public void AddConversionScore() { }
//To add and count the penalty kick kick (3 points) score for the Team public void AddPenaltyKickScore() { }
//To add and count the drop kick (3 points) score for the Team public void AddDropKickScore() { }
Note:
The four possible Rugby scores are a try (5 points), a conversion (2 points), a drop kick (3 points) or a penalty kick (3 points). The class should keep track of the scores for each team as well as each individual score.
You should have at least two projects: one is a Unit Test Project (.NET Framework) project and another one is a Class Library (.NET Standard) project.
You might need to add private variables when you develop this class. Employ good programming principles discussed in class.
代写CS&Finance|建模|代码|系统|报告|考试
编程类:C++,JAVA ,数据库,WEB,Linux,Nodejs,JSP,Html,Prolog,Python,Haskell,hadoop算法,系统 机器学习
金融类:统计,计量,数据科学,风险投资,金融工程,R语言,Python语言,Matlab,建立模型,数据分析,数据处理
服务类:Lab/Assignment/Project/Course/Qzui/Midterm/Final/Exam/Test帮助代写代考辅导
E-mail:850190831@qq.com 微信:BadGeniuscs 工作时间:无休息工作日-早上8点到凌晨3点
如果您用的手机请先保存二维码到手机里面,识别图中二维码。如果用电脑,直接掏出手机果断扫描。