Hi all! First of all I apologize if I am on a wrong forum but I am using this forum first time.
I am new to this field and I have a big problem. I take a class for pseudocode and I have an assignment to create a program that will manage a recipe collection. The last 7 weeks we were working with modular processing and the last week we learned a little bit about object-oriented programs. I still do not have feedback from the professor for that OOP assignment and I am not even sure if I got it right. Meanwhile I have to create this program and make a combination of both oop and modular procesingg. Based on my knowledge till now I started creating a modular processing but I always get stuck when I think about how to include OOP too.
So, I have a Recipe Collection that contains recipes which belong to 8 different categories(appetizers, soups, salads, main dishes, side dishes, deserts, beverages, uncategorized). The actions included in this program would be Add new recipe, Find a recipe, Remove a recipe, and maybe List all recipes. I have so many ideas how to do this and I end up confused. Please I need guidance how to start. Should I create classes and subclasses first or should I use arrays and sequential files? Please help as soon as possible. Thank you!
mima79
0
Newbie Poster
Recommended Answers
Jump to PostThis is called "functional decompisition" - breaking the problem down into understandable chunks. Using pseudo-code is good for this. The approach to solving this problem in particular can be functional, or class-oriented. First, think about the problem domain, and then determine which approach fits best. FWIW, sometimes it is a …
Jump to PostYou have not operations to handle persistence through class, so I would modularize out the persistence and user interface and use OOP as 'type definitions for recipe objects' to use as any normal type in program.
All 5 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
mima79
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
mima79
0
Newbie Poster
mazharul41
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.