This website uses cookies to ensure you have the best experience. Learn more

Dvd Collection Organizer Code Explained Essay

1822 words - 8 pages

I. Overview

DVD Collection Organizer

A DVD collection organizer is a storage of information of DVDs you own. It allows you to keep track of your complete DVD list and gives you an easy way to access every information you need to know about your DVD. It helps you track where your DVDs are, where it came from, how much it costs, the date you bought it, the date it was released, the actors and actresses and the genre of the movie.

The creation of this DVD organizer is given as a Machine Problem for CS 11 students of the academic year 2009-2010, 2nd semester, handled by Sir Michael T. Echavez. It is an application of the concepts learned in CS 11 programming such as: ...view middle of the document...

int List(int num);
- A function that displays the complete list of DVDs by title.
int ClearAll(void);
- A function that deletes all DVD from File and from the list. It also resets the number of DVDs entered. It returns 1 for successfully reset DVD organizer and -1 if unsuccessful.
void sort(int num);
- A procedure that sorts DVDs by title.
int dateValid(char date[]);
- A functions that checks the validity of a date. The year could be any four digit number, except 0000. The month ranges from 1-12 . The day must really exist during the month – may be 28, 29, 30 & 31 (depending on the month).
int convertday(char num[]);
- A function that combines the one’s and ten’s digit entered in the day field into single integer.
int convertyear(char num[]);
- A function that combines 4 digit entered in the year field into a single integer.
int contains1(char temp[], char orig[]);
- A function that checks if a string is a substring of the other, but before doing so, changes both strings to lowercase letters.
int cont(char temp[], char orig[]);
- A function that similarly works like contains1, but unlike contains1 it changes both strings to capital letters.
void Tosmall(char * lower);
- A procedure that changes all capital letters in a string to small letters
void Tobig(char *upper);
- A procedure that changes all small letters in a string to capital letters

III. Summary of Algorithm used and Implementation

Soon as the user opens the program, he will be faced with options he can do with the DVD organizer. They are: A- add, S-search, V-view, T-view total, E-edit, D-delete, R-delete all and Q-exit. When one enters a letter that is not among the options, an invalid message is displayed and will go back to main menu. Every time it goes back to main, it clears the screen and opens the file NumOfDvds.bin to check the status of the total count of DVDs.

When one wishes to do something that is among the options, the program first checks the status of the variable ‘check’. As long as it has the value of one(1), the program will run. But if it encounters a problem, it returns a negative one(-1) or two (-2), the program will stop.

A. Add DVD

When one chooses to add a DVD, he will be asked to enter the title, genre, actors, actresses, date of release, date of acquisition, price, location and notes of the DVD. Every time, the user leaves a field blank, an invalid message that reminds the user that “all fields are required” is displayed.

Among the fields, only the dates check the validity of the user’s input. First, it checks the format and must follow YYYY-MM-DD. Then it checks if the year is valid and not equal to 0000. The month is then checked and must range from 1-12 only. And last the date must correspond to the number of...

Other Papers Like Dvd Collection Organizer Code Explained

Decision Support System Essay

2304 words - 10 pages produces the output that the source code would produce if it were compiled and executed immediately. c. Utility software: It expands the performance of the OS by adding functions that are not part of the original OS. They perform jobs such as trouble shooting hardware, file conversions, defragmenting, data compression etc. 2. Application Software: This software is collection of programs that actually process data to generate information

Computer Generations Essay

1112 words - 5 pages resources of an organization in an effective and efficient manner. According to Mary Partner; Management is the art of getting things done through people. Generally; Definition of Management can be explained in multi-dimensional process because it is defined in different aspects like; Management as a process is the action of managing or process collection of activities or series of which make things happen for work for other. Management as a

Pc and Industry

3477 words - 14 pages application software. (Jessup and Valachich, 2008). The various input, processing and output devices are explained using a hypothetical two year old used HP Compaq small form factor (SFF) desktop-d530 and an HP L1530 LCD monitor. Hardware and software specifications The above hypothetical advertisement is of a two year old used desktop for sale found in the classifieds; the HP Compaq d530. The analysis of the various hardware and software

Code of Ethics

1673 words - 7 pages Ethics is to aid and encourage the members to effectively provide extraordinary Christian counseling to their clients. In doing this, “the primary goals of the AACC- to bring honor to Jesus Christ and his church, promote excellence in Christian counseling, and bring unity to Christian counselors” (AACC Code of Ethics, 2004) can be accomplished. The ACA Code of Ethics is explained through five key purposes. These purposes include ethical

Online Piracy

4125 words - 17 pages were being switched daily. This essay will look at the rise of Pear to Pear (P2P) software programs. It will also look at phenomenal rate at which internet piracy has grown and how it has brought a multi billion dollar industry to its knees. This essay will be comprised of 3 sections. First the evolution of internet piracy and will be explained and how the technology works. This section will look at the rise and fall of the Napster software and

345 Lab 4

7461 words - 30 pages nfsen:nfsen /usr/local/nfsen cd etc nano nfsen.conf Change the following lines: $USER=”nfsen” $WWWUSER=”nfsen” $WWWGROUP=”nfsen” %sources=( # For each router, enter the following line: ‘[ROUTERNAME]’ => { ‘port’=>’[PORT NUMBER]’, ‘col’=> ‘#[COLOR CODE]’, ‘type’=>’netflow’}, ); Run the following commands as the root user: cd .. ./ /usr/local/nfsen/bin/nfsen start Troubleshooting: Problem: Not all of the

Electronic Journalism

1477 words - 6 pages uses include interviews, panel discussions, press conferences and speeches. Live television and pre-recorded video is also used in news coverage of accidents, natural disasters and war coverage. Newspapers are also using video journalism online. Technical standards for video journalism The National Archives of the United States holds a collection of some of earliest examples of historically significant motion picture films for the country and

Hello World

882 words - 4 pages "Hello World" redirects here. For the Iamus (computer) composition, see Hello World! (composition). For the 2009 compilation album by Michael Jackson, see Hello World: The Motown Solo Collection. For the song by Lady Antebellum, see Hello World (song). A GUI "Hello World" program, written in Perl It is possible to execute unsigned code on Sony's PlayStation Portable. A light-programmable biofilm displaying the Hello World message

Ethics and Compliance Paper

1224 words - 5 pages Ethics and Compliance Paper In today’s business market, the role of compliance and ethics are very important. In Johnson and Johnson company ethics and compliance is very vital for their entire company with in the United States and around the world. Johnson and Johnson have a well written business code of conduct and ethics for directors and executive officers. Compliance with the government rules and regulations within the United States and

Business Research Methos

3560 words - 15 pages permission of Pamela S. Schindler ©2008. Akron Children’s turned to long-time research and communication partner, Marcus Thomas LLC, for insights and recommendations. As the firm’s vice president and director of research, Jennifer Hirt-Marchand, explained, “Akron Children’s had Business Research Methods, 10/e, Cooper/Schindler 1 Akron Children’s Hospital, Part A limited understanding of how parents arrive at the difficult decision

Unit 4 Task Sheet

1601 words - 7 pages Unit 4: Business Communication Unit code: H/502/5413 QCF Level 3: BTEC National Credit value: 10 Guided learning hours: 60: 10 Guided learning hours: 60 Aim and purpose The aim of this unit is to show learners that the collection and management of business information, and the successful communication of that information throughout a business, is critical for the future prosperity of the organisation. Unit introduction A business

Related Essays

Choosing The Best Sound Format For Production

1753 words - 8 pages Choosing the Best Sound Format for Production There are many issues facing an audio professional who is considering getting into surround production, either for music, film, DVD, Internet, or multi-media. Whether you are recording, mixing, editing, or mastering, there is a lot of information that you need to be comfortable with before you can succeed in surround sound. Although this

Operating System Document Essay

3719 words - 15 pages / Serial Numbers / CD Key), Passwords Recovery. * Hardware Inventory: Motherboard, CPU, Sensors, BIOS, chipset, PCI/AGP, USB and ISA/PnP Devices, Memory, Video Card, Monitor, Disk Drives, CD/DVD Devices, SCSI Devices, S.M.A.R.T., Ports, Printers. * Network Information: Network Cards, Network Shares, currently active Network Connections, Open Ports. * Network Tools: MAC Address Changer, Neighborhood Scan, Ping, Trace, Statistics

Operations Management Essay

3568 words - 15 pages maintained at a constant level, and the organization must manage the consequential issues for the service quality (Johnston & Clark 2001, p.178). As have explained, the fluctuation of demand is ignored and there are always four staff members in the library. Under this strategy, several approaches may be adopted (Johnston & Clark 2001, p.179-180):Promoting off-peak demandFrom the table of charge, it can be known that different code color of

The Art Of Life! Essay

994 words - 4 pages Assistants (PDAs) | | |ASDL, broadband. | |Storage media, for example, DVD minidisk | | | | |Touchscreen technologies