Description You will be creating a program that simulates a device that takes measurements of a…

Description You will be creating a program that simulates a device that takes measurements of a “widget” every second. This device will start automatically when your program starts. Your program will connect to this device and be a tool to collect measurements from the device. Your measuring tool will have a way to tell the device what the default measuring unit is (metric or imperial) and the ability to start collecting measurements every 15 seconds. The program will display the most recent measurement in the unit of measure selected and the raw data for that last 10 measurements. This will be done using the following requirements. Requirements This must be a Universal Windows Application. You will create an interface class for the measuring tool (device) Interface will be named IMeasuringDevice and be contained in its own class file IMeasuringDevice.cs The device must have the following elements MetricValue – This method will return a decimal that represents the metric value of the most recent measurement that was captured. ImperialValue – This method will return a decimal that represents the imperial value of the most recent measurement that was captured. StartCollecting – This method will start the device running. It will begin collecting measurements and record them. StopCollecting – This method will stop the device. It will cease collecting measurements. GetRawData – This method will retrieve a copy of all of the recent data that the measuring device has captured. The data will be returned as an array of integer values. Proper comments that guide other developers how to use the interface An Enumeration class the defines the units of measurement UnitsEnumeration (UnitsEnumeration.cs). Must be publicly accessible Must define units as Metric and Imperial Comment your enumeration so its purpose is clear. A device class (Device.cs) that will act as the device doing the measurements This class will start when the project is started. This class will generate a random value integer value between 1 and 10 every second using a timer. A method GetMeasurement that will return the most recent measurement generated. Proper comments that guide other developers how to use the device class A class called MeasuringLengthDevice (MeasuringLengthDevice.cs) This will implement the IMeasuringDevice interface. Implement the method stubs from the interface. MetricValue – This method will return a decimal that represents the metric value of the most recent measurement that was captured. ImperialValue – This method will return a decimal that represents the imperial value of the most recent measurement that was captured. StartCollecting – This method will start the device running. It will begin collecting measurements and record them. StopCollecting – This method will stop the device. It will cease collecting measurements. GetRawData – This method will retrieve a copy of the last 10 recent data that the measuring device has captured. The data will be returned as an array of integer values. Be sure that your class has the following fields unitsToUse: Units – This field will determine whether the generated measurements are interpreted in metric (e.g. centimeters) or imperial (e.g. inches) units. Its value will be determined from user input. dataCaptured: integer array – This field will store a history of a limited set of recently captured measurements. Once the array is full, the class should start overwriting the oldest elements while continuing to record the newest captures. (You may need some helper fields/variables to go with this one). mostRecentMeasure: integer – This field will store the most recent measurement captured for convenience of display. Add a constructor for your class which initializes your fields. Add a means for unitsToUse to be set according to user input. Give your class access to the Device.GetMeasurement() method you created. Write function bodies for your interface methods: MetricValue. Return the current value from mostRecentMeasure- convert it if unitsToUse is not Metric. ImperialValue. Return the current value from mostRecentMeasure- convert it if unitsToUse is not Imperial. StartCollecting. Start a timer (using System.Windows.Threading.DispatcherTimer) to perform a data capture every 15 seconds. The timer will call an EventHandler (hooked up to the Tick event) which should set mostRecentMeasurewith a new value fromDevice.GetMeasurement() and add that value to the dataCaptured history array. Each time this event occurrs, you will also need to update your form by displaying the new measurement along with a current timestamp. Should your device also capture a value before the first 15 second interval has elapsed? StopCollecting. Stop the timer that started in StartCollecting(). GetRawData. Return the contents of the dataCapturedarray. Which element is the oldest one in your history? Do you need to manipulate these values? How will they be presented to the user? Build the user interface In your main window create an instance of your MeasureLengthDevice class. This object will be accessed and manipulated by the controls on your form. Where/when should this object be created? Add controls to your main window form: Give the user a way to set the units of measurement (unitsToUse). Provide a mechanism to start and stop the measurement cycle (StartCollecting / StopCollecting). Should your interface change when these controls are clicked? Are all of the control options valid in both states (collecting / not collecting)? What happens when the user tries to use the interface in ways you may not have expected? Create places (labels) to display the current measurement (mostRecentMeasure) and the timestamp when it was taken. Create a way to display the most recent measurement in the alternate to the selected measurement units (MetricValue / ImperialValue). That is, if the selected units are metric, show the measurement in imperial, and vice-versa. Which units are being collected? Where/how will you display the converted value? Add a button to display the measurement history (GetRawData). Where/how will you display this list? What did you make GetRawData() return? Does the list start with the oldest value collected? What happens when your history array fills up and older values are overwritten? What happens when your history has not been filled up yet? Does “0” count as an actual history entry? Does your history display the units in which the data was collected? Capture screenshots Capture an image of your application collecting data and displaying the current measurement in the selected units and the timestamp. Capture an image of your application displaying the current measurement converted to the alternate units. Post to Dropbox: Please provide a single document with all your code from all your files in the project with proper titles. In addition, create a screen capture of your application in the following states: Capturing Data showing the active ‘Get Data’ and the most recent collection in a label on the form with a timestamp. Displaying raw data in the array with a click event from a button on the main form. Displaying data converted to the proper measurement as selected by the user. This should be the show the opposite of the current measurement. For our example, always assume the data coming from the ‘device’ is in inches and we want to convert to centimeters.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Online Academic Experts
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Business Studies
First of all, the writer made sure that he completely understood my assignment and all the guidelines before he began writing. My paper was finished very fast and well before the specified deadline. I thought it was written excellently. He definitely completely grasped the topic. Overall, he is a great writer and I couldn't have asked for better.
Customer 452441, November 29th, 2021
Communications
Thank you so much for your attention to this assignment and timeliness.
Customer 453111, November 12th, 2022
Education
N/A
Customer 453057, May 23rd, 2022
English 101
IThank you
Customer 452631, April 6th, 2021
Business and administrative studies
excellent work
Customer 453201, November 1st, 2022
Psychology
Thank you!
Customer 452545, February 6th, 2021
Nursing
Paper much better compared to the one prior revision request. References need to be no more than the past 5 years.
Customer 452547, July 20th, 2021
Business Studies
Thank you so much! I had to take my dog to the ER and had no time for the assignment. I really appreciate your help! I can't thank you enough! I really appreciate the work and integrity put into it. Thank you for taking it seriously and not bullshiting the paper.
Customer 452815, July 26th, 2021
Business and administrative studies
excellent
Customer 453201, October 22nd, 2022
Business Management
Awesome job, Thank you
Customer 453201, June 12th, 2022
Professions and Applied Sciences
Thanks. This helps a lot. Was a bit late but some cushion was given.
Customer 453015, February 10th, 2022
English 101
very good paper thank you.
Customer 453083, February 18th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Live ChatWhatsApp