Computing.Net > Forums > Programming > C++ Project Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++ Project Help

Reply to Message Icon

Name: Black_Pelican
Date: January 24, 2008 at 00:39:02 Pacific
OS: Windows XP SP2
CPU/Ram: 3.2 Ghz .98 Gb RAM
Product: Gateway 9310S
Comment:

I am terrible at programming, but am in a high school C++ course. I have scraped my way past quizzes, but will fail the class if I cannot do this project. I have attempted the arrays and file saves, but it is far from complete, and I think I am off track anyway. I would appreciate it if someone could help me.

===========================
Graded Project 4: Catalog Your CD Collection

Create a program that allows users to enter information about a music CD collection and save that information so it can be retrieved later.

* Your program should have a menu system that allows you to enter information about a new CD, save the list to a file on your hard drive, load a list from the hard drive, or print your list to the screen.

* Create a CD class to store information about the CDs. Store the CD Name, Artist Name, and Year Released. These should be private members. Use Class functions to modify the data

* You should use dynamic data to store CDs. Store the information in a linked list and dynamically create a new CD entry every time the user wants to enter new CD information.

* If the user wants to save the file, ask them what they want the name of the file to be and save the file to the hard drive.

* If the user wants to load a file, ask them the name of the file they want to load from the hard drive and let them know if it doesn't exist.

* If the user selects to print the list, the system should print out a list of all the CDs in the collection.

When you are finished:

* Submit the .cpp source file, .exe file and code file to your instructor.
* Put your name in a comment at the top of the file, followed by the name of the program.

Evaluation Criteria

1. The program compiles/builds successfully, runs normally (no runtime errors or unnecessary delays), and exits normally.

2. The program uses a menu with the following choices: enter information about a new CD, save the list to a file on the hard drive, load a list from the hard drive, or print the list to the screen.

3. The program goes into Enter New Data mode at the user's command. It performs the following Jobs (in the order that they are given) and then goes to the main menu.

Job A. display the following text on the screen: CD Name:

Job B. receive input

Job C. display the following text on the screen: Artist Name:

Job D. receive input

Job E. display the following text on the screen: Year Released:

Job F. receive input

4. The program goes into Save to File mode at the user's command. It performs the following Jobs (in the order that they are given) and then goes to the main menu.

Job G. ask the user to enter a name for the new file

Job H. receive input

Job I. place a new file on the hard drive

Job J. use the information from Job H to name the file

Job K. write the entire CD list to the file

Job L. close the file

5. The program goes into Load From File mode at the user's command. Before it can load a file, it must first go into Attempt to Open File mode. If the attempt is not successful, the program informs the user that the file does not exist and goes to the main menu. If the attempt is successful, the program goes to the main menu after performing the following Jobs (in the order that they are given):

Job P. input the entire CD list from the file

Job Q. close the file

6. The program goes into Attempt to Open File mode from Load From File mode. It performs the following Jobs (in the order that they are given) and then returns to Load From File mode.

Job M. ask the user to enter the name of the file

Job N. receive input

Job O. try to open a file for reading, using the information from Job N

7. The program goes into Print the List mode at the user’s command. It performs the following Jobs (in the order that they are given) for each CD and then goes to the main menu.

Job R. on a separate line, display “CD Name: ”, followed by the current CD’s Job B information

Job S. on a separate line, display “Artist Name: ”, followed by the current CD’s Job D information

Job T. on a separate line, display “Year Released: ”, followed by the current CD’s Job F information

Job U. separate this CD’s information from the next CD’s information (to assist the user/reader) by displaying a blank line or by other means

8. The program uses a CD class to store information about each CD. The class stores the CD Name, Artist Name, and Year Released in private members. Class functions are used to modify the data.

9. The program dynamically creates a new CD entry every time keyboard/file input is received for a new CD

10. The program is easy to use.

11. The program does not perform unnecessary tasks.

12. The source code is contained in one file and is not unnecessarily long.

13. The source code utilizes whitespace properly and consistently to enhance legibility.

14. The variable/function/struct/class/object names are chosen and typed/written in a way that clearly explains their purposes. The naming style is consistent throughout the whole program.

15. The source contains effective, consistent comments, especially near any complex or obscure sections of code.

======================================


It is my own stupidity that has gotten me here, I would be grateful if anyone can help.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: January 24, 2008 at 00:45:06 Pacific
Reply:

We can't comment on your code if you don't show it to us.

Also, you're using C++. There's better alternatives to arrays.


0

Response Number 2
Name: Guy
Date: January 24, 2008 at 17:49:33 Pacific
Reply:

Yeah, show us what you have please.

Actually the specification looks OK. I could write from that.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


batch file to delete fold... batch help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ Project Help

C++ project HELP www.computing.net/answers/programming/c-project-help/18663.html

C programming help ? www.computing.net/answers/programming/c-programming-help-/1720.html

c++ program help www.computing.net/answers/programming/c-program-help/5336.html