Answer the question
In order to leave comments, you need to log in
How to create a calculator from a spreadsheet?
Good day!
There is a table for calculating the sex of the child.
Table - https://kroshka.org.ua/images/stories/Pol_rebenka/... The
question is, how can I write an optimized code? For now I have implemented it like this:
blog.md7.info/calculators/konsolnaja-programma-dlj
... through nested switch cases.
Maybe you can simplify this task? For example, mapping or something else? The method of obtaining data is not so important, Scanner is also suitable, you can even get the value from the field (on android). The main thing is how to implement the calculator itself from the table ...
Answer the question
In order to leave comments, you need to log in
There is a table
<...>
Maybe you can simplify
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question