Write a gui application which will allow the user to request

Assignment Help Computer Engineering
Reference no: EM132168374

Using C#, Write a GUI application which will allow the user to request the number of prime numbers between 2 and a user supplied value. Your code will display the result in a list box.

The application should still be responsive while the computation is being performed. You will have two push buttons. One to start the calculation and the other to cancel it.

The following is a list of some of the aspects of this project.

When the user presses the start button, your code should:

Get the end point number. It should make sure that it is in good format by catching any exception thrown for a bad number.

Record the endpoint number in a field of the class.

Launch the thread that does the calculation. Make the thread function part of the class so it can access the end point number.

Disable the start button by setting its Enable property to false. Also enable the cancel button.

The thread function should compute how many primes are between 2 and the end point number. Since the function is part of the forms object, it can record its result directly in the output list box.

If the user hits the cancel button, the code will abort the thread and join it to make sure it is dead. Then enable the start button and disable the cancel button.

Please include all neccessary files.

Reference no: EM132168374

Questions Cloud

Critical evaluation and analysis of the literature : Critical evaluation and analysis of the literature demonstrating the depth, breadth and relevance of the research undertaken - Depth and breadth of knowledge
What is the after-tax present worth of the given venture : Mr. Sam K. Jones, a successful businessman, is considering erecting a small building on a commercial lot. A local furniture company is willing to lease.
Write a program cars that uses switch-case statements : Using car companies (ex: Acura, Honda, etc.), write a program "Cars" that uses switch-case statements that figures out what kind of car you drive.
Determine the after-tax net present worth of investment : A farmer bought a new harvester for $120,000. The harvester's operating expenses averaged $10,000 per year but the harvester saved $40,000 per year.
Write a gui application which will allow the user to request : Launch the thread that does the calculation. Make the thread function part of the class so it can access the end point number.
What is the book value of the machine : A computer-controlled milling machine will cost Ajax Manufacturing $65,000 to purchase plus $4700 to install. What is the book value of the machine at EOY 3?
Write the function definition of a void function : The first two parameters receive data fromthe caller, and smallest returns a value which the smallest of the two input parameters.
Should the company invest in the given crane : Florida Construction Equipment Rentals (FCER) purchases a new 10,000-pound-rated crane for rental to its customers. This crane costs $1,125,000 and is expected.
Display the average grade of the class : She wants to make the program flexible so she can use it every year, so the number of students is not fixed.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a program to implement the basic ray-tracing algorithm

Write a program to implement the basic ray-tracing algorithm for a scene containing a single sphere hovering over a checkerboard ground square.

  Define trade-off between internal cohesion and external ties

Consider the different teams presented in your reading assignment. How do the teams manage their team boundaries? What are the trade-offs between internal.

  Discuss the information security or networking arena

I want help in writing my dissertation for MBA , I'm working in networking and security industry and I'm willing to have my dissertation to be.

  Create an application for a pizza delivery company

Create an application for a Pizza Delivery Company. You might check out the graphical user interface shown in Figure 10-21.

  Perform the affine mapping by computing the matrix-vector

Perform the affine mapping by computing the matrix-vector multiplication and addition.

  Provide a write up on your understanding of application

What are the techniques you will account for when considering hardening solutions for application/OS security?

  Weaknesses of both virtualization and cloud computing

Review the literature and analyze the strengths and weaknesses of both virtualization and cloud computing in providing secure and trusted systems

  Prepare the pseudocode for a program which accepts input

create the pseudocode for a program that accepts input values for the projected cost of a vacation and the number of

  Write code to find the index of the second occurrence

Let L be a list and let T be a target. Write code to find the index of the second occurrence of T in the list.

  Write application that allows user to input monthly rainfall

Write an application that allows the user to input monthly rainfall amounts for one year. Calculate and display the average rainfall for the year.

  Implementation of the spacecraft feature

Assignment 1: The Diamonds of Doom - Discuss and brain-storm with your associates, you must ensure that your submission is your own individual work - implementation of the "Spacecraft" feature.

  Define the matlab function

Suppose S(x) is a cubic spline interpolant of the data (Xl, yl), ... , (xn, Yn) obtained using spline. Write a MATLAB function d3 - MaxJump(S) that returns.

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