ブログの要件
githubのプロジェクト住所:https://github.com/zhibihuayue/PairProgramming
求人アドレス:https://www.cnblogs.com/cherish599/p/11577268.html |
、PSP推定時刻表
PSP2.1 | パーソナルソフトウェアプロセス段階 | 推定時間がかかる(分) | 実際の時間がかかる(分) |
---|---|---|---|
プランニング | 計画 | 45 | 45 |
推計 | このタスクが必要とどのくらいの時間を見積もります | 45 | 45 |
開発 | 開発 | 720 | 660 |
分析 | (新しい技術を学ぶ含む)ニーズ分析 | 45 | 30 |
デザインスペック | 設計ドキュメントの生成 | 30 | 30 |
デザインレビュー | デザインレビュー(と同僚が設計文書を見直し) | 30 | 45 |
標準コーディング | コードの仕様(現在の開発のための適切な規範の開発) | 30 | 30 |
設計 | 具体的な設計 | 60 | 60 |
コーディング | 具体的なコーディング | 300 | 450 |
コードレビュー | コードレビュー | 60 | 60 |
テスト | 検査(セルフテスト、コードを変更し、変更を提出) | 90 | 90 |
報告 | レポート | 70 | 90 |
試験報告書 | テストレポート | 30 | 30 |
サイズ測定 | コンピューティングのワークロード | 25 | 30 |
死後&プロセス改善計画 | その後まとめ、およびプロセス改善計画 | 20 | 30 |
トータル | 1600 | 1725 |
第二に、プロジェクトのクローン作成
1.クラスの倉庫。
2. PairProgrammingフォルダ、独自のフォルダを使用して新しいファイルを作成します。
3.VSソフトウェア開発
第三に、コード設計
1.計算モジュールインタフェースの設計と実装
問題解決のためのアイデア
ダイスゲームが乱数を発生提供され、そしてデジタル乱数を外部入力とを比較し、その結果を返すことに注意してください。
設計と実装プロセス
Iと学校で議論されるD、当社グループの事業の生産のためのオンラインコンテンツの一部と組み合わせます。小さいので、メインの生産に、私は、集計およびその他の操作を担当しています。
コード・ショー(私はコードセクションの責任です)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Collections;
using Entity;
namespace DataBase
{
public class DiceData
{
private static List<Dice> diceList;
public static List<Dice> getAll()
{
diceList = new List<Dice>();
Dice num1 = new Dice("1");
diceList.Add(num1);
Dice num2 = new Dice("2");
diceList.Add(num2);
Dice num3 = new Dice("3");
diceList.Add(num3);
Dice num4 = new Dice("4");
diceList.Add(num4);
Dice num5 = new Dice("5");
diceList.Add(num5);
Dice num6 = new Dice("6");
diceList.Add(num6);
return diceList;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Collections;
using Entity;
namespace DataBase
{
public class DiceData
{
private static List<Dice> diceList;
public static List<Dice> getAll()
{
diceList = new List<Dice>();
Dice num1 = new Dice("1");
diceList.Add(num1);
Dice num2 = new Dice("2");
diceList.Add(num2);
Dice num3 = new Dice("3");
diceList.Add(num3);
Dice num4 = new Dice("4");
diceList.Add(num4);
Dice num5 = new Dice("5");
diceList.Add(num5);
Dice num6 = new Dice("6");
diceList.Add(num6);
return diceList;
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
using Entity;
using DataBase;
namespace DaoLayer
{
class DaoDice
{
public class StudentDAO
{
public int getDiceRecordsNums()
{
List<Dice> DiceList = DiceData.getAll();
return DiceList.Count;
}
public List<Dice> getAllDice()
{
List<Dice> diceList = DiceData.getAll();
return diceList;
}
}
}
}
2.ディスプレイ・インターフェイス
3.コードレビュー及び(単体テストのモジュールオフ丁boの)
第四に、双晶のプロセス
1.ツイニングメンバー(柔術江林&ゆう丁)
2.コンテンツは、予め用意します
当社グループは、私が最初にコンソールアプリケーションの操作を行い、2つの異なるバージョンを実行するために計画し、以下のコードは、私はこれに基づいて変更を行うには、事前に内容のうち、何をすべきかで、プログラムの最終的な形は、プログラムによって決定されます。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GuessNumber
{
class Program
{
static void Main(string[] args)
{
const int GuessChance = 7;
while (true)
{
Console.WriteLine("*********************欢迎来到猜数字*********************\n");
//生成一个随机数.
int targetNum = new
Random().Next(1, 101);
for (int i = 1; i <=
GuessChance; i++)
{
//输入猜想.
Console.Write("请输入猜想 {0}:
", i);
int guessNum =
Convert.ToInt32(Console.ReadLine());
Console.WriteLine("猜想 {0}:
{1}", i, guessNum);
//判断猜大了还是猜小了.
if (guessNum >
targetNum)
{
Console.WriteLine("猜大了!");
}
if (guessNum <
targetNum)
{
Console.WriteLine("猜小了!");
}
//猜中了.
if (guessNum == targetNum)
{
Console.WriteLine("恭喜你猜中了!");
Console.WriteLine();
break;
}
Console.WriteLine();
}
//是否继续游戏的判断.
Console.WriteLine("是否再来一次游戏?y/n");
string comfirm =
Console.ReadLine();
if (comfirm == "y" ||
comfirm == "Y")
{
Console.WriteLine();
continue;
}
else
{
Console.WriteLine("游戏结束!");
break;
}
}
Console.ReadKey();
}
}
}
3.結果ショー
V.の概要
実際に70大慶の設立に先駆け本当にあまりにもラッキージョブは、シャオの同志は、ジョブを完了するためにホームに戻っ重いパソコンを入れていました。
この作品のために、私たちのグループは、私たちのプレゼンテーションを行うための教師(出席システム)の場合ではありません、私はテストを取り、Dingsiの瞬間に、同じことに来て、その後、サイコロゲームを選択しないことを決定しました。私たちは、デジタル制限は選択肢がない(サイコロが6まで選択)サイコロゲームにいくつかの変更を加え、彼らは単に一度少し変更します。
私のチームメイトタンタンの学生を支援するために非常にありがとうございました、私はまた、番号を本当に使いやすい、gitのクライアントソフトウェアを使用することをお勧めします、私をたくさん教えてくれました。コードは、さあさあ、その上で作業を継続する必要があります!