Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Criminal Records

In Microsoft visual studio 2010 C# (Windows Form Application):

You are to implement a Binary Search or AVL tree containing the details of known criminals.  The criminal object must minimally contain the following information

  • Name
  • Age
  • Height
  • List of Offences (use the built in LinkedList<> collection)
  • Address

Store the objects in the tree using the name as the key for comparison.

You must implement a GUI (may be multiple forms) which allows the user  to  :

1.       Add a Criminal

2.       Display the number of Criminal Records in the system and depth of the tree

3.       Search for a Criminal by Name

4.       Remove a Criminal

5.       Edit a Criminal's details

6.       Search for  Criminals by a particular offence - should display all criminals committing that offence

The last two can be coded using the IComparable interface and implementing CompareTo as below (requires completing).  Alternatively you could use a non generic Tree though this will restrict the marks available.

      public int CompareTo(object obj)

        {

            if (obj is Criminal) //compare by name

            {

                Criminal other = (Criminal)obj;

                return name.CompareTo(other.name);

            }

            if (obj is string) //compare against list of crimes

            {

 

            }

            else

                return -999;  //indicates can't make a comparison

        }

You can add events to controls in design time by selecting the control and clicking on the lightening strike in the properties box. Then select the event you want to add.

1547_Criminal Records.png

 

Event documentation can be found at MSDN (google it).

222_Criminal Record 1.png

Criminal Offences : you can set or get (a property) for a linkedList. This list can be populated with the crimes using the .AddFirst(string) method and displayed on a form using get and iterating through the list contents (foreach) and adding to a ListBox for example.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9888000
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Assignment write an 8-page apa formatted paper on a

Assignment: Write an 8-page APA formatted paper on a business problem that requires data mining, why the problem is interesting, the general approach you plan to take, what kind of data you plan to use, and finally how y ...

Assignment -question 1 - go-back-n in the following network

Assignment - Question 1 - (Go-Back-N) In the following network, node A transmits packets that pass through B and C, and arrive at the destination D. The bit rate of all links is R = 1 Mbit/sec. The maximum packet size in ...

Question suppose that an application has m input variables

Question : Suppose that an application has M input variables and that each variable partitions the input space into N equivalence classes. The multidimensional partitioning approach will divide the input domain into how ...

A compute the sumnbsps1nbsp 1 2 3 nbsp nbsp 9999 the sum

(a) Compute the sum S1 = 1 + 2 + 3 + . . . + 9999 (the sum of all integers from 1 to 9999). Do not use a program. (b) Compute the sum S2 = 1+3+5+...+9999 (the sum of all odd integers from 1 to 9999). Do not use a program ...

Question suppose your computer is able to test 50000

Question Suppose your computer is able to test 50,000 passwords per second. If the password were 8 bytes long (a-z, A-Z, 0-9), what year will the password be cracked through brute force (Show your work)? Assume 1) you we ...

Elm industries receives profits from polluting according to

Elm Industries receives profits from polluting according to the formula: (pi=10Q-Q^2) The Damages associated with pollution from this facility are estimated to be: (D=Q^2+2Q) (Q= pollution emitted in tons) , and profits ...

Assignment week 1 project plan drafta project plan is a

Assignment: Week 1 Project Plan Draft A project plan is a document created at the beginning of the project lifecycle that gives stakeholders and everyone else involved in a project a clear idea of what a project will ent ...

A 2500ml sample of sulfuric acid a diprotic acid was

A 25.00mL sample of sulfuric acid, a diprotic acid, was titratedwith 24.66mL of aqueous NaOH. Upon evaporation, 0.550g of drysodium sulfate was recovered. a. What is the normality of the sulfuric acid b. What this the no ...

Question include the following items in your paper and

Question: Include the following items in your paper and formal presentation: • A description of the Performance Check and Proficiency Testing targeted for improvement • An As-Is flow chart of the Performance Check and Pr ...

What happens when volatility increases what does volatility

What happens when volatility increases? What does volatility percentage mean?

  • 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