<commit_before>04/09/14 https://www.edmodo.com/post/292605355

Summary
-------

***Max:*** *30 mins*

Write 4 separate programs:

    1. add 2 input numbers & display
    2. subtract 2 input numbers & display
    3. multiply 2 input numbers & display
    4. divide 2 input numbers & display

Use of %d and %f in printf is mentioned.

Told to write in C on [ideone.com](http://www.ideone.com).


Write-up
--------

lol, it took me like 45 mins -- but I did do all this, plus I used a Makefile
and stuff as well :D

cba to do 4 programs, so I stuffed them all into one and added a 'random'
operator too. case statements, woohoo!


Assignment turn-in description
------------------------------

<commit_msg>add assignment turn-in description<commit_after>04/09/14 https://www.edmodo.com/post/292605355

Summary
-------

***Max:*** *30 mins*

Write 4 separate programs:

    1. add 2 input numbers & display
    2. subtract 2 input numbers & display
    3. multiply 2 input numbers & display
    4. divide 2 input numbers & display

Use of %d and %f in printf is mentioned.

Told to write in C on [ideone.com](http://www.ideone.com).


Write-up
--------

lol, it took me like 45 mins -- but I did do all this, plus I used a Makefile
and stuff as well :D

cba to do 4 programs, so I stuffed them all into one and added a 'random'
operator too. case statements, woohoo!


Assignment turn-in description
------------------------------

folder: https://github.com/raehik/aqa-computing/tree/master/homework/2014-09-04-homework-1-simple-calculator

hahah, spent a little long on this. included summary for posterity & short write-up (may not do latter for later short programs/investigations).

decided on a 'calculator' program rather than 4 'functions' as separate programs :P
see attached image for example output

compiled with GCC 4.9.1 -Wall, no warnings or errors (see image).
{'fraction_non_alphanumeric': 0.12973838761345435, 'fraction_numerical': 0.037907100907634814, 'mean_word_length': 2.8012170385395536, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '674667', 'n_tokens_mistral': 617, 'n_tokens_neox': 557, 'n_words': 252}