Program to register products and save in a text file

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.

Program to register products and save in a text file

Postby zygor07 » Fri Nov 06, 2015 6:15 am

This week I have to make a program in Lisp that register a product by name, category and code, then save it in a .txt file.

The program must have a menu with options. The options are:
1. Create a product
2. Delete
3. Search by name
4. Search by category
5. Search by code
6. List sorted by name
7. List sorted by category
8. Save (must save in a txt. file using File I/O)

What I tried was create a list, then the user put the data (name, category and code). the program have to verify if the list already have the product, if doesn't, create it.
I don't how to use list functions, cause this is my first week learning this programming language, and my professor doesn't explain as well.
I need help to organize the list with products, cause I have no idea how to do search or list sorted by name or category. And I don't as well how to save in a txt file.
Posts: 1
Joined: Fri Nov 06, 2015 6:02 am

Return to Homework

Who is online

Users browsing this forum: No registered users and 2 guests