Question

In: Computer Science

3.1. Explain the concepts "Procedures" and "Modularity" as related to programming. 3.2. Explain each of the...

3.1. Explain the concepts "Procedures" and "Modularity" as related to programming.

3.2. Explain each of the class members that belong to object orientated programming.

Solutions

Expert Solution

Modularity

modularity is ,dividing a computer program to different sub-programs. A module is a separate component of whole program. the advantages of using the concept modularity are

Ease of Use :This approach make programing simple, if we dont use modularity we have to manage entire thousands of lines code as a single component.

Ease of debugging: It is hard to manage entire thousands of lines code as a single component.if it is sub divided. debugging will be more efficient.

Reusability :It help the user to reuse the component of code without typing again.

Procedures.

Procedures basic building block of a programming language.

procedure is a set of (coded) instructions that help computer to understand how to run a program / calculation. different programming languages such as java, c++ etc has their own procedure. a procedure is also called function / asubroutine /sub program .

Class members

Class members are members of a class. they are declared inside a particular class.

following can be Class members .

variables   - name given to memmory location

Constants - representing constant values

Methods - do some particular actions ( calculation , functions)

instance constructor - initialize members of class.

statc constructor - initialize class itself.

destructor - to execute actions before discarding a class instance.

Properties of class - define actions to fetch and modify class elements,

Types- used in the local class

Events - used for communication betwen different clases or objects

Indexes - given to class instances ( like given arrays ) for accessing it


Related Solutions

3.1 Briefly explain price elasticity of demand and how it is measured. 3.2 Explain with diagrams...
3.1 Briefly explain price elasticity of demand and how it is measured. 3.2 Explain with diagrams and relevant examples, THREE (3) categories of price elasticity of demand. 3.3 Explain any THREE (3) determinants of price elasticity of demand.
3.1 Briefly explain price elasticity of demand and how it is measured. (5) 3.2 Explain any...
3.1 Briefly explain price elasticity of demand and how it is measured. (5) 3.2 Explain any THREE (3) determinants of price elasticity of demand. (6
QUESTION THREE [15] 3.1 Questions 3.1 to 3.2 is based on the excerpt below. Shine is...
QUESTION THREE [15] 3.1 Questions 3.1 to 3.2 is based on the excerpt below. Shine is one of many firms in the market for toothpaste which is in short-run equilibrium. It engages in advertising to create the perception of a unique product. Discuss the long-run aggregate supply curve. 3.1.1 Draw a diagram illustrating Shine’s demand curve, marginal revenue curve, average total cost curve and marginal cost curve, clearly labeling the company’s profit maximizing output, price and equilibrium position. Include in...
QUESTION THREE [20] 3.1 Explain the rationale behind the internal rate of return. (IRR) (3) 3.2...
QUESTION THREE [20] 3.1 Explain the rationale behind the internal rate of return. (IRR) (3) 3.2 Super Max Investments have just made an investment of R550 000 in a new Tata Telcoline delivery vehicle. This vehicle will be used for deliveries and generate revenues from such activities. Further details:  Expected useful life 5 years (straight line depreciation)  Salvage value 50 000  Cost of Capital 10% after tax  Tax rate 30% Year Cash flows 1 -220 000...
I need to turn sections 3.1 and 3.2 into a methods and material section that is...
I need to turn sections 3.1 and 3.2 into a methods and material section that is around 100-200 words. My experiment is how effective the granularity of coffee is with removing copper ions from water. Thanks. 3.1 Calibration Curve 1. Collect six 25 mL Sample vials and label a vial for each of the concentrations (blank, 0.5, 1, 2, 5, 10 ppm) 2. Dispense 10 mL of each Cu2+ solution into five separate labelled 25mL sample vials 3. Add 10...
3.1. Define the statement of Cash Flows.                            3.2. Elaborate on the purpose of the statement...
3.1. Define the statement of Cash Flows.                            3.2. Elaborate on the purpose of the statement of cash flows 3.3. Elaborate on the 3 major sections of the statement of cash flow 3.4. Give an example of a statement of cash flow
explain quality-assurance logs related to sterilization procedures.
explain quality-assurance logs related to sterilization procedures.
3.1 What is the IRR? 3.2 What is the VPN? When is it used? 3.3 What...
3.1 What is the IRR? 3.2 What is the VPN? When is it used? 3.3 What is ROI? What is it for? 3.4 What is the difference between TREMA and TMAR?
NB: 1. Questions: 3.1 - 3.3 are related. Make use of the information provided in 3.1...
NB: 1. Questions: 3.1 - 3.3 are related. Make use of the information provided in 3.1 to answer 3.2 & 3.3. 2. Questions: 4.1 - 4.4 are related. Make use of the information provided in 4.1 to answer 4.2, 4.3 & 4.4. 3. Questions: 5.1 - 5.3 are related. Make use of the information provided in 5.1 to answer 5.2 & 5.3. 3.1 An IQ test was given to five MBA students before and after they completed the MBA degree....
In this assignment, you will discuss concepts related to the importance of communication and related concepts...
In this assignment, you will discuss concepts related to the importance of communication and related concepts in the profession of nursing. Follow the instructions below to complete your assignment: Introduce of the concept of communication with a purpose statement Identify and describe the phases of the nurse-patient relationship Evaluate effective and ineffective communication techniques Identify a strategy or strategies to becoming a successful communicator in nursing. Research this topic and integrate a current research article (within the past 5 years)....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT