Jump to content

Algorithm

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts
Consider a pharmacy and its stock of products ( medicamentos, cosméticos e de higine pessoal ). Products of the three categories are properly acquired or sold. A clerk checks the availability of a product and its price. You can also sell it in a number of units. The manager can make records of entry and low can the stock of each product. Model and behavior of stock through a set of operations given in the format:

<name>(<types-of-parameters>):<type-of-result>

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What's your question?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts

WingedPanther said:

What's your question?

Create the behavior of stock through a set of operations given in the format:
<name>(<types-of-parameters>):<type-of-result>

The operations of clerk and the manager

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
This is clearly a homework question, since the phrasing of the question is NOT part of any standard analysis I'm familiar with. So, what part of it are you having difficulty with?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts

WingedPanther said:

This is clearly a homework question, since the phrasing of the question is NOT part of any standard analysis I'm familiar with. So, what part of it are you having difficulty with?

Please give me an example to try to resolve

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I am willing to do one of the following:
1) review a possible solution and offer feedback
2) answer a specific question about an aspect of the problem (such as clarifying the question)
3) engage in a discussion to help you clarify the problem.

Something that might help is if you explained what this means: "<name>(<types-of-parameters>):<type-of-result>" It is not standard terminology, so is probably something you've been taught about.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts
How do I make an algorithm for this problem is not of the form:

<name>(<types-of-parameters>):<type-of-result>

#8
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Can you give an example of what the form looks like? You could be talking about a function declaration, for example, but it's not clear.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#9
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts
How I can creat a function to operations of clerk and manager

#10
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Apprentice, do you understand what is being asked for in the original problem? Can you restate it, paraphrase it, or otherwise reword it?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog