<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="Riccardo"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2023-03-21 03:55:49 "/>
        <attribute name="created" value="UmljY2FyZG87TEFQVE9QLU4xS0xTM0w1OzIwMjMtMDMtMTQ7IjA1OjA1OjMxICI7MzA0MQ=="/>
        <attribute name="edited" value="UmljY2FyZG87TEFQVE9QLU4xS0xTM0w1OzIwMjMtMDMtMTQ7IjA1OjI2OjA1ICI7MjszMTU0"/>
        <attribute name="edited" value="Ym9tYWw7TVNJOzIwMjMtMDMtMjE7IjAzOjU1OjQ5ICI7MjsyMDU5"/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="alunni, giorni" type="Integer" array="False" size=""/>
            <declare name="km, costotot, calb, cpast, ccol" type="Real" array="False" size=""/>
            <assign variable="calb" expression="40"/>
            <assign variable="cpast" expression="20"/>
            <assign variable="ccol" expression="6"/>
            <output expression="&quot;Inserisci il numero degli alunni partecipanti alla gita&quot;" newline="True"/>
            <input variable="alunni"/>
            <while expression="(alunni&lt;0)">
                <output expression="&quot;Errore, alunni non inseriti correttamente&quot;" newline="True"/>
                <input variable="alunni"/>
            </while>
            <output expression="&quot;Inserisci il numero dei giorni della gita&quot;" newline="True"/>
            <input variable="giorni"/>
            <while expression="(giorni&lt;0)">
                <output expression="&quot;Errore, giorni non inseriti correttamente&quot;" newline="True"/>
                <output expression="giorni" newline="True"/>
            </while>
            <output expression="&quot;Inserisci il numero dei chilometri effettuati&quot;" newline="True"/>
            <input variable="km"/>
            <while expression="(km&lt;0)">
                <output expression="&quot;Errore, km non inseriti correttamente&quot;" newline="True"/>
                <input variable="km"/>
            </while>
            <assign variable="costotot" expression="(calb*alunni*giorni)+(2*cpast*alunni*giorni)+(ccol*alunni*giorni)+(200*giorni)+(0.5*km)"/>
            <output expression="&quot;Costo totale = &quot; &amp; costotot" newline="True"/>
        </body>
    </function>
</flowgorithm>
