<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="burrin"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2021-09-28 03:09:51 PM"/>
        <attribute name="created" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIxLTA5LTI4OzAzOjAwOjEzIFBNOzI5NDE="/>
        <attribute name="edited" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIxLTA5LTI4OzAzOjA5OjUxIFBNOzE7MzA2MA=="/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="points" type="Integer" array="False" size=""/>
            <assign variable="points" expression="0"/>
            <declare name="NoOfBooks" type="Integer" array="False" size=""/>
            <output expression="&quot;Enter number of books purchased this month&quot;" newline="True"/>
            <input variable="NoOfBooks"/>
            <if expression="NoOfBooks &gt;=4">
                <then>
                    <assign variable="points" expression="60"/>
                </then>
                <else>
                    <if expression="NoOfBooks == 3">
                        <then>
                            <assign variable="points" expression="30"/>
                        </then>
                        <else>
                            <if expression="NoOfBooks == 2">
                                <then>
                                    <assign variable="points" expression="15"/>
                                </then>
                                <else>
                                    <if expression="NoOfBooks == 1">
                                        <then>
                                            <assign variable="points" expression="5"/>
                                        </then>
                                        <else>
                                            <assign variable="points" expression="0"/>
                                        </else>
                                    </if>
                                </else>
                            </if>
                        </else>
                    </if>
                </else>
            </if>
            <output expression="&quot;for &quot; &amp;NoOfBooks &amp;&quot; you get &quot; &amp;points &amp;&quot; points.&quot;" newline="True"/>
        </body>
    </function>
</flowgorithm>
