Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 CollectionCreate 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 users 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 CDs Job B information
Job S. on a separate line, display Artist Name: , followed by the current CDs Job D information
Job T. on a separate line, display Year Released: , followed by the current CDs Job F information
Job U. separate this CDs information from the next CDs 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.

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.

![]() |
batch file to delete fold...
|
batch help
|

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