Estimate time for Washing Machine | TCS NQT coding problem (Solved)

Опубликовано: 08 Март 2021
на канале: Go-Mind
747
17

Hey viewers,
Today's question is:
A washing machine works on the principle of a Fuzzy System, the weight of clothes put inside it for washing is uncertain But based on weight measured by sensors, it decides time and water level which can be changed by menus given on the machine control area.

For low-level water, the time estimate is 25 minutes, where approximately weight is between 2000 grams or any nonzero positive number below that.

For medium-level water, the time estimate is 35 minutes, where approximately weight is between 2001 grams and 4000 grams.

For high-level water, the time estimate is 45 minutes, where approximately weight is above 4000 grams.

Assume the capacity of the machine is a maximum of 7000 grams

Where approximately weight is zero, time estimate is 0 minutes.

Write a function that takes a numeric weight in the range [0,7000] as input and produces estimated time as output is: “OVERLOADED”, and for all other inputs, the output statement is

“INVALID INPUT”.

Input should be in the form of integer value –

Output must have the following format –

Time Estimated: Minutes

Example:

Input value
2000

Output value
Time Estimated: 25 minutes


Смотрите видео Estimate time for Washing Machine | TCS NQT coding problem (Solved) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Go-Mind 08 Март 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 747 раз и оно понравилось 17 посетителям.