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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started