//Tiaan executes instuctions written in a coding

//Tiaan Walters//02/09/18//IT Project_______________________________________1) program – A program is a set of instuctions that tell a computer what to do low-level language – Basic instuctions for a computer that are simlilar to writing machine instuctions high level language – More advanced instuctions that are closer to human languages eg. Java,C++ source code – any collection of code written in a programming language machine code – instuctions performed by a computers CPU compiler – A program that converts code written in a programming language into machine code interpreter – A program that executes instuctions written in a coding language without needing them to be converted into machine code3) An applet is a small java program that runs in a browser. It is sercure as it is run in a seperate environment that doesnt allow the applets to perform any malicious tasks4)It means that java is “platform independant” meaning you can run it on most hardware5)Java is code is first compiled into JVM byte code, and then interpreted to run the program6)a) An “Intergrated development environment” that provides tools for software development b) “Java development kit” is a software development environment for Java7) NetBeans Eclipse8) algorithm – A procedure that allows a computer to solve a problem flowchart – A chart that represents processes or algorithms by showing the steps in boxes pseudocode – Description of what a program must do, written in a “human” language eg.

English10)i) Start—>Enter temp(C)—>temp(F)=temp(C)*9/5+32—>Display Temp(F)—>End ii) Input the temperature in centigrade Convert centigrade temperature to Fahrenheit Display farenheit temerature12) Comments are text that the compiler ignores. It is performed by added a “//” before the line in question13) a) A complete command in java b) System.out.println(“Hi There!”);15) print simply prints out text on screen while println first goes to a new line before printing21)The varible has been given a value22) A statement where a varible is assigned a value23)a)import javax.swing.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

*;public class Test { public static void main(String args) { double tempC,tempF; tempC =Double.parseDouble(JOptionPane.showInputDialog(“Enter temperature”)); tempF = tempC*9/5+32; System.out.

println(tempF); } }b)import javax.swing.*;public class Test { public static void main(String args) { double rad,area,vol; rad = Double.parseDouble(JOptionPane.showInputDialog(“Enter radius”)); area = Math.PI*Math.pow(rad,2); vol = 4/3*Math.

PI*Math.pow(rad,3); System.out.println(“Area: “+area); System.out.

println(“Volume: “+vol); } }27) i) Unicode – an international encoding standard for use with different languages and scripts, by which each letter, digit, or symbol is assigned a unique numeric value ii) Casting – Changing a value of one datatype to another iii)Arithmetic opterators – Basic mathematical operations eg + or – iv)increment/decrement operators – operators that increase or decrease the value of a varible by 1 v)operator precedence – operators like * or / are executed before + or -28)a) 3 b) 6 c) 8.4 d) 830) X = x+3;32)1)16 2)16 3)Any number from 0 to 1 4)Any number from 0 to 1 times 6 5)Any number from 0 to 1 times 6 plus 1 6)Any number from 0 to 1 times 6 plus 1 (as a whole number) 7)8 8)-7 9)7 10)-8 11)7 12)-734) A command that performs a diffenct action depending of whether a specifies boolean value evaluates as true or false35)import javax.swing.*;public class Test { public static void main(String args) { int a =Integer.parseInt(JOptionPane.showInputDialog(“Enter your age”)); if (a=60) { System.

out.println(“credit”); } else if (mark>=45) { System.out.println(“pass”); } else { System.out.println(“Fail”); } } }38) not, and , or ! , && , ||39) Start—>Declare Varible Int m—>Display “Enter Mark”—>Read next int from keyboard—>End42)import javax.

swing.*;public class Test { public static void main(String args) { int mon =Integer.parseInt(JOptionPane.

showInputDialog(“Enter month”)); switch(mon) { case 1: System.out.println(“January”); break; case 2: System.out.println(“February”); break; case 3: System.

out.println(“March”); break; case 4: System.out.println(“April”); break; case 5: System.

out.println(“May”); break; case 6: System.out.println(“June”); break; case 7: System.out.

println(“July”); break; case 8: System.out.println(“August”); break; case 9: System.out.println(“September”); break; case 10: System.out.println(“October”); break; case 11: System.

out.println(“November”); break; case 12: System.out.println(“December”); break; default: System.out.println(“No corresponding month”); } } }46)a) Counting from 1 to 10 b)public class Test { public static void main(String args) { for(int count=1;counttemp(F)=temp(C)*9/5+32—>Display Temp(F)—>End ii) Input the temperature in centigrade Convert centigrade temperature to Fahrenheit Display farenheit temerature12) Comments are text that the compiler ignores.

It is performed by added a “//” before the line in question13) a) A complete command in java b) System.out.println(“Hi There!”);15) print simply prints out text on screen while println first goes to a new line before printing21)The varible has been given a value22) A statement where a varible is assigned a value23)a)import javax.swing.*;public class Test { public static void main(String args) { double tempC,tempF; tempC =Double.parseDouble(JOptionPane.showInputDialog(“Enter temperature”)); tempF = tempC*9/5+32; System.out.println(tempF); } }b)import javax.swing.*;public class Test { public static void main(String args) { double rad,area,vol; rad = Double.parseDouble(JOptionPane.showInputDialog(“Enter radius”)); area = Math.PI*Math.pow(rad,2); vol = 4/3*Math.PI*Math.pow(rad,3); System.out.println(“Area: “+area); System.out.println(“Volume: “+vol); } }27) i) Unicode – an international encoding standard for use with different languages and scripts, by which each letter, digit, or symbol is assigned a unique numeric value ii) Casting – Changing a value of one datatype to another iii)Arithmetic opterators – Basic mathematical operations eg + or – iv)increment/decrement operators – operators that increase or decrease the value of a varible by 1 v)operator precedence – operators like * or / are executed before + or -28)a) 3 b) 6 c) 8.4 d) 830) X = x+3;32)1)16 2)16 3)Any number from 0 to 1 4)Any number from 0 to 1 times 6 5)Any number from 0 to 1 times 6 plus 1 6)Any number from 0 to 1 times 6 plus 1 (as a whole number) 7)8 8)-7 9)7 10)-8 11)7 12)-734) A command that performs a diffenct action depending of whether a specifies boolean value evaluates as true or false35)import javax.swing.*;public class Test { public static void main(String args) { int a =Integer.parseInt(JOptionPane.showInputDialog(“Enter your age”)); if (a=60) { System.out.println(“credit”); } else if (mark>=45) { System.out.println(“pass”); } else { System.out.println(“Fail”); } } }38) not, and , or ! , && , ||39) Start—>Declare Varible Int m—>Display “Enter Mark”—>Read next int from keyboard—>End42)import javax.swing.*;public class Test { public static void main(String args) { int mon =Integer.parseInt(JOptionPane.showInputDialog(“Enter month”)); switch(mon) { case 1: System.out.println(“January”); break; case 2: System.out.println(“February”); break; case 3: System.out.println(“March”); break; case 4: System.out.println(“April”); break; case 5: System.out.println(“May”); break; case 6: System.out.println(“June”); break; case 7: System.out.println(“July”); break; case 8: System.out.println(“August”); break; case 9: System.out.println(“September”); break; case 10: System.out.println(“October”); break; case 11: System.out.println(“November”); break; case 12: System.out.println(“December”); break; default: System.out.println(“No corresponding month”); } } }46)a) Counting from 1 to 10 b)public class Test { public static void main(String args) { for(int count=1;count