Posts

Showing posts from 2018

Maths and Java

Question: A sum of 3000 INR is to be given  in the form of 63 prizes. If the prize money  is either 100 INR or 25 INR. Find the number of prizes of each type. Maths:  Let the count of prizes in sum of rupees 100 each be X              Then the value of prize be 100X           Let the count of prizes in sum of rupees 25 each be Y             Then the value of prize be 25Y         Total number of prizes is X+Y=63     ----------->1                     X=63-Y            Now the Total prize value  is 3000.          Then 100X+25Y=3000                --------->2            100(63-Y)+25Y=3000                  ...