> a program that automates actions between parties when conditions are met
Smart contracts do not actually contain legal language, terms or agreements. It is just code that executes when conditions are met.
Smart contracts are stored inside a Blockchain
It does transactions automatically without needing a. When you input the correct amount of money into a vending machine, it will dispense the product you want. If you don't put in enough money, the machine will not dispense anything.
If a person does not have enough balance in their account to purchase something, the smart contract will not allow any transactions to take place.
The minus function(minus) subtracts 1 from your balance.
The restart function restarts your balance from 0 by multiplying your balance with 0.
Does calculations to your balance:
addition, subtraction , doubling, halving and restarting
Can be used for counting without any specificity(for example people):
Transport Business: counting passengers onboard a vehicle.
Theater: counting filled and unfilled seats.
Events, school, zoo.
Asks for input in the form of a number and a word, then stores that input as well as displays it.
The Word function asks for a text(called a string in code) as input, then stores the value in the variable "text" and displays it.
The New_word function asks for another text(string) as input, stores it in "ntext"(new text), then replaces the value in "text" to the one in "ntext".
Can be used for inventory management:
Shipping companies- counting the amount of products being shipped.
Grocery stores- counting the amount of products they have left.
Bakeries, Cafes, online shopping platforms, and schools.
Asks for name and balance of users and stores the data structurally(like an account). When a user id is inputted, the balance will be displayed. A user can also update their balance, as well as remove their account(name and balance). It also counts the number of accounts that have been made.
The recount_money function changes the balance of an account by asking for their user ID & balance to be inputted, then it stores it in "_money". The old balance in "money" will be replaced with the new balance in "_money".
The count_players function counts the number of accounts made using the .length extension. This built-in function counts the number of variables stored in clients.
For making accounts in organizations:
School: a student account to store student info such as grades and class schedule.
Club: a membership account to store required payments and benefits.
Bank, Government Services (applying for work permit, residence card), streaming service (Youtube, Bilibili, Netfli)