Overview: This web-based JavaScript calculator helps prospective customers to estimate their monthly subscription rate for an online software service.
Use Case:
1) Customer visits web site and clicks on “Pricing Estimator??. (completed)
2) Customer views pricing table (see Figure 1 for example)
3) Customer enters estimated number of customers and presses “Estimate Now?? button.
4) Monthly and Annual estimates are calculated in JavaScript and displayed without posting back to server.
Figure 1
Number of Cost per customer
Customers
500 1,000 $0.50
1,000 2,500 $0.40
2,500 10,000 $0.30
10,000 25,000 $0.20
25,000 50,000 $0.10
50,000 100,000 $0.05
100,000+ $0.01
Estimate your cost per month.
Enter number of customers here
[12000 ] (Input Text box)
["Estimate Now" Button]
Your cost per month would be: $3,750.00
Annual Cost: $45,000.00
Requirements:
• The JavaScript must declare a matrix array or objects that define the lower and upper customer bounds and cost per customer.
• This matrix (or objects) must be easily updated or modified by a product manager to have more or fewer pricing tiers (direct update of JavaScript file is sufficient).
• The initial matrix values are defined in Figure 1. An Excel spreadsheet named [login to view URL] is provided.
• The first 1,000 customers are calculated at $0.50 per customer. The second 1,000 customers are calculated at $0.40 per customer and so on.
• All currencies are calculated and displayed in US Dollars.
• The HTML table must be dynamically rendered based on the matrix array.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
4) Physical Files to be Delivered:
[login to view URL]: This javascript file contains all necessary arrays and functions to calculate pricing and dynamically update an HTML page.
[login to view URL]: This HTML file
• Dynamically displays a product pricing table
• Provides a textbox input for entering estimated number of customers
• Provides a button for calculating price
• Calls a function in [login to view URL] to estimate price and dynamically display monthly and annual estimates.
## Platform
DHTML may use combination of Javascript, CSS, DOM, and HTML.
Must support multiple browsers:
IE4+
Nav4+
Firefox
Safari