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 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 24.06.2019 10:40
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
You know the right answer?
A system uses three (3) temperature sensors produced by the same vendor V1 to monitor the condition...
Questions
question
History, 07.03.2021 20:40
question
History, 07.03.2021 20:40
question
Mathematics, 07.03.2021 20:40
question
Mathematics, 07.03.2021 20:40
question
Biology, 07.03.2021 20:40