Question: Write a program using Java for the following problem; A system consists of 10 sensors, where sensors after the first one recieves its input from
Write a program using Java for the following problem; A system consists of 10 sensors, where sensors after the first one recieves its input from the previous sensor. The receving sensor will be increased in temperature by a log scale. The first sensor recieves its put entered by a user as T1(temperature 1) in Fahrenheit degree. Then T2 will be T1+ log10(2),T3 = T2+log(2)..T10= T9+log(2). The program must have a method to display the value of the temperature T1- T10 in Celsius, calculate the average temperature of all sensors and compare it with T5. If the AVG >T5, print a message of warning and reset the value of T1 (ask for a new value to be entered). Calculate a new value fo T10. The method must be within a class and the object needs to be created in main. The program must be structured and have at least one constructor.
If you can put screenshot of code in problem i would appreciate it!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
