Jobs Simply

how to write a menu driven program to manage a company database.the items are stored in an array of structure?

the menu should have a list all employees in the array. search for an employee in the aray by ID number and display it if it exists search for an employee in the array by name and display it if it exists calculate the bonus based on job title Promgrammer : 15% of salary clerk: 20%of salary accountant:10%of salary analyst:10%of salary

Public Comments

  1. I would highly recommend you change your perspective on this programming situation. Rather making it "menu driven", make it "object oriented", this way, the menus become a natural aspect of the program. What I mean is that each "thing" in your program is an "object" that represents something in the real, physical world. Each object will have properties, operations and values. For instance, an object called "Employee" can have a "Name", "Address", "Phone" and "EmployeeID", "Salary", etc. These are the properties of the object. The operations would be such things as "Add new employee", "Modify employee info", "Delete employee", etc. The object called "Employee" will have all of these properties and operations built right in to the object. Once you build the object, then it is simple to write menus that will call these different functions. But if you start with your menu or menus, you are stuck with having the menu items determine what will happen, and if a program becomes too large, it is virtually impossible to make sure that every time something needs to be done, it will always be done in the very same manner, if you add procedures under menu items. I would recommend using Visual Basic within Visual Studio under at LEAST .NET 3.0. This is an excellent programming environment, and contains many useful Objects that can be "inherited", modified, and reused. (This is also true of C#, but VB is easier to understand). Good luck.
Powered by Yahoo! Answers