Topic: PsychologyDevelopment

Last updated: July 26, 2019

Muhammad Essop I.T. Term Assignment1) Program: A software that can run on a computer.Low-level language: A programming language that provides little or no abstraction of programming concepts.High-level language: A language designed to simplify programming.Source code: Any collection of code containing comments or commands.Machine code: A set of instructions executed by the CPU.

Compiler: A program that compiles codeInterpreter: Executes instructions in programming form3) An applet is a program that is web based. Java applets are designed to protect the user from malicious applets.4) Java runs bytecode which is available on any computer5) Java is compiled by user and interpreted by computer.6) A) Integrated development environmentB) Java Design Kit 7) NetBeans IDE and PyCharm 8) Algorithm: The way something is done Flowchart: Presenting an algorithm on a diagram Pseudocode: Explains what a computer program must do or execute.

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


order now

10) i)Enter value in Centigrade Take the value * C*9/5+32Print out Fahrenheit valueii) begin display “Enter a value” enter C C*9/5+32The display value in Fahrenheit12) Java comments are statements that do not affect the output but are rather there to help the user to understand the code. It is performed by typing “//” and what you want to say13) a) A statement in java is a command that could include expressions and affect the outputb) System.out.println(“Hi there”);15) Println will display the output on a new line whereas print will print it out on the same line.21) We give it a value22) Assigning a variable23a) import javax.swing.*;public class Question23a { public static void main(String args) { double c, f; c=Integer.parseInt(JOptionPane.showInputDialog(“Enter the Centigrade value”)); f= c*9/5+32; System.out.println(“The temperature in Fahrenheit is “+ f); } }23b) import javax.swing.*;public class Question32b { public static void main(String args) { double r, a, v; r=Integer.parseInt(JOptionPane.showInputDialog(“Enter the radius of a circle”)); a= Math.pow(r, 2) * Math.PI; v= (4/3)*Math.PI*Math.pow(r, 3); System.out.println(“The area of the circle is “+ a); System.out.println(“The volume of the sphere is “+ v); } }27) i) a code that assigns different numbers with char valuesii) Taking a value of one data type and converting it into another data typeiii) These include “+, -, /, *”iv) Increasing or decresing a number by a certain amount.v) The coding version of BODMAS29)a) int*36b) 1c) 8d) 8,430) x + 332) 161600117-734) an IF-Statement35) import javax.swing.*;public class Question35 { public static void main(String args) { int age; age=Integer.parseInt(JOptionPane.showInputDialog(“Enter your age”)); if (age

x

Hi!
I'm Piter!

Would you like to get a custom essay? How about receiving a customized one?

Check it out