Hints and Guidelines

First, we will give a few ideas and particular hints for solving the problem, followed by the essential part of the code.

Idea for Solution

Let' s first go through the problem requirements. In this case, we have to calculate the total income from the harvest. It equals the sum of the earnings from the fruits and the vegetables which we can calculate by multiplying the price per kilogram by the quantity. The input is received in lev and the output should be in euro. It is accepted that 1 euro equals 1.94 lev, therefore, in order to get the wanted output value, we have to divide the sum by 1.94.

results matching ""

    No results matching ""