In: Computer Science
Simple, short explanations, please.
A)Why might it be important to add a separator bar to a submenu item in the menu form? When a program has a lot of items for the user to select from, why should you avoid displaying all of the items on one menu?
B) Discuss the importance of GUI guidelines for menus. give an example of messy menus vs. well-organized menus, and how that affects the user experience.
C) Describe the three steps that must be taken when a data file is used by a program, why should a program close a file when it's finished using it?
D) Today, most information kept by companies is stored in databases. When might it be appropriate to use text files? (small amount of data, data needs randomly accessed?)
A)
A separator bar is displayed as a horizontal line between items on a menu
Although separator bars are created as menu controls, they do not respond to the Click event, and users cannot choose them.
B)
C)
First the file must be opened with the open() function.This creates a file object thet you generally assign to some variable.
Then the file object can be processed.This may include reading info from it or writing data to it.
Finally the file is closed with the close() method of the file object.This causes any data in the buffer to be written to the file and the connection between the file and the program to be broken.
If your program does not close the file, some of the data that you thought was written to the file on disk was not actually writtenA programmer must close the file when it is finished using it because in some systems failure to close an output file can cause loss of data. When it closes it fully disconnects from the file.
D)
It might be appropriate to use text files for storing unstructured data and for storing arbitrary, probably unrelated data .