Illustrate the progress of each horse in the race

Assignment Help Programming Languages
Reference no: EM131072581

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.

https://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.

Reference no: EM131072581

Questions Cloud

What was the spot rate at which the pesos were converted : Crescent Corporation’s recent sale to a firm in Mexico produced revenues of 13,144,800 Mexican pesos (MPs). If Crescent sold the pesos to its bank and was credited with $1,795,579.69, what was the spot rate at which the pesos were converted?
Suppose you observe two call options : Suppose you observe two call options on GE stock, both with exercise price of $50. Call 1 has a maturity date of November with a price of $2.30 while call 2 has a maturity date of December (exactly one month later) with a price of $2.10. What would y..
Two different investment plans : Your financial planner offers you two different investment plans. Plan X is a $22,000 annual perpetuity. Plan Y is a 10-year, $28,000 annual annuity. Both plans will make their first payment one year from today. At what discount rate would you be ind..
Large corporation has evaluated possible capital project : The finance department of a large corporation has evaluated a possible capital project using the NPV method, the Payback Method, and the IRR method. Assuming the data is correct, which method will most likely provide the most accurate decisions and w..
Illustrate the progress of each horse in the race : This assignment gives you the opportunity to simulate horse races for up to 10 horses over a range of distances measured in furlongs.
How much would the demand curve have to shift upward : By how much would the demand curve have to shift upward in order that the socially optimal quantity is realized?
How much per unit is the supplier paid : Compute the producer and consumer surpluses after the imposition of the tax and also the DWL.
At what price is total revenue maximized : At what price is total revenue maximized?
Describe the anticipated expected content : In each section and subsection, insert a couple of sentences (or short paragraph) describing anticipated/expected content. The last section of the outline must be a bibliography with at least 2 references.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd