V
V
Vlad _2020-07-02 23:14:03
Java
Vlad _, 2020-07-02 23:14:03

How to understand the task?

There is a question > "Write a program that enters an integer (both positive and negative) value of the angle and normalizes it in the range from 0 to 359
degrees", I've been reading it 20 times already and I just can't understand what needs to be done. Please write in human language what needs to be done.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2020-07-02
@SimonMiler

Yes, everything is very clear. Regardless of the number you enter, you should output from 0 to 359.
You enter -20, you should output 340.
You enter 400, you get 40.
Imagine a compass that has no (-20) and no (+400) degrees. And there are only 0 and 359.
This is normalization

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question