代写C++代码 代做C++程序 C++辅导 C++教学

C++网络家教 远程写代码 在线Debug 讲解答疑 不是中介,本人直接写

微信: ittutor QQ: 14061936 Email: ittutor@qq.com

导航

WASIM AKBER  Engineering Department  ENGR 334 

ENGR 334  

Programmable 

Systems 

ENGR 334 

Programmable Systems WASIM AKBER  Engineering Department  2 

ENGR 334 

Programmable Systems 

It’s  

Course 

work  

Time! WASIM AKBER  Engineering Department  3 

ENGR 334 

Programmable Systems 

POKER 

ROBOT 

(Not All Of It) As part of an ace team, 

WASIM AKBER  Engineering Department  4 

ENGR 334 

Programmable Systems WASIM AKBER  Engineering Department  5 

ENGR 334 

Programmable Systems 

As part of an ace team, 

working  for  an  on-line  casino,  you  have  been 

selected  to write  a  software module  to  recognize 

certain  winning  hands  for  the  automated  poker-

playing system.  WASIM AKBER  Engineering Department  6 

ENGR 334 

Programmable Systems 

There are a range of winning 

hands  at  poker  –  you  only 

need to consider two: 

? The Flush 

? The Straight 

A special case of these two is 

the  Straight  Flush,  and  an 

even more special case is the 

Royal Flush.  WASIM AKBER  Engineering Department  7 

ENGR 334 

Programmable Systems 

The module is to be called 

“Flush_and_Straight” and 

the hands your  

software is required to 

recognize are those  

shown on the right → 

 WASIM AKBER  Engineering Department  8 

ENGR 334 

Programmable Systems 

The specified number of inputs and outputs are: 

  

INPUTS: standard five-card poker hand, randomly dealt. 

 

OUTPUTS:  

 

 

 

 

 

 

  

FLAG  VALUE 

Flush_Flag 

1  hand consists of five cards of the same suit 

0  hand consists of cards of different suits 

Straight_ Flag 

1  hand consists of five cards of any suit in sequence 

0  hand consists of cards which are not in sequence 

Highest Ranked Card  3 – A   the highest ranked card in the hand WASIM AKBER  Engineering Department  9 

ENGR 334 

Programmable Systems 

Your module should automatically produce  flags of 1 and 

1 for a straight flush.  

 

Under house rules, there are no jokers  

 

Aces ALWAYS high, so A,2,3,4,5 is NOT a straight. 

 

Your assignment  is:  (1) to prepare a preliminary design of 

the module  required using any programming  language or 

pseudocode that takes your fancy.  WASIM AKBER  Engineering Department  10 

ENGR 334 

Programmable Systems 

Your  assignment  is:  (2)  to  specify  test  protocols  to  show 

that it does the job it is supposed to do.  

 

TEST PROTOCOLS –  

 

1. Can a winning hand be misread and marked as a loser? 

2. Can a losing hand be misread and marked as a winner? 

  

 CHEATS AND DOWNLOADS –  

 

You may  incorporate proprietary or downloaded program 

components – but ONLY IF you describe how they work. WASIM AKBER  Engineering Department  11 

ENGR 334 

Programmable Systems 

You are to submit a report consisting of: 

  

1. A cover sheet, including name, course, title, etc. 

2. A  description  of  your  design,  how  you  intend  the 

module to work, with flowcharts, etc. 

3. A  program,  in  any  language  of  your  choice  (including 

pseudocode). Assume the reader does not know your 

programming language and add sufficient commentary 

to indicate how the program works. 

4. A list of the tests that will show the module works. WASIM AKBER  Engineering Department  12 

ENGR 334 

Programmable Systems 

Assessment. 

  WASIM AKBER  Engineering Department  13 

ENGR 334 

Programmable Systems 

SUBMISSION: 

via  the Moodle  VLE.  Deadline  is  12h00,  8/12/14. 

The rules governing coursework submission can be 

found  in  the  UNDERGRADUATE  ASSESSMENT 

REGULATIONS available for download from: 

  

http://www.lancs.ac.uk/sbs/registry/docs/NewAss

essmentRegs/UG_Assessment_Regs.pdf   WASIM AKBER  Engineering Department  14 

ENGR 334 

Programmable Systems 

Specifically  Appendix  1:  Late  penalties  for  quantitatively 

assessed  work  (page  19),  and  section  2C5  (page  5): 

“Failure  to  submit  by  the  published  deadline  without 

securing  an  agreed  extension will  result  in  an  automatic 

reduction  of  one  full  grade  for  up  to  three  days  late 

(unless  the  assignment  has  already  been  assessed  and 

returned  in  which  case  the  grade  will  be  F4).  Work 

submitted after three days will receive a grade of F4 (non-

submission),  subject  to  any  consideration  of  mitigating 

circumstance.”   WASIM AKBER  Engineering Department  ENGR 334 

ENGR 334 

Programmable Systems WASIM AKBER  Engineering Department  ENGR 334 

ENGR 334  

Programmable 

Systems 

ENGR 334 

Programmable Systems 


相关推荐