Differentiate various object-oriented programming constructs

Assignment Help Software Engineering
Reference no: EM133567831

Software Development Fundamentals

The purpose of this assignment is to assess students on the following Learning Outcomes:

Learning Outcome 1: Explain the basic programming concepts such as computer storage and data types, decision structures, loops, and modular programming.

Learning Outcome 2: Use problem solving techniques and program design methods to translate a problem description to a formal program specification.

Learning Outcome 3: Differentiate various object-oriented programming constructs, including classes, inheritance, polymorphism, and encapsulation.

Details & Problems
In this first assignment, you are required to answer two short questions, give output of the code, and develop two C# Console Programs to demonstrate your ability to use C# input/output via command line, C# primitive and built-in C# types, C# operators and expression, C# conditional statements, C# loop construct, and show your ability to validate the inputs to avoid run-time errors.

Assignment Description
Object Oriented Programming (OOP) is a programming model where programs are organized around objects and data rather than action and logic. OOP allows decomposition of a problem into several entities called objects and then builds data and functions around these objects.

A class is the core of any modern Object-Oriented Programming language such as C#. In OOP languages it is mandatory to create a class for representing data.

A class is a blueprint of an object that contains variables for storing data and functions to
perform operations on the data. A class will not occupy any memory space and hence it is only a logical representation of data.

You must have learnt it already in the lecture so far that to create a class, you simply use the keyword "class" followed by the class name. Also, some description about the Objects is provided below, which again you must have covered in the lectures.

Objects are the basic run-time entities of an object-oriented system. They may represent a person, a place, or any item that the program must handle. "An object is a software bundle of related variable and methods." "An object is an instance of a class".

All the programming languages supporting Object Oriented Programming will be supporting these three main concepts,

1. Encapsulation
2. Inheritance
3. Polymorphism

Abstraction provides you a generalized view of your classes or objects by providing relevant information.
By considering all this information provided above about the classes, objects, inheritance, polymorphism, and abstraction, answer the following questions:

Question 1: write C# code for calculating area of

1. Circle
2. Triangle
3. Rectangle
4. Square
5. Pyramid
6. Cone
7. Rhombus

Question 2: Suppose you have an object 'Shape' and three types of shapes as provided below:

Circle (Features: Radius, Area, Circumference)
Rectangle (Features: Length, Width, Area, Perimeter)
Triangle (Features: Base, Height, Area, Perimeter)

Abstract information (necessary and common information) for the object "Shape" is that all shapes have an area and perimeter.

Write the code to create an abstract class for a Shape object in C#.

Write the formal program specification describing the names of the class, subclasses, and their attributes to be used for the above assignment description. Briefly describe the inheritance relationships between them.

Reference no: EM133567831

Questions Cloud

Prep the patient for future blood fasting test : Prep the patient for a future blood fasting test, explaining why this is being done, what will be done, and what they need to do to prepare for this blood test.
How do the symbols of the confederacy support or challenge : How do the symbols of the Confederacy support or challenge our norms, beliefs, and values? Do you think we should remove the statues and the battle flag?
What contexts seem to be most prone to conflict and why : What contexts seem to be most prone to conflict and why? How does context affect conflict? Is conflict a normal way of communicating with others? Why?
How neoliberalism became culture : define neoliberalism. What is it, when did it start, what beliefs are associated with it? Are you convinced by the comparisons the video makes between
Differentiate various object-oriented programming constructs : ITAP1001 Software Development Fundamentals, Victorian Institute of Technology - Explain the basic programming concepts such as computer storage and data types
How founders of panada sunglasses define selling proposition : How should the founders of Panada Sunglasses define a unique selling proposition for their company that resonate with customers?
Research on race, racism, and privilege : "Race in the Workplace: Sociologist Joe R. Feagin's Research on Race, Racism, and Privilege." Discuss one of your impressions of what Box 3.2 tells you about
What did we do to sustain the world growing population : What is the current world population? How are some infections controlled in plants? what did we do to sustain the world's growing population?
What are some of tiffany possible interpretations : What are some of Tiffany's possible interpretations of the events unfolding around her? What elements of her situation might make it less stressful for her?

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd