You are on page 1of 7

Jogging Distance Application 1

UNIVERSITY OF MAKATI
J.P. Rizal Extension, West Rembo, Makati City

COLLEGE OF COMPUTER SCIENCE

OOPROGR

(Object Oriented Programming)

LABORATORY

1
ACTIVITY

Jogging Distance Application

Submitted By:

Belo, Kimberly S.

Serafico, Donna Karen

II - CITSM

July 13, 2018

Submitted To:

ENGR. E. CRUZ
Jogging Distance Application 2

I. OBJECTIVES

At the end of this exercise, students must be able to:

Cognitive

a.) understand the topics they have learned from module 1 to 3.

Psychomotor:

a.) declare variables for the data needed.

b.) construct a class diagram.

c.) create user-defined methods.

d.) write, test, and debug the program.

Affective

a.) appreciate the concept behind this exercise.

II. BACKGROUND INFORMATION

In order to accomplish this exercise, the student must have a clear understanding of the

following topics:

 Memory Locations of Data

 Data types, Expressions, and Operators

 Formatting Output

 Class Methods and Pre-defined Methods

 Value and Non-value Returning Methods

 Types of Parameters
Jogging Distance Application 3

III.LABORATORY PROCEDURE

Overview

This programming exercise demonstrates the use of methods in a program.

Task

1. Analyze the problem

Problem specification for Jogging Distance Application

Data for the Jogging Distance Application


Jogging Distance Application 4

2. Design a solution

Prototype for the Jogging Distance Application

Class diagram for the Jogging Distance Application

3. Code the solution


Jogging Distance Application 5

Pseudocode for the Jogging Distance Application

4. Test and debug the program

Sample Output from Jogging Distance Application


Jogging Distance Application 6

IV. QUESTION AND ANSWER

Explain how instance methods differ from class methods.

Instance methods in a class can make use of any of the public or private static data

that belongs to that class. (They can also make use of static data from other classes, provided

that it is accessible). A class method is a method that is bound to a class rather than its object. It

doesn't require creation of a class instance, much like static method. The difference between a

static method and a class method is: Static method knows nothing about the class and just deals

with the parameters.

V. CONLUSION

This activity helps us appreciate and understand more the topics we have

discussed from the modules 1 to 3 by applying the concepts we have learned.

VI. REFERENCE

Doyle, B. (2013). C# Programming: From Problem Analysis to Program Design, 4th Edition,

Cengage Learning.
Jogging Distance Application 7

PROGRAM OUTPUT:

You might also like