Module Code: CFT2112
Module tittle: Studio 1
Module Introduction:
Example : Erewhon Challenge
Erewhon website |
The first challenge that we did in this module is to work in a group and create a website. The website is all about our ideal university. I did the website stuff i.e the coding because I have a knowledge about HTML and Dreamweaver. I created the logo of the website using adobe Photoshop.
On this module i also learned to use the Linux system, which is helpful. I learned a lot of Unix command. Unix Command
Module Code: CFS 2160
Module tittle: Software Design & Development
Module Introduction: This module is divided into 2 the modelling side and the programming side. The modelling side of this module uses Unified Modelling Language (UML),which is the most modelling language use today. The programming side uses Java.
Modelling Examples:
The image above is an example of activity diagram, which shows an activity of journey to university. I learned that modelling is an important part when it comes on programming. We need to model because it is easier and cheaper. If the program is not that complicated we don't need to model.
Example of Activity Diagram:
Activity diagram: Journey to university
Example of Use Case Diagram:
Use case Diagram : Cash Machine
This diagram shows that the customer does many action. The customer can check balance, withdraw cash and order statement. The use case diagram is link on an activity diagram, which show the activity on how to withdraw on a cash machine.
Activity diagram: Withdraw money
Programming Examples: Java Programming Language
Blue J interface
Lap counter example:
- In the above image, the user can insert how many lap the lapcounter should have.
object inspector
- We can inspect the LapCounter using the object inspector.
Method
- On blue J , we can call a method. As we can see on the above example, it is the lapscompleted method. If the program called the lapscompleted method, it will return a value of how many lap is completed. If we called the lapsremaining method, it will return a value on how many lap is still need to complete. If the resetlap is called, then it will reset all the value. If the isFinished method is called, it will return a true or false value.
Testing :
On programming , we need to test a piece of software in order for us to minimise the risk of failure and to ensure that there is no error on the software.
Testing LapCounter
Module Code: CFS 2143
Module tittle: HARDWARE AND NETWORKS
Module Introduction: In this module, I learned about the structure of the computer. I also learned how to use the floating point applet. I also learned about memory, buses, I/O devices and importantly the date representation, converting binary to hex and decimal and vice versa.
Examples:
- Rewrite in expanded notation the decimal numbers:
a. 2468 = (2x1000)+(4x100)+(6x10)+(8x1)
b. 54.65 = (5x10)+(4x1)+(6x0.1)+(5x0.01)
c. 10.133= (1x10)+(0x1)+(1x0.1)+(3x0.01)+(3x0.001)
- . Find the ASCII value in hexadecimal for the following five characters (using the ASCII table given):DELBg]>7F42675D3E
- Round the following six numbers:
555.666 | 2222.333 | 333.0 | 44.665 | 9.9950 | 0.005000 | |
a | 555.67 | 2222.33 | 333.00 | 44.66 | 10.00 | 0.01(if 0 odd) 0.00( if 0 is even) |
b | 555.7 | 2222 | 333.0 | 44.66 | 9.995 | 0.005 |
a. To 2 decimal places? 64GB
b. To 4 significant digits? Xcomputer: This applet do the instruction and locate it on the memory.For example:
lod-c 17
add-c 105
sto 10
hlt
x computer applete
Logic Circuit:
and gate
Module Code: CFM 2175
Module tittle: Computing Science and Mathematics
Module Introduction: In this module, I learned what are sets and how they are used in computer science and mathematics. I also learned different ways on how to describe a set. I also learned a new programming language called kara and used it as a Finite State Transducers.
Example works: JavaKara
Kara's world
Question on the tutorial : As considered in the kara practical, kara changes each 1 in her input (represented by a clover leaf) to a 0 by picking up the clover leaf, and changes each 0 to a 1 by putting down a clover leaf. The input is terminated with a tree.
On the image above, explains that kara checks if it is on a leaf or not, if it is on a leaf kara will pick it up and move on the next square, if there is no leaf kara will drop a leaf and move on the next square , if kara see a tree in front , then kara will stop.
Grammars and Languages: week 6 example
Let G be the grammar for which the start symbol is V0,
N = {V0, V1} set of non-terminal symbols
T = {x, y, z} set of terminal symbols
and the production rules are
1) V0 ----> x V0 2) V0 ----> y V1 3) V1 ----> y V1
4) V1 ----> z
Consider the strings
iii) x2 y2 z
My answer:
V0 ----> x V0 rule 1
----> x xVO rule 1
----> xx yV1 rule 2
----> xxy yV1 rule 3
----> xxyyz rule 4
My answer above is a string which are language L (G) defined by the grammar and this strings are syntactically correct. x2 y2 z = xxyyz
Module Code: CFM 2175
Module tittle: Computing Science and Mathematics
Parse tree:
V0 ----> x V0 rule 1
----> x xVO rule 1
----> xx yV1 rule 2
----> xxy yV1 rule 3
----> xxyyz rule 4
Module Code CFP2125
Module Title Project 1
Module Introduction: In this module, we need to create an application for android phone and we need to work as a group. I also learned the development processes which include analysis, design and development. In this project, me and one of my group mates did a survey for our project to be able to know what we need to develop.
Summary task
.