winzip icon


Submitted on: 7/28/2018 8:52:49 PM
By: Francisco Antonio de Araúo e Souza  
Level: Advanced
User Rating: Unrated
Compatibility: VB 6.0
Views: 2431
author picture
     'OBJECTIVE: Demonstrate how a procedure and a function operate arrays     'AUTHOR: Prof. Dr. Francisco Araújo     'DATE: Fortaleza (CE), July 28, 2018     'LOCAL:: Brazil, Ceará, Fortaleza.     'DESCRIPTION: The CALCULATE procedure is executed and calls the STATISTICS function, passing the     'input matrix: 2011, 0.5, 2012, 0.7, 2013, 0.9     'The STATISTICS function verifies that the input array you received from the CALCULATE procedure is an array:     'else: return error message (a string) to the CALCULATE procedure.     'if yes: show the received data:     'the input matrix: 2011; 0.5; 2012; 0.7; 2013; 0.9     'processing this data from the input matrix,     'generate the output matrix and return it to the CALCULATE procedure.     'The CALCULATE procedure checks whether the return of the STATISTICS function is a string (the error message):     'if yes: show the error message and finish.     'else: show the return data of the function STATISTICS:     'the output matrix: 1; 1; 2; 1.4; 3; 1.8; 4; 1.5; 5; 2.1     'and finalize. 'OBJETIVO : Demonstrar como uma procedure e uma function operam matrizes 'AUTOR : Prof. Dr. Francisco Araújo 'DATA : Fortaleza(CE), 28 de Julho de 2018 'LOCAL: : Brasil, Ceará, Fortaleza. 'DESCRIÇÃO : A procedure CALCULAR é executada e chama a function ESTATISTICAS passando a ' matriz de entrada : 2011, 0.5, 2012, 0.7, 2013, 0.9 ' A function ESTATISTICAS verifica se a matriz de entrada que recebeu da procedure CALCULAR é um array: ' senão: retornar mensagem de erro (uma string) à procedure CALCULAR. ' se sim: mostrar os dados recebidos: ' a matriz de entrada: 2011; 0,5; 2012; 0,7; 2013; 0,9 ' processar esses dados da matriz de entrada, ' gerar a matriz de saída e retorná-la à procedure CALCULAR. ' A procedure CALCULAR verifica se o retorno da function ESTATISTICAS é uma string (a mensagem de erro): ' se sim: mostrar a mensagem de erro e finalizar. ' senão: mostrar os dados de retorno da function ESTATISTICAS: ' a matriz de saída: 1; 1; 2; 1,4; 3; 1,8; 4; 1,5; 5; 2,1 ' e finalizar.
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

8/4/2018 1:47:56 AMEpiscopal

Na opinião do senhor, o vb6 vai até onde?
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.