This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Cash Register</title> | |
| <script> | |
| </script> | |
| </head> | |
| <body> | |
| <table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package edu.au.scitech.sc2101; | |
| public class IntegerLinkedList { | |
| Node head; | |
| public class Node { | |
| int value; | |
| Node next; | |
| // Constructor for this node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package edu.au.scitech.sc2101; | |
| public class IntegerLinkedList { | |
| Node head; | |
| public class Node { | |
| int value; | |
| Node next; | |
| // Constructor for this node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calculateChange() { | |
| var purchase = document.getElementById('purchase'); | |
| var cash = document.getElementById('cash'); | |
| var change = document.getElementById('change'); | |
| var result = Number(cash.value) - Number(purchase.value); | |
| console.log(result); | |
| change.value = result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| #divCashReg { | |
| float: left; | |
| width: 300px; | |
| } | |
| #divDocket { | |
| border: 1px dashed black; | |
| width: 200px; | |
| min-height: 200px; | |
| margin-left: 300px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DCOTYPE html> | |
| <head> | |
| <title>Test</title> | |
| <script src="js/jquery-1.11.3.min.js"></script> | |
| <script> | |
| function reloadContact() { | |
| // Load all contacts into div2 | |
| console.log(localStorage.contactList); | |
| // It could happen that localStorage.contactList has never been defined. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DCOTYPE html> | |
| <head> | |
| <title>Test</title> | |
| <script src="js/jquery-1.11.3.min.js"></script> | |
| <script> | |
| $(document).ready(function () { | |
| /* | |
| // dynamic-length record, delimiter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DCOTYPE html> | |
| <head> | |
| <title>Test</title> | |
| <script src="js/jquery-1.11.3.min.js"></script> | |
| <script> | |
| $(document).ready(function () { | |
| /* | |
| // dynamic-length record, delimiter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package edu.au.scitech.sc2101; | |
| import java.util.Arrays; | |
| public class SortingUtility { | |
| public static void quickSort(int[] arr, int startIndex, int endIndex) { | |
| System.out.println( Arrays.toString( arr ) ); | |
| int pivotIndex = (startIndex + endIndex) / 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Cash Register</title> | |
| <script> | |
| function calculateChange() { | |
| var purchase = document.getElementById('purchase'); | |
| var cash = document.getElementById('cash'); | |
| var change = document.getElementById('change'); |