Answer and Explanation:
Using JavaScript:
/* program should take N input which represents the dollar amount and output how many chocolate bars and how many coupons we have*/
function chocolatebar(dollars){
var dollaramt= dollars;
var i;
for(i=0; i <= dollaramt; i++){
i=i+6
?
Alert ("you have 1 extra chocolate bar");
:
Alert ("keep buying chocolate bars to get more coupons for a bonus chocolate bar")
}
}
*
D pac man im hope im right
To review a printout of a table before printing, on the FILE tab, click print, and then click print preview. By doing this, you can check, evaluate and do some modifications or changes on your files before having a hardcopy or printouts.