33
Student Guide Data and Its Representation and Organization Page: 1 of 33 Infor Education Mongoose Workshop Copyright © 2017. Infor. All Rights Reserved. www.infor.com Infor Education Mongoose Workshop Class 3: Data and Its Representation and Organization Student Guide (Use this guide for this course.)

Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

  • Upload
    dodan

  • View
    227

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 1 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Infor Education

Mongoose Workshop

Class 3: Data and Its Representation

and Organization

Student Guide (Use this guide for this course.)

Page 2: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 2 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Welcome to the Infor Education Workshop on Mongoose.

You have been provided with a Student Guide (SG)/Workbook. This has been specially designed to facilitate maximum recall of the concepts that are covered in the class room sessions:

The top of each page has a replica of the presentation slide that will be displayed on the screen.

Below this image is a blank area that you may use as a scribbling/scratch pad to take down any notes that you feel are important to you.

The lower portion of each page contains the study material that will be part of the discussion of each class.

All Activities, such as CYUs, Exercises, and so on, are also available in the SG. You will use those pages to work on your activities.

Notes:

Page 3: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 3 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Welcome to the lesson on Data and Its Representation and Organization!

This lesson will introduce you to the idea of data representations of real world artifacts. By the end of this lesson, you will create object-oriented data structures that can model various real world situations and understand how to collect, organize, store, and analyze the resulting data. This lesson will also acquaint you with the Mongoose capabilities as a rapid application development framework.

Notes:

Page 4: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 4 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

By the end of this lesson, you will be able to:

• Analyze the commonalities between data. • Explain the Mongoose capabilities as rapid application development framework. • Describe the basic Mongoose architecture.

Notes:

Page 5: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 5 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Data types enable you to classify the types of data.

Data has values that can be real, integers, or Boolean, depending on their type.

A data type determines the:

• Kind of value it can store

• Operations that can be done on the values

Notes:

Page 6: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 6 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

The most common data types are:

• Integers

• Boolean

• Characters

• Floating Point Numbers

• Alphanumeric Strings

Irrespective of the programming platform, the data types remain the same even though the terminology may differ across programming languages.

Notes:

Page 7: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 7 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• The concept of integer data type is borrowed from mathematical integers. The integer data type represents a finite set of mathematical integers.

• Use the integer data type to store signed (non-negative) or unsigned (negative and non-negative) values.

• Integer data type finds representation as a group of bits or binary digits; however, the sizes of groupings vary depending on the computer types.

Notes:

Page 8: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 8 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• The Boolean data type is used to represent the values of Boolean algebra. It represents the truth values of logic and can, therefore, have either of the two values: True or False.

• The values returned for the Boolean data type are evaluated by conditional statements depending on whether a statement is found to be true or false.

• It represents one bit of information.

Notes:

Page 9: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 9 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• The Character data type can store letters, alphabet, numeric digits, punctuation marks, and whitespaces.

• This data type can also store control characters, which are not necessarily symbols, used in a natural language.

Examples of control characters are 1, 2, a, b, “”, A, Carriage return, or Enter and Tab.

Notes:

Page 10: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 10 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• The Floating Point data type stores a real number value to ensure precision.

• A Floating Point value:

• Has a fixed number of significant digits

• Can be scaled using an exponent in a fixed base

• The exponent in a Floating Point data can modify the magnitude of the number. For example, 7,893 = 7.893 X 10

3.

The rules to determine the significant digits in a number are as follows:

• Non-zero digits are significant. For example, 6.78 has three significant digits, and 832.6 has four significant digits.

• Zeros between two significant digits are significant. For example, 708 has 3 significant digits, as the zero is positioned between two significant digits: 7 and 8.

• A final zero in the decimal only is significant. For example, in the number 0.00890, the final zero is significant.

Notes:

Page 11: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 11 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• The Alphanumeric Strings data type is a combination of alphabet and numeric characters.

• For example, Mongoose123 is an Alphanumeric String.

Notes:

Page 12: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 12 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Identify the common data types.

a) Integers

b) Boolean

c) Variables

d) Constants

e) Floating Point Numbers

Notes:

Page 13: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 13 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Which of the following statements about data type are true?

a) It offers a means of classifying the types of data.

b) It determines the value types the data can store.

c) It restricts the operations that can be performed on the values.

d) It ensures that two data types cannot swap values.

Notes:

Page 14: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 14 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Which of the following data types will allow you to store the "MyStringSet358” data?

a) Floating Point

b) Characters

c) Alphanumeric String

d) Boolean

Notes:

Page 15: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 15 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• A data structure can be defined as a specific grouping of primitive data types.

• The primitive data types can be considered members of a multifaceted object.

• The members collectively describe the data object.

Notes:

Page 16: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 16 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

• Unified Modeling Language or UML is an important tool for designing data structures and objects.

• An example is the Flight data structure that uses the variables: flightNumber, departureTime, and flightDuration, and functions such as delayFlight and getArrivalTime. The flightNumber is integer type, departureTime is date type, and flightDuration is minutes type.

• Both the functions are of date type.

Notes:

Page 17: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 17 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

An example of a data structure is employee details, which uses the following data types:

• Strings to store employee code, employee band, and employee name

• Integers to store salary

Notes:

Page 18: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 18 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

An important data structure task is to design a data structure or object to manage basic payroll functions. The data structure can be used along with the employee details structure to build the system.

An example of a data structure is employee details, which uses the following data types:

• Strings to store employee code, employee band, and employee name

• Integers to store salary

Notes:

Page 19: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 19 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Although the concepts covered here may sound like a class on the object-oriented design, we are here to first understand the business purpose, which should define the object. Let’s learn how Mongoose enables you to translate the business requirements into objects.

Notes:

Page 20: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 20 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

With Mongoose, it is relatively easy to implement a database with associated infrastructure using the new data maintenance wizard to create a form and IDO.

The use of ERDs and spreadsheet models stress the value added by a rapid application development framework.

The ability to create and implement an ERD needs years of experience or an in-depth knowledge of SQL programming. However, with Mongoose, users can take the advantage of quickly developing and deploying applications without such extensive experience.

Notes:

Page 21: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 21 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Select the statement that is NOT correct.

While doing application development with Mongoose, __________.

a) you can be more productive

b) changes are easier to manage

c) you can more effectively manage your development costs

d) you practically do not need to do any development

Notes:

Page 22: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 22 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Let’s see a few examples of Mongoose relationship.

Displayed here is the Crowd-sourcing Funding example.

Notes:

Page 23: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 23 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Displayed here is the Hospital Appointments example.

Notes:

Page 24: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 24 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Displayed here is the Class/Teacher example.

Notes:

Page 25: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 25 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Mongoose is a development tool for relational database applications, and because it targets defining as much of your application as possible in metadata stored in databases, a Mongoose application consists of its databases. To run, each Mongoose application instance includes three databases: Application database, Objects database, and Forms database. During development, you typically also use a Master Forms database, and Dev and Master Templates databases.

a) The Application database hosts the entire data specific to a particular Mongoose application. There must be one such database for each instance of an application.

b) The Objects database contains metadata for the business logic in the form of Intelligent Data Objects or IDOs, and any code associated with IDOs.

c) The Forms database contains metadata for the user interface of the application. As we will see, Mongoose apps provide a number of user interface options, where the basic user interface unit—the form—can be presented as a standalone web page, or displayed with other forms within the Mongoose application frame. The Forms database also contains various types of objects that are globally accessible to all forms, and any code associated with forms.

d) The Templates database stores the settings for some of the wizards used during development so that you can iterate without re-entering information.

e) These databases typically reside on one database server, but they can reside on different servers.

Notes:

Page 26: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 26 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Which of the following is not a permitted schema in Mongoose?

a) Number

b) Date

c) Buffer

d) Mathematical Formula

e) Boolean

Notes:

Page 27: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 27 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

To ease your development process, Mongoose offers several pre-built structures for business objects, which are also referred to as Intelligent Data Objects or IDOs. You should first make an attempt to understand what drives your business and then make an object model or an IDO around it.

Notes:

Page 28: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 28 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Watch the video and try to think of analogies for an IDO.

Notes:

Page 29: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 29 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Let’s make an attempt to model our first IDO, which is a transaction system. Think about the following while creating the IDO:

• What would you store?

• What functions do you want to perform?

Based on the responses to the above questions, create a UML diagram and a use case diagram.

Notes:

Page 30: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 30 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Activity: Create a data model based on your experiences and interests.

Activity Duration: 30 minutes + 15 minutes for presentations

Material Required: Data Model: Activity Handout, pens, and flipcharts

Activity Instructions:

• You need to work individually on this activity.

• Read through the instructions provided in the activity handout: Data Model: Activity

Handout.

• You need to create a data model based on your experiences and interests. To do this, you

need to:

• First, identify an object of your choice.

• Then, come up with a way to describe the object using primitive data types.

• Form a data model.

• Transfer your data model to a flipchart and present to the larger group. You must also present

the rationale behind the data type choices.

• Actively reflect on the presentation points of other participants.

Notes:

Page 31: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 31 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Activity Duration: 5 minutes

Activity Instructions:

• You must be familiar with the concept of Object Oriented Design (OOD).

• Note that an object consists of various data, and OOD refers to the interaction between

various data types.

• Think of some advantages of OOD.

• OOD offers the following advantages:

• The ability to protect some components of the object from external entities

• Inheritance, which enables a class to extend or override the functionality of another

class

• Polymorphism, which is the ability to replace an object with its sub-objects

• Think of some ways that OOD can enable reuse of data objects for extensions.

Notes:

Page 32: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 32 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

IDO stands for _____________________.

a) Intellectual Data Objects

b) Installation Direct Objects

c) Intelligent Data Objects

d) Intellectual Developed Objects

Notes:

Page 33: Mongoose Workshop - Rodriguez Rivera Grouprodriguezriveragroup.com/Infor/CurrentClassSlides/Session_1_Infor... · Student Guide Data and Its Representation and Organization Page:

Student Guide Data and Its Representation and Organization Page: 33 of 33

Infor Education

Mongoose Workshop

Copyright © 2017. Infor. All Rights Reserved. www.infor.com

Let’s summarize our learning today. You learned to:

• Analyze the commonalities between data.

• Explain the Mongoose capabilities as rapid application development framework.

• Describe the basic Mongoose architecture.

Notes: