Sharon is the owner of a supermarket. She sells a large variety of grocery items through her
supermarket, such as toothpastes, soaps, and other household items.
Currently, Sharon keeps track of the different items available in stock manually. However, the
number of items sold through the supermarket has increased tremendously. Therefore, Sharon
spends long periods of time to keep track of each and every item.
To ensure easy and effective management of the stock details, Sharon decides to use a
customized application. For this purpose, she approaches the AlphaSoft Inc., which is a software
development organization. The management of AlphaSoft Inc. asks Hayley, a software developer,
to handle the application development requirements of Sharon.
Hayley conducts a meeting with Sharon and notes the following requirements for the application:
Sharon does not have the budget to implement Relational Database Management System
(RDBMS). However, she needs the stock details to be available at all times. Therefore, the
application needs to store the inventory details persistently on Sharon's computer.
The application should allow Sharon to perform the following tasks:
Add details of new items to the stock.
Modify the details of existing items.
View the last modified date of the stock details file.
Question:
Sharon decides to develop the application using C#. Analyze the preceding scenario and answer
the following questions:
Which classes of the .NET Framework should Hayley use to ensure that the stock details are
available to Sharon at all times? Justify your answer along with reasons. [6 Marks]
Which class of the .NET Framework should Hayley use to enable Sharon to view the file
extension of the stock details file? Describe any four properties of the selected class. [4 Marks]
Comments
Leave a comment