Explain what wo mean by software engineering What is the Sof

Explain what wo mean by \"software engineering. What is the Software Life Cycle? What are the activities of It? Define information hiding. What is the complexity of the following C++ code segment? void Unsorted Type Delete item(int item) {item = item/3; for (int i = 0; i 0) item = 100;} In C++, a one-dimensional array is declared as follow: int data (1000] What will be the physical address of data [780] if the base address is 2000? Assume that an integer will take 4 byte of memory to store.

Solution

1. Software Engineering is the discipline in which the principles of engineering are applied to the software development field. Software engineering differs from other branches of engineering in that professionals are building an intangible structure and not a tangible one. Since software is embedded in the machines used in various industries, though, malfunctioning software can actually have tangible effects. With software used in everything from medical equipment to airplanes, the end result of faulty software can indeed be loss of life.

Software Engineering is applying the principles of engineering to software development.

Even non-embedded software impacts many areas of our lives. We routinely trust software with our financial information and passwords. We use it to run our businesses and conduct our work activities. Yet it’s far from foolproof. There may be hackers or system overloads. Then there are the times that the software works from a technical standpoint, but fail to give a good user experience. Too often, routine software is designed from a “code and fix” model when sounder principles at the front end would alleviate problems. Here, too, it’s important to have a thorough grasp of the purpose of the structure and of the many things that structure may be called upon to withstand.

Software engineering often does involve writing code, but this is only one stage in the process. True software engineering has a well-articulated life cycle.

2. Software Life Cycle (SLC) is a process followed for a software project, within a software organization. It consists of a detailed plan describing how to develop, maintain, replace and alter or enhance specific software. The life cycle defines a methodology for improving the quality of software and the overall development process.

Below are the activities involved:

3. Information hiding is the process of hiding the details of an object or function. The hiding of these details results in an abstraction, which reduces the external complexity and makes the object or function easier to use. Encapsulation is a common technique programmers use to implement information hiding in Object Oriented Programming.

4. Code looks doubtful. n value is not given and no value is also not assigned. Basically They are trying to sort the array and deleting the duplicates if there are any while sorting.

5. Array of an element of an array say “A[ I ]” is calculated using the following formula:

Address of A [ I ] = B + W * ( I – LB )

Where,
B = Base address
W = Storage Size of one element stored in the array (in byte)
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero)

A[780] = 2000 + 4 * (780 - 0)

= 2000 + 4 * 780

= 2000 + 3120

= 5120

Ans: A[780] = 5120

 Explain what wo mean by \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site