Wednesday, September 19, 2018



Last week 13th Thursday, was our first class of Computer Programming 1. We had 2 hours of lecture and 1 hour of lab time and we were introduced to the basic components of the computer.
After done with the lecture we were taught to open command prompt which is “CDM” in computer and also created a new folder there. 'CD' is to check a particular file on the computer while 'DIR' is where I can check out what is inside the folder. It was quite hard for me to understand at first but then I managed to understand the steps with the help of my lecturer and friends.





     Here comes the main part of this assignment which is creating a folder using my name :D. I created a folder by typing "mkdir [MYNAME]". Following that, inside the folder, I have created "Lab0" folder and saved a notepad.

























   According to the second question we need to open up a java compiler in command prompt. Unfortunately it couldn't be found and I need to recheck and finally, I found javac file was in the 'bin' folder. I made some adjustments in order to run java with the help of my lecturer. I specified the full path in the control panel ⇒advanced system settings ⇒edit variables ⇒edit path then copied the address location of the Java bin folder with a semicolon at the end. Finally, it was successful running the compiler by commanding 'javac' on CMD.




     Once done with that, I have created a simple Java program on notepad using the code which was given in the assignment and also named that file as "MyFirstJavaProgram.java".



     The last step was I typed javac MyFirstJavaProgram.java on CMD and finally, it is ready to run the compiler and successfully done. I am very happy to be informed that I have learned many new things although I have faced many challenges throughout this process and many more thanks to my lecturer and friends.

THANK YOU... :)

Pritah D/O Subramaniam (185797)

Next Blog : yanhua0112.blogspot.com
 


No comments:

Post a Comment