Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

INTRODUCTION

Part -1:

Horse racing, the so called "sport of kings", has been around since ancient times in various forms, chariot racing in ancient Rome being just one example. According to Wikipedia, "Horse racing is a significant part of the New Zealand economy". The Auckland Cup, run at Ellerslie in March, is one example of a major race in New Zealand.

http://www.teara.govt.nz/en/horse-and-greyhound-racing

Historically, races have been measured in miles and furlongs (8 furlongs to a mile). This assignment gives you the opportunity to simulate horse races for up to 10 horses over a range of distances measured in furlongs.

REQUIREMENTS

Your program should

1. allow the user to name from 2 to 10 horses for a race.

2. allow the user to choose the length of the race in furlongs from 6 to 20.

3. allow the user to start the race.

4. use random numbers to specify which horse wins the race (see note).

5. display the names of the horses who come first, second and third in the race, responding in a suitable way for a 2 horse race.

Note

Each horse must have one random number generated per furlong of the race, the numbers being added. So for example in a 6 furlong race, 5 horses may have numbers generated as follows:

Horse

F1

F2

F3

F4

F5

F6

Total

One

3

8

5

6

4

1

27

Two

7

5

6

8

2

9

37

Three

5

7

6

2

9

1

30

Four

8

7

6

4

5

8

38

Five

3

4

6

2

3

1

19

One this basis, horse Four wins, horse Two is second and horse Three is third.

Part -2:

This is an extension of C stage which must be completed first.

REQUIREMENTS

Your program should illustrate the progress of each horse in the race using a simple graph. For example, using the race shown in C stage, two snapshots of the race's progress may look like this:

613_figure.jpg

Part -3:

Introduction

Having completed your horse racing simulation for stages C and B, you are now to produce a simple graphical game based on the horse racing theme. Your game should use a graphical user interface (such as with Windows Forms available with C#), and should allow the user to follow the progress of a race on screen. You will be shown an example interpretation of this, but you are given scope to be creative within these general criteria.

Code

As well as following programming standards and writing code that works, for an A grade you will be expected to:

- Make good use of your own methods to prevent having to write a lot of repeated code.

- Use at least one class that you have written yourself.

Testing

Look up acceptance testing and discuss with your tutor what tests should be required. Provide a report of the tests that you carried out.

Reflection

Comment on the programming features you used in this project, mentioning how each was used and how easy you found them.

STAGES

The assignment is divided into stages, and must be completed in the order shown. You are not required to complete the stages for B or A grades, but if you do not do so your best grade will be a C. You may submit incomplete work which may gain you some marks.

The 3 stages are outlined here, but more detail follows.

All code is expected to follow the programming standards for Foundation Programming.

C STAGE

Satisfactory completion of this stage will result in your gaining a C grade (10 to 12 marks) for the assignment.

Requirements

1. This stage must be done individually.

2. Write a program in C# or other approved language that meets the specifications listed in Part 1.

3. Documentation must include your log with test results and a reflection.

B STAGE

Satisfactory completion of this stage will result in your gaining a B grade (13 to 15 marks) for the assignment.

Requirements

1. This stage must be done individually.

2. Complete the C stage outlined above.

3. Write a program in C# or other approved language that meets the specifications listed in Appendix 2. This is an extension of the C stage.

4. Documentation must include your log with test results and a reflection.

A STAGE

Satisfactory completion of this stage will result in your gaining an A grade (16 to 20 marks) for the assignment.

Requirements

1. Satisfactorily complete the C and B stage work outlined above and have them checked by your tutor.

2. Write a program in C# or other approved language that meets the specifications listed in Appendix 3. This is a GUI version of the C and B stages.

3. Documentation must include your log with test results and a reflection.

4. This may be done individually, or as a pair. If working as a pair, pair programming must be used and included in your log.

Notes

This stage gives you scope to explore aspects of programming you may encounter in programming papers later in your student life, such as the graphical user interface (GUI). Other examples include:

i. Appropriate use of methods.

ii. Using separate classes.

iii. Acceptance tests.

You need to do in C# Programming Languages and in easy way and explain for each stage you do and write each stage.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91796941
  • Price:- $140

Guranteed 48 Hours Delivery, In Price:- $140

Have any Question?


Related Questions in Programming Language

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As