Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

ISBN: 1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

Improve messages with commonsense strategies

Answered: 1 week ago

Question

Question What is a secular trust?

Answered: 1 week ago