Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views14 pages

1st Object-Oriented Programming Job

This document presents 7 approaches to model use case, class, and sequence diagrams for different systems. The first approach models a use case diagram for a credit system for purchasing appliances. Approaches 2 to 5 present additional cases for modeling use case diagrams. Approach 6 describes a case for modeling a sequence diagram for sports reservations. Finally, approach 7 presents a case for modeling a sequence diagram for a Scalextric car controller.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views14 pages

1st Object-Oriented Programming Job

This document presents 7 approaches to model use case, class, and sequence diagrams for different systems. The first approach models a use case diagram for a credit system for purchasing appliances. Approaches 2 to 5 present additional cases for modeling use case diagrams. Approach 6 describes a case for modeling a sequence diagram for sports reservations. Finally, approach 7 presents a case for modeling a sequence diagram for a Scalextric car controller.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Rosa Maray Carranza Rivera

National College of Technical Professional Education


Aguascalientes I Campus Profr. J. Refugio Esparza Reyes
Technical Bachelor Professional in Information Technology
Morning Shift

Module
Object-Oriented Programming

Activity
Management of components of object-oriented language Unit l

Teacher
Pérez Gallegos Adriana, lti

Student
Rosa Maray Carranza Rivera

Group
411

Sixth Semester
Cycle 2.18.19

Delivery date
February 26, 2019
Rosa Maray Carranza Rivera

Content
No table of contents entries found.
Rosa Maray Carranza Rivera

Introduction
Object-oriented programming is an evolution of programming.
function-based procedural. OOP allows us to group sections of code
with common features.
One of the main disadvantages of procedural programming based on
functions is its construction, when an application under this type of programming
grows, modifying the code becomes very laborious and difficult due to the
a change in a single line in a function can lead to the modification of many
other lines of code belonging to other related functions.
Object-oriented programming aims to group the code
encapsulating it and making it independent, so that a modification
Due to the growth of the application, it only affected a few lines.
Rosa Maray Carranza Rivera

Conceptual Map of the elements of object-oriented programming

Programming
object-oriented

Elnombredelaciudades

to a d s t ú n l g e a d e
and into a meal
elEs
Rosa Maray Carranza Rivera

Usage, class, and sequence diagrams


Approach 1 Modeling of use case diagram
A home appliance sales business decided to implement and grant a line
credit to their customers for the purchase of products. Credits are requested
by the customers to the seller at the time of purchase and must be
authorized by a representative of the credit management, and paid by the client
through automatic debit on credit cards. If the credit is accepted, it
deliver the product to the customer immediately. Each month, it will be charged in a
automatic payment of the customer's card installments.

Choose product

Request
credito

Authorization
R. Management de crédito

Card payment

Delivery of Client
produclto

Seller
Rosa Maray Carranza Rivera

Approach 2 Use case diagram modeling


The famous chain of video clubs 'Búster's Blocks' has hired us with
the purpose of developing a system to systematize its locations. To this day, it
they have held a series of meetings with the client in order to determine the
system requirements. From such meetings, the following has been determined: The
the system must allow customers to browse the movie catalog. Starting from
of it, once a movie is selected, it should be possible to access the
information about it such as its classification, its genre, and a brief summary
of the same. Likewise, optionally, it should be possible to check availability
of the video. The employees of the video store must be able, through the system,
to record the rents and returns by the clients, and to consult, given a
client, the videos that he has for rent. If registering a rental, it turns out that the
Customer is not registered, the system should allow for their registration.
Our client also requested that the system generates every morning in a way
automatically generate a report showing all clients that are overdue
with their returns. When asked what he meant by "all the
mornings" clarified: "That every day at 9:00 a.m. print or display on screen
the list of overdue clients.
Rosa Maray Carranza Rivera

Approach 3 Modeling of use case diagram


It has been decided to manufacture a machine for the dispensing and sale of beverages.
automatic. The customer selects some of the offered products, one or more,
by pressing one or more buttons. The items can be from
different types: soda cans, juices or bottles. Only one can be requested.
type of product at the same time. The machine recognizes the customer's order. If it is not available in
existence informs the customer through a message. The machine accepts the
customer coins, recognizing different types. If the coins do not cover the
total amount returns it and notifies the customer through a message. In case
On the contrary, release the requested beverages, update the product stock, and print.
a ticket. The person in charge of restocking replenishes the items according to what
indicated on the screen (it will have its own screen, which it will access through its
password). When doing so, you must inform the system of the product and the quantity that
has been replenished. The system must immediately update the stock, issue a
summary of missing in two copies, as proof of replacement and invoice for the
holder of the machine.
Rosa Maray Carranza Rivera

Approach 4 Class Diagram Modeling


You have been hired by the IOC (International Olympic Committee) to analyze,
design and implement a solution that allows the committee to be aware of
all the details involved in this great event. After repeated meetings with
the IOC decided to carry out a pilot development on football competencies
the Olympics, in order to determine the effectiveness of the future system. The
football competitions will have a series of stadiums for development
each of the matches. Each match will involve the participation of two teams
which will represent a guest country and a designated group of
referees; each of these matches must provide us with information about:
the goals scored and the cards issued, in addition to knowing what the attendance was
from the public to each match and the event phase to which it belonged. Each team is
made up of 20 players and a coaching staff. From each player, we want to know
information such as name, date and place of birth, position played, etc.
It is necessary to know the name, date, and place of birth of the coaching staff.
cargo, etc. It is necessary to know the referees' name, date, and place of birth,
the federation to which he belongs and his position. We want information about the goals and the cards.
to know the match, the minute, and the person related to the goal (who scored it)
(he/she/they put in). The Olympic stadiums are stadiums that have mostly been
renovated or newly built to give a boost to sports in China. It is because
Hello, the organizing committee wishes to know the basic characteristics of each
stadium such as, for example, capacity, city where they are located, if it has
ceiling or not, etc.
Rosa Maray Carranza Rivera

Approach 5 Class diagram modeling


An automated parking lot with a capacity for 400 cars is desired.
agreement to the following requirements: The users of the parking lot will have
from a magnetic card where your identification code is registered. To your
Upon arriving at the parking lot, the user will insert the card into the reader.
corresponding, which causes the barrier located at the entrance to rise. This
barrier remains raised for a certain time, then descends
automatically. To exit the parking lot, proceed in the same way with the
barrier located at the exit. Both the entrances and exits must remain
registered for the purpose of periodically billing users,
according to the parking time consumed. These invoices will be issued to
operator request. The system must take into account the occupancy of
parking lot, controlling a traffic light located at the entrance. If there are spots
available free, the traffic light must be green, turning red if the
parking is full. Furthermore, when the parking lot is full, it should not
allow the entry of new vehicles.
Rosa Maray Carranza Rivera

Approach 6 Modeling of sequence diagram


A sports facility center wants to create a booking application. In
the center has sports facilities (swimming pools, frontons, gyms, and courts of
thesis). The center in question has partners, of whom their names are stored,
address, city, state, phone and fee. In addition, there are a series of articles
that can be reserved if the member requires it (balls, nets, and rackets). Each
installation is reserved by a member on a given date starting from a start time
up to one hour before the end. Each reservation can be associated with one or more items
sports equipment that is rented separately. For example, if I want to make a reservation for
playing tennis, I have to book a sports facility and if I need it, the
rackets.
Rosa Maray Carranza Rivera

Approach 7 Sequence Diagram Modeling


A controller for a scalextric car track is to be created. This scalextric
will be composed of a track on which two vehicles will circulate, so that one
will be controlled by a computer, and the other by a person. The vehicles will have
associated an identifier, a speed, a time, a lap counter, and a
sensor that reports the proximity of the opposing vehicle. A few
centimeters from the beginning of a curve there will be some sensors that provide information
about the curvature of the same to the vehicle. In the same way, a few
centimeters of a slope, there will also be sensors placed that inform
to the vehicle for the inclination of it. These two types of sensors will be useful to you
to calculate the speed to take at the next moment. There will also be on the track
a sensor at the finish line so that the car can keep track of the
laps. The end of the race will be determined by the completion of a series of
laps configured at the beginning of the race, or due to the exit from the track of one of
the two vehicles. In both cases, the winning car will appear on a screen. If
neither of them has gone off the track, the identifier of this car will be included
along with the duration in a records table.
Rosa Maray Carranza Rivera

Programming languages (C++, JAVA, C#)

Entries Platforms Compiler Linker Environment Development


of Integrated
Development
C++ cout << num_candies Windows GCC Dynamic Builder
sweets MingW GNU Editor IDE
Linux MinGW
Mac Turbo C
Turbo C++
JAVA slash "//" Bytecode Java HTML5 IDE Editor
Sun Development HTML
MicrosystemsKit or JDK JavaScript
CSS
PHP
C# Public class clsDate Sun Eclipse
{ MicrosystemsNetbeans
Private int month cIntelliJ IDEA
{get Bytecode Codenvy
return month; JCreator
} JRE (Java
Set Runtime
{ Environment
If
(value>0&&value<13) JDK Java
value Development
} Kit)
}
}
Rosa Maray Carranza Rivera

Analysis of the advantages of portability between different platforms that


They present object-oriented programming languages.
Rosa Maray Carranza Rivera

Conclusion
Object-oriented programming is based on classes and objects. Learning to
Managing them is essential for the next step, which is to understand another of the great
advantages of this type of programming: how classes relate to each other and us
they allow complex applications to be focused in a simple way.

You might also like