There are some security holes in the organisation and it is the responsibility of the security experts
Question:
There are some security holes in the organisation and it is the responsibility of the security experts to fix these. However, you are hired as a python programmer for this organization, and you have been asked to create a simple inventory management system for the company. You have to prepare a console from which the company can manage the costing of different gadgets and the cyber professionals hired. The console will have the following options:
- Enter Personal Data:
- You should be able to add name, phone number and designation of the hired cyber professionals.
- You must save the details entered from the prompt and then display it back to the screen.
- Perform the task for at least 3 employees. Display the information in any systematic manner. It can be done by using list, tuple, file operation or dictionary.
- Salary Calculator
- Your program should be able to take as input hourly wage and total hours worked, and then print the total salary for the month considering the employees taken as input.
- Gadget Inventory
- Your program should be able to show the current status of the inventory for each gadget (Router, Switch, Laptop, Mainframe) and update these numbers as entered by the user. Sample input/output:
Inventory: 3 Routers, 2 Switches, 16 Laptops, 1 Mainframe
What do you want to add? Press "R" for router, "S" for switch, "L" for Laptop, "M" for Mainframe.
>>> R
>> How many routers do you want to add?
>>> 2
>>> Gadget Inventory Updated. Inventory: 5 Routers, 2 Switches, 16 Laptops, 1 Mainframe
- Gadgets Cost Calculator
- Your program should be able to take as input the price of an item and the number of items needed, and print the total cost.
- Exit
- Choosing this option will end the program.
You can follow the below steps to complete this task:
- Create a menu using if-else for the mentioned options.
- Use a function called main () within which this menu will be declared.
- Define functions for each of these options. The options will work once the correct number is entered through if-else statement.
- Call main() at the end of these functions so that the main menu is shown after each of the operations (unless it is "Exit").
- Use lists to save the data. You may need "list of lists" but how you design the program is up to you.
- Provide inline comments wherever necessary.
Create a small user manual program for this task.
International Marketing And Export Management
ISBN: 9781292016924
8th Edition
Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr