subject

A system uses three (3) temperature sensors produced by the same vendor V1 to monitor the condition of a hardware device at a specific time: – The first sensor is of type TS1. – The second sensor is of type TS2. – The third sensor is of type TS3.TS1, TS2, and TS3 accept as input a date (date/month/year: 18/03/2020) and time (given in Eastern Standard Time or EST) and return a temperature in Fahrenheit. Time is in the 24-hour time keeping system (e. g., 23:59:59). V1 supplies a class to interface with its sensors:Class TS1 {Public double getTemp(date d, time t) {// returns Temp in Fahrenheit // t is in EST time // t is in the 24-hour time keeping system (e. g., 23:59:59) // Code Goes here} }Class TS2 {Public double getTemp(date d, time t) {// returns Temp in Fahrenheit // t is in EST time // t is in the 24-hour time keeping system (e. g., 23:59:59) // Code Goes here} }Class TS3 {Public double getTemp(date d, time t) {// returns Temp in Fahrenheit // t is in EST time // t is in the 24-hour time keeping system (e. g., 23:59:59) // Code Goes here} }We would like to add a third sensor of type TS4 provided by vendor V2. TS4 accepts as inputs a year, month, day, and time (specified in Pacific Standard Time or PST) and returns a temperature in 1/10 of Celsius. Time is specified in the AM/PM format (12-hour clock).Below is the interface for TS4:Class TS4 {Public double getTS4Temp(year y, month m, day d, time t, string when) {// returns Temp in 1/10 Celsius // Fahrenheit = (Celsius -32) * 5/9 // t is in PST time // t is specified in the AM/PM format (12-hour clock) // PST = EST – 3 // when="AM" or when="PM" // Code Goes here} }1) Give the UML class diagram for the application using the object adapter pattern.2) Provide the implementation code of the UML class diagram given in question 1 in Java. The client application should read a date and time from the user and compute the average temperature of the four sensors at that date and time.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
A system uses three (3) temperature sensors produced by the same vendor V1 to monitor the condition...
Questions
question
English, 28.03.2021 14:00
question
Mathematics, 28.03.2021 14:00
question
Mathematics, 28.03.2021 14:00
question
Mathematics, 28.03.2021 14:00
question
Mathematics, 28.03.2021 14:00
question
Mathematics, 28.03.2021 14:00
Questions on the website: 13722360