Machine Problem

Write a program  that will count how many one thousand, five hundred, two hundred, one hundred, fifty and twenty bills based on Philippine money currency denomination in the amount of 10950.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.


Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================



You can buy my C++ book online at  



Beginner’s Guide To C++ Programming
You can buy my book in introduction to computer networking at https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking Want to support my channel? GCash Account Jake Pomperada 09173084360 Paypal https://paypal.me/jakerpomperada Patreon https://www.patreon.com/jakerpomperada Thank you very much for your support.
Program Listing
/* money.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 17, 2022  10:04  PM  Sunday
   Bacolod City, Negros Occidental
*/

var amt  = 10950;  
var given_amt = amt;

var thousand   = 0;  var five_hund = 0 ; 
var two_hundreds  = 0; var hundreds  = 0; 
var fifty   = 0; var twentys = 0;

thousand = amt/1000;
amt = amt%1000;
five_hund = amt/500;
amt = amt%500;
two_hundreds = amt/200;
amt = amt%200;
hundreds = amt/100;
amt = amt%100;
fifty = amt/50;
amt = amt%50;
twentys = amt/20;
amt = amt%20;

console.log();
console.log("\tDisplay Report\n")
console.log("\tThe given amount      : PHP " + given_amt  + "\n");
console.log("\tNumber of 1000 Notes  : " + Math.floor(thousand));
console.log("\tNumber of 500 Notes   : "  + Math.floor(five_hund));
console.log("\tNumber of 200 Notes   : "  + Math.floor(two_hundreds));
console.log("\tNumber of 100 Notes   : "  + Math.floor(hundreds));
console.log("\tNumber of 50 Notes    : "   + Math.floor(fifty));
console.log("\tNumber of 20 Notes    : "   + Math.floor(twentys)  + "\n");
console.log("\tEnd of Program\n");