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 program to print average grade of student

Write a program that read the grades.txt file and then prints the average grade of male and female students and the number of passed students by using the functions.

  Analyse the program and execute it

I am working on a program that I want to use for a simple home energy data information system.

  Write a trigger for total percentage of all appointments

Write a trigger on Works department to ensure the following requirement; the total percentage of all appointments for an employee must be fewer than 100%.

  Create an application that manipulates a billboard sign

Create an application that manipulates a billboard sign. The program must include a Billboard class (separate from the main program class) that is capable of storing the text to display.

  Define object-oriented programs

We are working on Object-Oriented Programs and I am lost.

  Write a shell script to read students first names

Write a shell script that reads 5 students' first names, last names and grades and then it calculates the average, maximum and minimum grade.

  Utilizing the step-by-step mrp calculation process students

utilizing the step-by-step mrp calculation process students will solve the following mrp problem given product a is an

  What are advantages of using menus in a gui application

What are advantages of using menus in a GUI application? Design a menu structure for a program you would find useful in your work or hobbies. Write and post the code for the menu creation

  Run the application

Running the application. Select Debug > Start Debugging to run your application. Test your application by checking one or more of the new services.

  Write program to calculate amount a person earn

Write a program that calculates the amount a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

  Program to fill 0s and 1s into tictactoe board

Write a program which randomly fills in 0s and 1s into TicTacToe board, prints board.

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