sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx -y
sudo apt-get install libnginx-mod-rtmp -y
| /* Desc: Design a cash register drawer function checkCashRegister() that accepts purchase price as the first argument (price), | |
| payment as the second argument (cash), and cash-in-drawer (cid) as the third argument. | |
| The checkCashRegister() function should always return an object with a status key and a change key. | |
| Full description at => https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register/ | |
| */ | |
| function checkCashRegister(price, cash, cid) { | |
| var change = cash - price; //change due | |
| let totalCash = 0; //variable to hold total cash in register |
| #include<iostream.h> | |
| #include<fstream.h> | |
| class Inventory{ | |
| public: | |
| char Prouduct_id[5]; | |
| char Prouduct_name[10]; | |
| char Prouduct_ammount[5]; |