C# - This must be a Universal Windows Application form   Starting out a project program called Data Collector    Please Define an interface Define an interface called IMeasuringDevice. Add it to your project in its own IMeasuringDevice.cs source file  Add the following public method declarations to your new 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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Visual C# - This must be a Universal Windows Application form

 

Starting out a project program called Data Collector 

 

Please Define an interface

Define an interface called IMeasuringDevice. Add it to your project in its own IMeasuringDevice.cs source file  Add the following public method declarations to your new 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 all of the recent data that the measuring device has captured. The data will be returned as an array of integer values.

Comment your new method declarations to know what they are meant to do.

 

Please Define an enumeration

Define an enumeration called Units. Add it to your project in its own UnitsEnumeration.cs source file. You may do so by adding a new class  called UnitsEnumeration and changing the empty class declaration generated into an enum declaration ("class UnitsEnumeration" -> "enum Units"). Make your enumeration publicly accessible, and add values Metric and Imperial to it. Comment your enumeration so its purpose is clear.

 

Define a Device class

Define a class called Device. Add it to your project in its own Device.cs source file. Make it publicly accessible and give it one method:

  • GetMeasurement. This method will return a random integer between 1 and 10 as a measurement of some imaginary object.

Comment your class 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY