Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need some help getting these definitions I tried to search my text book but co

ID: 3622644 • Letter: I

Question

I need some help getting these definitions I tried to search my text book but couldn't find it

1-What is the difference between an algorithm and a program ?

2-In one sentence each, describe the meaning of each of the following terms:
Class
Object
Method
Inheritance
Superclass
Subclass
JVM (explain what it is used for)

3-List any five of the various steps in software development.

4-List three reasons why you may use the formal software development methodology in program development

5-Very briefly, describe the three types of errors you may encounter in a JAVA program
(Here, you are required to list the types of error, and state in one or two sentences, what each means)

6- List the three basic control structures we have in structured program development

7-What is the difference between a break and a continue statement?

8- In one sentence, explain each of the following terms/concepts
signature of a method
method overloading
scope of a variable
public variable
private variable 2
static method
static variable
instance method
instance variable

thank you

Explanation / Answer

Dear, 1) The major difference between an algorithm and a program is that an algorithm can be written using informal language without having to follow any special rules (though some conventions are usually followed) whereas a program is written in a programming language and must follow all the rules (the syntax rules) of the language 2) Class: Class is the blueprint of object. It specifies the fields and methods a particular type of object has. Object: Is an instance of class. From a class one or more objects can be created. Method: Contains set of statements that specify a particular task. Inheritance: Allows a new class to extend an existing class. The new class inherits the members of the class it extends. Super class:Superclass allows various subclassed objects to share certain things in common . super class also called base class. Sub class: sub class inherits fields and members of class. Sub class is the extended version of super class, it is also called derived class. JVM : Stands for Java Virtual Machine is a program that reads byte code instructions and executes then as they are read. 7. The break statement, when the executed in a while, for, do...while or switch, causes immediate exit from that statement. The break statement is used to escape early from a loop or to skip the remainder of a switch. And the continue statement, when executed in a while, for, or do…while, skips the remaining statements in the loop body and proceeds with next iteration of the loop. In a while and do…while statements, the program evaluates the loop-continuation test immediately after the continue statement executes. In a for loop, the increment expression executes then the program evaluates the loop-continuation test. 8. signature of a method: It specifies the name of method it should also state the meaning of the method. method overloading: It is the important party of OPP. when a method is overloaded, it means that multiple methods in sam class have the same name, but different type of parameters . scope of a variable: public variable: This variable is accessible through out the program as well as other classes derived from it. private variable 2: This variable has limited access i.e can me accessed only by the method of it' class. Helped you with few parts . please post remaining in another post so that we can help you