Sunday, December 2, 2018

Recursive, Function, and Cloud


Function Definition:
Function Structure
 return-value-type  function-name( parameter-list )
 {
   statements;
 }

return-value-type:  
data type of the value returned
If not filled, then default data type will be used (default integer)
If return-value-type is void then the function will not return value
Parameter-list: list of value sent from the function initiator (user)



Recursive Definition:

Recursive is a function call inside a certain function calling itself
Recursive Function is suitable for recursive problem
Example :
 Factorial (n) or n! defined as follows :
 n! = 1, for n = 0;
 n! = n * (n-1)!, for n > 0
 4! = 4 * 3!
 3! = 3 * 2!
 2! = 2 * 1!
 1! =  1* 0!
 0! =  1
 Trace back : 4! = 1*2*3*4 = 24

Cloud Definition:
Cloud is an online-based storage used by user to store their data. There are 2 types of data
storage consist of offline-based storage and online-based storage. The examples of Cloud
storage company is iCloud, Microsoft OneDrive, Google Drive, and many more. In Cloud 
storage, there are Software as a Service (SaaS), Platform as a Service (PaaS), and
Infrastructure as a Service (IaaS).

No comments:

Post a Comment