This python program must be created using modular programming techniquesonly No

This python program must be created using modular programming techniques only. No data structure functions can be used. (Import OS and Date-Time module needs to be used.) Provide explanation QUESTION 1 The Department of Health in your state needs a computer program to manage the inventory of PPEs that it receives from multiple suppliers and distribute them to the hospitals that it manages. List of PPE items the department receives are listed in Table 1 below: Task: a) All items and its details need to be recorded in ppe.txt file. The details for each item should include item code, supplier code, and quantity in stock (measured in the number of boxes). Other relevant details can also be recorded. - All PPE items are measured in boxes, i.e., they are received, recorded and distributed in boxes. - Each item is supplied by exactly one supplier. However, one supplier can supply more than one type of item. - Assume that there should be a minimum of three hospitals in your state. b) The program should have a feature for the user to update the item quantities every time after receiving from suppliers (increase in quantity) or distributing to the hospitals (decrease in quantity). You should record the details of all the updates in a text file transactions.txt. Details of transactions (i.e. items received and distributed) should include item code, supplier code/Hospital code, quantity received/quantity distributed, and date-time. c) Details of suppliers need to be stored in suppliers.txt file. d) When testing the program, you should perform adequate updates on each item. This is to prove whether the feature is correctly functioning. e) Before distributing any item to hospitals, the program should check for the available quantity in stock. The user needs to be notified if the quantity in stock is insufficient. The program should also indicate the current quantity in stock for the user to retry with the appropriate quantity. f) The program should have a feature to create hospitals.txt file for storing and updating hospital details. Include the hospital code for each of them. You can only have 3 or 4 hospitals. g) Record all updates in the transaction txt file. The program should have options to track items and print: a) Total available quantity of all items sorted in ascending order by item code. b) Records of all items that have stock quantity less than 25 boxes. c) Track available quantity for a particular item. d) Track item received during a specific time period (startDate to endDate) Important Note: i. Inventory creation should be done only once and during the very first time the program is executed. The initial quantity of each item needs to be recorded as 100 each in ppe.txt file during this time. The program should prompt for all inputs for creating this file. ii. You can only have 3 or 4 suppliers. You should not include supplier details in ppe.txt file. Only the supplier code needs to be stored in ppe.txt file. iii. The program should have a feature to create suppliers.txt file for storing and updating supplier details. The main program menu should have the following options: Transaction Menu: A) Modify (Add, Delete) B) Print Transaction C) Search in transaction Inventory Menu: A) Modify (Add, Delete) B) Print the latest inventory C) Search in inventory Supplier Menu: A) Modify (Add, Delete) B) Print supplier list C) Search supplier list Hospital Menu: A) Modify (Add, Delete) B) Print Hospital List C) Search hospital list

This python program must be created using modular programming techniques only. No data structure functions can be used. (Import OS and Date-Time module needs to be used.) Provide explanation

QUESTION 1
The Department of Health in your state needs a computer program to manage the inventory of PPEs that it receives from multiple suppliers and distribute them to the hospitals that it manages. List of PPE items the department receives are listed in Table 1 below:

Task:
a) All items and its details need to be recorded in ppe.txt file. The details for each item should include item code, supplier code, and quantity in stock (measured in the number of boxes). Other relevant details can also be recorded.
– All PPE items are measured in boxes, i.e., they are received, recorded and distributed in boxes.
– Each item is supplied by exactly one supplier. However, one supplier can supply more than one type of item.
– Assume that there should be a minimum of three hospitals in your state.

b) The program should have a feature for the user to update the item quantities every time after receiving from suppliers (increase in quantity) or distributing to the hospitals (decrease in quantity). You should record the details of all the updates in a text file transactions.txt. Details of transactions (i.e. items received and distributed) should include item code, supplier code/Hospital code, quantity received/quantity distributed, and date-time.

c) Details of suppliers need to be stored in suppliers.txt file.

d) When testing the program, you should perform adequate updates on each item. This is to prove whether the feature is correctly functioning.

e) Before distributing any item to hospitals, the program should check for the available quantity in stock. The user needs to be notified if the quantity in stock is insufficient. The program should also indicate the current quantity in stock for the user to retry with the appropriate quantity.

f) The program should have a feature to create hospitals.txt file for storing and updating hospital details. Include the hospital code for each of them. You can only have 3 or 4 hospitals.

g) Record all updates in the transaction txt file. The program should have options to track items and print:
a) Total available quantity of all items sorted in ascending order by item code.
b) Records of all items that have stock quantity less than 25 boxes.
c) Track available quantity for a particular item.
d) Track item received during a specific time period (startDate to endDate)

Important Note:
i. Inventory creation should be done only once and during the very first time the program is executed. The initial quantity of each item needs to be recorded as 100 each in ppe.txt file during this time. The program should prompt for all inputs for creating this file.
ii. You can only have 3 or 4 suppliers. You should not include supplier details in ppe.txt file. Only the supplier code needs to be stored in ppe.txt file.
iii. The program should have a feature to create suppliers.txt file for storing and updating supplier details.

The main program menu should have the following options:
Transaction Menu:
A) Modify (Add, Delete)
B) Print Transaction
C) Search in transaction

Inventory Menu:
A) Modify (Add, Delete)
B) Print the latest inventory
C) Search in inventory

Supplier Menu:
A) Modify (Add, Delete)
B) Print supplier list
C) Search supplier list

Hospital Menu:
A) Modify (Add, Delete)
B) Print Hospital List
C) Search hospital list


 
Solved By Verified
Study Co-Pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.

 
Instant
Download

Student review: (4 ratings) 4 out of 4 people found this solution helpful.