Intro to Programming Test

If you pass this test in Javascript, you do not have to do the Intro to Programming Course which is our pre-requisite for any of our Coding Bootcamps:

Create a simple application which stores a few stock items in data structures representing the menu to display

ID Description Price
1 Coke 12.50
2 Kit-Kat 10.50
3 Coke 9.50

Add an item to your cart by entering the item number - enter 99 to quit and display the invoice:

Let us say we selected item no 2

Displaying your shopping cart:

ID Description Quantity Price Total Price
1 Kit-Kat 1 10.50 10.50

Display the menu again

ID Description Price
1 Coke 12.50
2 Kit-Kat 10.50
3 Coke 9.50

and select item no 2 again


Displaying your shopping cart:

ID Description Quantity Price Total Price
1 Kit-Kat 2 10.50 21.00

Select a few different items and quantities - then enter 99 to quit

Calculate your final invoice and display it


Send your source code to us

Subscribe to our Newsletter for latest news.


If the pdf download does not work, try a different browser

Save as PDF
© 2004+
Back to top