Sales Tax Calculator

 

7 points

 

Introduction

This app helps the user calculate the cost of a purchase. The app asks for the item being purchased, its price and the sales tax rate. The app then calculates and displays the total cost of the item.

This app uses 'prompt' to get information from the user; for example: var item = prompt("What are you buying?");

This app also does some math. Values that 'prompt' returns are strings, and they can be converted to numbers by using 'eval';
for example: var priceNum = eval(price);

Here is a link to the App Lab documentation:

prompt

 

Video

The video shows what a completed app should do.