This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
create an admission program to calculate the aggregate score | |
AND TELL THE STUDENTS, THE FACULTY AND DEPARTMENT, HE OR SHE IS LIKELY TO BE ADMITTED TO | |
CRITERIA | |
DS - name, math_score, english_score, scores | |
0 - 49 -no admission | |
50 - 54 -agriculture DEPARTMENT | |
55 - 60 -botany | |
61 - 70 -psychology and statistics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* this file includes both a node.js script for creating a keypair | |
* as well as the client code for using it | |
*/ | |
/* createKeypair.js */ | |
const fs = require('fs') | |
const anchor = require("@project-serum/anchor"); | |
const web3 = require('@solana/web3.js') | |
const account = anchor.web3.Keypair.generate(); |