tailieunhanh - Programming in C# - Classes and Methods
Assignment Question Noertis Pharma Ltd. is one of the top five pharmaceutical companies in Sweden. They maintain records to store medicines, and sales details. Earlier, they used to store all these information in ledgers and files. In the recent years, they have found that this approach of storing information takes up a lot of physical space. | Programming in C Assignments Classes and Methods No. Assignment Question 1. Noertis Pharma Ltd. is one of the top five pharmaceutical companies in Sweden. They maintain records to store medicines and sales details. Earlier they used to store all these information in ledgers and files. In the recent years they have found that this approach of storing information takes up a lot of physical space. In a move to conserve space and preserve data long term as well as reduce the effort required to maintain the data Noertis Pharma has decided to shift to an automated data management system using .NET and C . You are recruited as one of the chief programmers for this task and need to implement the following 1. Create classes for Medicine and Sales. Medicine details that will be stored are Medicine Code Medicine Name Manufacturer Name Unit Price Quantity On Hand Manufactured Date Expiry Date Batch Number Sales details that are to be stored include Medicine Code Quantity Sold Planned Sales Actual Sales Region 2. Each class should use the concept of constructors to initialize the data. 3. Accept method in each class should accept the data from the input and store the same into respective fields. 4. A method Print will be written in Medicine class to display all the details of medicines. Another method of the same name should be written for a different action to display quantity on hand for a particular medicine whose code will be supplied to the method. Yet another Print should be written to display expiry date and manufactured date for a medicine whose code and name are supplied. 5. A method Display will be written in Sales class to display all the details of sales done. Another method of the same name should be written for a different action to display difference between actual sales and planned sales for a particular medicine whose code will be supplied to the method. 2007 Aptech Ltd Version Page 1 of 2 Programming in C Assignments 6. Assuming that a fresh order of .
đang nạp các trang xem trước