We want to build an intelligent system that can calculate the monthly newspaper expenses of a household. Following table demonstrate prices of some of the prominent newspapers on a daily basis, all prices in Indian rupees. Based on the choice of papers one wants to subscribe, the program should calculate the monthly experience.
Monday Tuesday Wednesday Thursday Friday Saturday Sunday TOI 3 3 3 3 3 5 6 Hindu 2.5 2.5 2.5 2.5 2.5 4 4 ET 2 2 2 2 2 2 10 BM 1.5 1.5 1.5 1.5 1.5 1.5 1.5 HT 2 2 2 2 2 4 4 The input to the program should be a comma separate lists of papers that the consumer wants to subscribe. Calculate the total subscription price for the current month. You could use the calendar to arrive at the total number of specific weekdays in the month and hard code the same.