Page 112 - Computer Science Class 11 Without Functions
P. 112

b.  Find the index of the food item on which an amount, second to the maximum, is spent as a percentage of the total
                 expenditure on food.
              c.  Find the index of the food item on which the minimum amount is spent as a percentage of the total expenditure on
                 food.
              d.  Find the index of the food item on which an amount, second to the minimum, is spent as a percentage of the total
                 expenditure on food.


               Case Based Questions


           1.  Satish runs a business of readymade garments. The following process is followed before any consignment moves out of the
              factory premises:
              •  An order (by filling a supply request form) is received from a retailer
              •  If the retailer is registered with the company, the supply request is accepted and the retailer is asked to make the
                 required payment.. Otherwise, the retailer is asked to register by filling out the registration form.
              •  The payment for the requested order is checked with the bank. If the payment is not made,   the retailer is notified to
                 make the payment.
              •  Once the payment is confirmed, the stocks are checked in the godown. If there are enough stocks, the requested order
                 is shipped, otherwise, the retailer is notified about the delay.
              As an employee of the company, Satish has asked you to write an algorithm and draw a flowchart for the given process.
              Complete the task assigned to you.
           2.  Gurleen works in a hotel. Whenever a guest checks out from the hotel,   the bill is prepared as per the following criteria:
              •  Number of days of stay are calculated based on check-in and check-out dates.
              •  The tariff for different types of rooms is as follows:
                 ○ Deluxe @ 9000/- per day
                 ○ Premium @ 12000/- per day
                 ○ Suite @ 20000/- per day
              Based on the type of room and number of days of stay, the total tariff is calculated.
              •  Then the restaurant services used were added according to the table given below:
                 ○ Breakfast @ 1000/- per person per day
                 ○ Lunch and Dinner @ 1400/- per person per day.
              Based on the information given above, Gurleen has to write a pseudocode to calculate the total bill for a customer. Break
              the task into two modules - one for the stay and the other for restaurant service. Thereafter, combine the two amounts to
              get the final bill.












          Answers to Multiple Choice Questions
          1. (b)      2. (c)     3. (d)     4. (c)      5. (b)
          Answers to True or False
          1. (T)      2. (T)     3. (F)     4. (F)      5. (T)     6. (F)
          Answers to Fill in the blanks
          1. bugs               2. flowchart         3. source code        4. machine code/ object code
          5. Debugging


         110   Touchpad Computer Science-XI
   107   108   109   110   111   112   113   114   115   116   117