Question: Write a javascript program in an HTML page that takes three inputs: 1) the number of kids in your party, 2) your budget for buying
Write a javascript program in an HTML page that takes three inputs: 1) the number of kids in your party, 2) your budget for buying balloons, and 3) the price of each balloon, and shows one of these two possible messages: 1) you can buy at least one balloon per kid, or 2) you can not buy at least one balloon per kid. Basically, your program will decide based on your budget and balloon price, whether or not you can buy at least one balloon per kid.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
