Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Title:BBQ MANAGEMENT SYSTEM IN C
My professor told me to put
Menu: including drinks, foods and etc.
Sales Report
Exit

What I have tried:

I am trying to solve the problem but I really can't
Posted
Comments
Rick York 25-Apr-24 2:35am    
I probably can but this isn't my homework.

Let's talk about what the question is really asking you for, and why your question is impossible to answer as it currently reads. To go back to basics, a flowchart is a series of steps showing that you can break a "big" problem into small, logical steps that take you from the start to the end of a process. So, the first thing you need before you can create a flowchart is a process that can be broken down. This is the reason that this question can't be answered as it stands; there's no process. All you have done is type in some items down, and they don't appear to be related to each other.

So, what would a suitable thing for a flowchart be? When I used to teach computer science, I always gave people the cup of coffee problem to solve as it was a great way to decompose problems down into something that could be represented by a flowchart. So, what is the cup of coffee problem? Imagine you want a cup of coffee. Describe the steps in making that cup of coffee.

Most people start with something like:

Boil the water in the kettle
Put coffee in the cup
Pour water in the cup
Put milk in the cup
Put sugar in the cup

You might think that's enough to solve the problem, but it makes a lot of assumptions. When you start to break those assumptions down, you find there are decisions that you are making; as this is something you do everyday, it's a habit so you don't think about it, but there is a simple logical flow of operations and decisions.

Let's start with the first one. Boil the water in the kettle. Well, this is making assumptions that the kettle already has water in it. So, you have a decision point here:

Does the kettle have water in it?
Yes - boil the kettle
No - fill the kettle with water, then rejoin the flow at boil the kettle.

However, there are (again), further ways to break this down. In the fill the kettle with water stage, that can be broken down to something like:
Turn on the tap.
Check the level of water in the kettle.
Does the kettle have enough water in?
No - go back to the process where you check to see if the kettle has enough water in.
Yes - switch off the tap
Rejoin the flow at boil the kettle.

You aren't going to exit this process until you have enough water in the kettle because that No will keep you in a loop until you satisfy the condition for the Yes.

And that's how you build a flowchart. You take big problems and you break them down until they can't really be broken down any more. Now, why don't you take what your professor asked you and do what I've just talked you through?
 
Share this answer
 
The work description is either very incomplete and some things don't seem to fit together properly. The current description contains the following:
Title:BBQ MANAGEMENT SYSTEM IN C
My professor told me to put
Menu: including drinks, foods and etc.
Sales Report
Exit

I have trouble solving my flowchart.
I am trying to solve the problem but I really can't .

Can anyone help my flowchart?

On the one hand there seems to be a "BBQ MANAGEMENT SYSTEM IN C" to be developed, on the other hand there are several references to a flowchart. The question also refers to a flowchart. However, the article is tagged as "C".

Should both a flowchart be developed and a C program be written, or is there a C program for which a flowchart is to be developed?

The abbreviation BBQ stands for Barbecue? A cooking method for large pieces of meat does not fit well with the input of a menu with drinks, foods etc.. The indication that a sales report and exit should also be included leads me to assume that a menu should be programmed in C first, which allows the selection of options.

So should the flowchart graphically represent the menu?

What does "I really can't" mean then? What exactly can't you do here? Is it a comprehension problem, a graphical problem, a programming problem, or something else?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900