TZinovieva

Oscars Ceremony JS

Nov 17th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function oscarsCeremony(input) {
  2.     let hallRent = Number(input[0]);
  3.  
  4.     let statues = hallRent - (hallRent * 30 / 100);
  5.     let catering = statues - (statues * 15 / 100);
  6.     let voicing = catering / 2;
  7.  
  8.     let totalPrice = hallRent + statues + catering + voicing;
  9.  
  10.     console.log(`${totalPrice.toFixed(2)}`);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment