Diploma In Information Technology Programming Fundamentals I ✓ Solved

Diploma in Information Technology Programming Fundamentals In

Case Study: The COVID-19 global pandemic changed and affected our day-to-day lives, in our health, careers, social activity, etc. Since the start of the outbreak in the first quarter of 2020, many countries have implemented lockdowns to contain the spread of COVID-19. In the context of Singapore, instead of a lockdown, the government implemented the "Circuit Breaker" that consists of three phases. Each phase has a gradual ease of restrictions on activities. On 9 May 2020, the tripartite partners (Ministry of Manpower (MOM), the National Trades Union Congress (NTUC), and the Singapore National Employers Federation (SNEF)) issued an advisory on Safe Management Measures required of employers when they are allowed to resume operations. Digital solutions are made available to help businesses implement some of the Safe Management Measures. You are to write a Safe Management Measure Management Java application, using an Integrated Development Environment.

Project Requirement: Develop the Java application with the following:

  1. Study the case study and research on the available Digital Solutions for Safe Management Measures.
  2. Write three (3) Java classes:
    • DigitalSolutionsCategory
    • DigitalSolution
    • DigitalSolutionsManagement

For each Java class, you are to meet the following requirements:

DigitalSolutionsCategory class

  • Fields:
    • solution category: String
    • digital solution storage: ArrayList of DigitalSolution
  • Constructor: Arguments: Solution Category. Create the digital solution storage ArrayList.
  • Methods:
    • addDigitalSolution: Add a DigitalSolution object to the digital solution list ArrayList.
    • RemoveDigitalObject: Remove a DigitalSolution object from the digital solution list ArrayList.
    • getDigitalSolution: Return one of the DigitalSolution in the digital solution list ArrayList.
    • getHighestSolutionCategory: Return solution category with the highest number of DigitalSolution objects.
    • getLowestSolutionCategory: Return solution category with the lowest number of DigitalSolution objects.

DigitalSolution class

  • Fields:
    • ID: String (unique)
    • Name: String
    • Vendor: String
    • Solution Category: String
  • Constructor: Arguments: Name, Description, Vendor, and Solution Category.

DigitalSolutionsManagement class

  • Fields: DigitalSolutionsCategory ArrayList.
  • Constructor: Initialize the DigitalSolutionsCategory ArrayList using the solution categories data.
  • Methods:
    • Insert new DigitalSolution data.
    • Retrieve DigitalSolution information.
    • Remove a DigitalSolution.
    • Exit and Save: Save all updated DigitalSolution objects and exit the program.

Implement Error Handling methods on relevant functions. The user can keep selecting the Insert, List, and Remove functions until exiting the program. You are required to satisfy all requirements mentioned above.

Documentation: In addition to the Java Programming code, submit a report reflecting on this assignment and outlining each implemented function step, including screenshots and error-checking methods.

Paper For Above Instructions

The COVID-19 pandemic has necessitated significant changes in societal operations worldwide, particularly in terms of health management and digital innovation. Within Singapore, the government’s “Circuit Breaker” strategy provided a structured approach to easing restrictions over three phases. This initiative underscored the need for effective digital solutions to facilitate safe management measures across various sectors. In response to these changing circumstances, I have developed a Java application aimed at managing digital solutions that promote safety in operational environments.

The primary objective of this project is to create robust Java classes within an Integrated Development Environment (IDE) that effectively handle data related to digital solutions for safe management. The project comprises three main classes: DigitalSolutionsCategory, DigitalSolution, and DigitalSolutionsManagement.

DigitalSolutionsCategory Class

The DigitalSolutionsCategory class serves as a container for different types of digital solutions. It has a field for the solution category—a string representing the type of digital solution—and an ArrayList to store the digital solutions. The constructor initializes these fields, setting up the framework for managing solutions efficiently.

The class includes several methods, such as:

  • addDigitalSolution: This method is responsible for adding a new DigitalSolution object to the array. It checks for duplicates and ensures that the array is not full before adding a new solution, returning a boolean indicating success or failure.
  • RemoveDigitalObject: This method allows for the removal of a DigitalSolution from the array, making the storage dynamic.
  • getDigitalSolution: This provides easy retrieval of existing solutions, returning null if no solutions are available.
  • getHighestSolutionCategory & getLowestSolutionCategory: These methods will analyze the count of solutions per category, determining which has the highest or lowest representation.

DigitalSolution Class

The DigitalSolution class encapsulates the individual digital solution attributes such as unique ID, name, vendor, and solution category. It contains a constructor that initializes these key properties.

DigitalSolutionsManagement Class

The class that acts as the application’s main driver is the DigitalSolutionsManagement class. This contains an ArrayList of DigitalSolutionsCategory to maintain various categories of digital solutions. The constructor initializes this structure based on predefined categories. Additionally, it handles loading digital solution data from a specified text file, ensuring the application can dynamically access current solutions while also providing user accessibility to add, retrieve, and remove solutions.

Methods within this class include:

  • Insert new DigitalSolution data: This method allows users to add new digital solutions by checking for unique IDs and associating them with their corresponding solution category.
  • Retrieve DigitalSolution information: Users can access critical insights about solutions, including which category contains the most and least solutions.
  • Remove a DigitalSolution: Users can search for and remove any targeted solution from the management system.
  • Exit and Save: This function saves all changes made to digital solutions to the text file before exiting, ensuring that no data is lost.

Error Handling

Throughout the application, I have implemented error-handling measures in relevant methods to account for potential issues such as duplicate entries, the attempt to add to a full array, or searching for a non-existent solution. These measures help to maintain the integrity of the data and enhance user experience.

A report accompanying this development includes detailed documentation of every function implemented, including reflections on steps taken and error checks, framed visually through annotated screenshots.

Reflection

This assignment not only reinforced my understanding of object-oriented programming principles in Java but also provided a practical context to apply theoretical knowledge. The digital solutions development in response to real-world situations, like the COVID-19 pandemic, emphasized the role of technology in enhancing societal resilience and safety.

References

  • Ministry of Manpower. (2020). Safe Management Measures. Retrieved from [https://www.mom.gov.sg](https://www.mom.gov.sg)
  • IMDA. (2020). Digital Solutions for Safe Management Measures. Retrieved from [https://www.imda.gov.sg](https://www.imda.gov.sg)
  • National Trades Union Congress. (2020). COVID-19 Advisory. Retrieved from [https://www.ntuc.org.sg](https://www.ntuc.org.sg)
  • Singapore National Employers Federation. (2020). COVID-19 Safety Guidelines. Retrieved from [https://www.snef.org.sg](https://www.snef.org.sg)
  • World Health Organization. (2020). COVID-19 Strategy Update. Retrieved from [https://www.who.int](https://www.who.int)
  • Harvard Business Review. (2020). How to Manage Your Team During the COVID-19 Crisis. Retrieved from [https://hbr.org](https://hbr.org)
  • McKinsey & Company. (2020). How COVID-19 is Reshaping the Digital Agenda. Retrieved from [https://www.mckinsey.com](https://www.mckinsey.com)
  • Deloitte. (2020). Navigating the COVID-19 Pandemic: A Guide for Employers. Retrieved from [https://www.deloitte.com](https://www.deloitte.com)
  • Gartner. (2020). COVID-19: Implications for Business. Retrieved from [https://www.gartner.com](https://www.gartner.com)
  • Forbes. (2020). How COVID-19 is Changing Business Forever. Retrieved from [https://www.forbes.com](https://www.forbes.com)