Implement a simple .NET desktop application (i.e., Windows Form, WPF, UWP) that executes four tasks synchronously and
Question:
Implement a simple .NET desktop application (i.e., Windows Form, WPF, UWP) that executes four tasks
synchronously and asynchronously. In the GUI's top left, you can enter integers.
Click Start Synchronous to calculate Fibonacci's values and find prime numbers using a compute-intensive
recursive implementation. Starting with integers in the 40s, recursive Fibonacci calculation can take seconds or
even minutes to calculate. If this calculation were to be performed synchronously, the GUI would freeze for that
amount of time and the user would not be able to interact with the app.
Start Asynchronous launch the calculation asynchronously and have it executed on a separate thread, so the
GUI remains responsive.
The progress bar and percentage are updated.
Display time for each operation and total time for all calculations.
(The image and the code below are for guidance only)
Note:
1_ The Sieve of Eratosthenes algorithm, to display the primes:
// check whether value is a prime number
Integrated Accounting
ISBN: 978-1285462721
8th edition
Authors: Dale A. Klooster, Warren Allen, Glenn Owen