0% found this document useful (0 votes)
7 views16 pages

AllSolutionDWSI2023 ENG

The document outlines solutions for exercises related to high school systems, including decision, information, and operating systems. It discusses the roles of external actors, coding methods for student identification, and the relationships between entities such as subscribers and newsletters. Additionally, it provides a data dictionary for member information in a library context.

Uploaded by

fatuhadu
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)
7 views16 pages

AllSolutionDWSI2023 ENG

The document outlines solutions for exercises related to high school systems, including decision, information, and operating systems. It discusses the roles of external actors, coding methods for student identification, and the relationships between entities such as subscribers and newsletters. Additionally, it provides a data dictionary for member information in a library context.

Uploaded by

fatuhadu
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/ 16

Solution of Sheet DW N°1 :

Exercise 1 solution:

1 - Determine what are the éléments that are part of a high school of:
- Décision system, Principal
- Information system, Schooling
- Operating system.Teacher (Professors)

2 - What are the external actors in the organization of the school? Parents, students

3 - Complete the systemic analysis scheme of a high school, looking for the flow of
information circulating between the previous subsystem

 
 
  principal  
 
1,  ,3  
  6   Orientation  
  Inscription  
confirmation  
  Form   newsletter    
Schooling  
  Acceptance  
 
  mail  
  2   4,5  
  Professors  
 
1- A meeting of the board of directors determined dates which limit each of the
quarters of the school year
2- These dates are included in the school's internal regulations
3- The principal fixes the dates of the advice
4- Teacher must have completed quarterly bulletins
5- Teacher must note the absences of their students
6- Schooling establishes syntheses for the principal.

Exercise 2 solution :

If        x,y,z  are  the  same  sign  then    𝑠 = 𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐            


 
 
Else      𝒔 = 𝒙 + 𝒚 + 𝒛  
 
 
 
 
Etape  1  :  Extraction  of  conditions  
  3  conditions  
Négation  
  x>=0   X<0  
  Négation  
  y>=0   y<0  
Négation  
  z>=0   z<0  
 
 
 
Step  2  :  Extraction  of    actions  
 
  𝑠 = 𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐            
  Action1  

𝒔 = 𝒙 + 𝒚 + 𝒛    
  Action2  
 
 
Step  3:    Calculate  the  number  of  rules  
 
Number  of  rules  =  number  of  C1  *  number  of    C2  *  number    of    C3  
=  𝟐 ∗ 𝟐 ∗ 𝟐 = 𝟖  
 
  x  >=0  ?   2  possible  values  (Yes  or  No)  
  y>=0  ?   2  possible  values  (Yes  or  No)  
  2  possible  values  (Yes  or  No)  
  z  >=0  ?  
   

    R1   R2   R3   R4   R5   R6   R7   R8  
C1   X  >=0  ?   Y   Y   Y   Y   N   N   N   N  
C2   Y>=0  ?   Y   Y   N   N   Y   Y   N   N  
C3   Z  >=0  ?   Y   N   Y   N   Y   N   Y   N  
A1   𝑠 = 𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐   X               X  
A2   𝒔 = 𝒙 + 𝒚 + 𝒛       X   X   X   X   X   X    
 

Note:  if  they  ask  to  reduce  the  table  

    R1   R2   R3   R4   R5   R6   R7   R8  
C1   X  >=0  ?   Y   Y   Y   Y   N   N   N   N  
C2   Y>=0  ?   Y   Y   N   N   Y   Y   N   N  
C3   Z  >=0  ?   Y   N   Y   N   Y   N   Y   N  
A1   𝑠 = 𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐   X               X  
A2   𝒔 = 𝒙 + 𝒚 + 𝒛       X   X   X   X   X   X    
 

 
    R1   R2   R’=R3 R’=R5&   R7   R8  
&R4   R6  
C1   X  >=0  ?   Y   Y   Y   N   N   N  
C2   Y>=0  ?   Y   Y   N   Y   N   N  
C3   Z  >=0  ?   Y   N   =   =   Y   N  
A1   𝑠 = 𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐   X           X  
A2   𝒔 = 𝒙 + 𝒚 + 𝒛       X   X   X   X    

----------------------------------------------------------------------------------------
Solution of Sheet DW N°2 :
Solution of the exercise 1 :
R2-R11 cannot be simplified because they lead to a contradiction with R3 for
example
R1-R5-R9- R3-R4
R6-R14 R7-R8 R15-R16
R13
- - Y Y N
- N N Y N
Y Y N N N
Y N - - -

Solution of the exercise 2


1. What is the point of codifying certain information?
Allow unambiguous representation and practical manipulation of information in the IS. A
code is an abbreviated name assigned to an object.
2. What are the properties of good coding?
-Unambiguous: An object must correspond to one and only one code and vice versa.
-Well adapted: A code must be well adapted to the needs of the user.
-Interpretable: A code must be easy to decode. To do this, you must use codes that are easy
to read and interpret, such as abbreviations or other.
-Extensible: A code must offer the possibility of being extended according to the class of
object to be coded.
-With possible insertion: A code must provide enough values to cover all occurrences of the
class for which it is intended.
- Concise: A code must be clear and short to save time and space.

3. Adopting articulated coding, propose the format of a student code and give the actual
maximum number of students that this code can take. ? |____|____|____|____|____|
LevSpec Sec N° Seq Max number= 3 x 4 x 3 x 90 = 3240.
4. Propose the format of a student's code using Categoty Coding. (We wish classer les
étudiants par spécialité).
classify students by specialty).
First tranche: 1…810
Second tranche: 811…1620
Third tranche: 1621…2430
Fourth tranche: 2431…3240
The coding in each slice is sequential.
|____|____|____|____|
Spec N° Seq Max number= 4x 999= 4006 students
For example: first students of section G.L: 1621 its full code is:
|3|1621. This second format of the code is shorter.
5. Compare the two previous coding methods (number of recordings and quality
criteria).
Coding by Category ‘class’, although very simple and concise, requires a correspondence
table of the classes to be coded. On the other hand, articulated coding can cause saturation and
is complex (several descriptors).  
-----------------------------------------------------------------------------------------------------------------

THE SOLUTION OF SHEET DW N° 03


(1) Identify the entities present
· The SUBSCRIBERS entity represents all subscribers.
· The RUBRIC entity represents all the headings to which the subscriber can
register.
· The NEWSLETTERS entity represents the newsletters sent,
· The MOTIVATIONS entity represents all of the motivations for registration of
subscribers .  

(2) List the properties of entities


A Subscriber is characterized by his/her last name, first name, age, gender, profession, street,
his postal code, his city, his country, his telephone number and his email.
A Newsletter is characterized by its subject, its sending date and its content.
A Motivation is characterized by its title.
A Rubric is characterized by its name.
 
(3) Uniquely identify each occurrence
Let's imagine that we have two subscribers called 'DUPOND: it is necessary to
distinguish otherwise they will be confused. We then add a property which will allow
to uniquely identify each occurrence. This property is called the identifier
the entity. This can be an internal reference, a code, or more generally an integer.
This property is underlined to highlight its role as an identifier.  
 
MOTIVATIONS SUBSCRIBERS Rubric NEWSLETTER
Id_Motivations Id_ Titled Id_ Rubric Id_Newsletter
Titled last name
Name Subject
  First name, Age
 
Gender Date
  Content.  
Profession
  Street
Postal code
  City
Country
  Phone number and
email  
 

(4) Establish relationships between different entities


Let us return to our initial text:
"A Subscriber has a Motivation. A Subscriber registers for one or more Rubric. Each
Rubric sends a Newsletter."
The verbs are in red and connect the entities. Simply integrate them into the diagram:

Conceptual Data Model (CDM):

 
 
 
 
 
 
 
 
 
 
 
 
 
 
5) A Subscriber has here one and only one Motivation for registration, the marketing having
imposed a mandatory field in order to have this value. We therefore have 1 minimum, and 1
maximum. Hence the
cardinality (1;1).
A given Motivation concerns 0 or more Subscribers. We therefore have 0 minimum, and n in
maximum. Hence the cardinality (0;n).
Likewise, a Subscriber registers for one or more Sections: (1;n),
And a Section has 0 or more Subscribers: (0;n).
Finally, a Section sends 0 or more Newsletters: (0;n),
And a Newsletter belongs to one and only one Newsletter: (1;1).
 

 
The solution of Sheet DW N°04
LE DICTIONNAIRE DES DONNES :
Numéro Code désignation Type taille
01 CodeMbr Code member Digital 10
02 MbrName Nom member Alphabetical 25
03 MobileMbr Mobile Number Digital 10
04 N°Cop Copie Number Digital 10
05 Avail Availibility Boolean 1
06 N° Book Book Number Digital 10
07 Aut Author Alphabetical 25
08 Tit Title Alphabetical 50
09 NbrCop Number of copies Digital 2
10 Price Price Digital 10
11 Edit Editor Alphabetical 25
12 DateBorr Borrowing  date Date 8
13 DateRet Return  date Date 8
14 Dly Delay   Digital 3

CONCEPTUAL DATA MODEL:    

  Copie  
Member   Loan   0.1  
  0.6     N°  Cop  
CodeMbr  
DateBorr   Avail  
MbrName  
 
DatRet    
MobileMbr  
  Delay  
  1.1  
 

  C.I.F  

  4.*  
 

  Book  

  N°Book  
Author    
  Title  
  NbrCop  
Price  
  Editor  
 
 

 
THE SOLUTION OF SHEET N° 05
Conceptual Data Model (CDM):
 

   

Logical Data Model (LDM):


RaceTrack (RaceTrackCode, Street, City, PC)
RaceType (RaceTypeCode, RaceTypeWording)
Owner (OwnerNumber, OwnerName).
RaceCategory (RaceCategoryCode, RaceCategoryWording)
Jockey (JockeyCode, JockeyName)
Race (NoRace., RaceDesignation, RacePrice, RaceDate, # RaceCategoryCode, #
RaceTrackCode, # RaceTypeCode)
Horse (N°Horse,Horse Name, Sex, Birth Date, #N°Owner)
Equip (RaceCategoryCourse-RaceTrackCode)
Participate (NoRace. N°Horse -JockeyCode, BibNumber).
 
Physical Data Model (MPD) :
RaceCategory RaceTrack  
PK RaceCategoryCode Equip
PK RaceTrackCode  
RaceCategoryWording   PK RaceTrackCode RaceTrackName
  PK RaceCategory RaceTrackStreet  
  RaceTrackCity
RaceTrackPC  

 
Race
 
PK RaceNumber RaceType
RaceDesigntion  
PK RaceTypeCode
RacePrice
RaceTypeWording  
RaceDate
 
FK RaceCategoryCode
FK RaceTrackCode
 
FK RaceTypeCode
 

 
Participate  
 
PK  HoresCode  

PK  RaceNumber    

PK  JockyCode    

Horse Owner
Jocky PK HorseCode PK OwnerNumber
HorseName OwnerName  
PK JockyCode HorseSex  
JockyName   HorseDateBirth
  FK OwnerNumber  
 
 
 

 
 

LA SOLUTION DE LA FICHE TD N° 06
1/ Le Modèle Conceptuel de Donnée

Client   0-­‐n   1-­‐1   Consumption 1-­‐n  


ClientCode   Take   NoConsumt, Concern1  
0-­‐n  
ClientName   ConsumptDate
ClientSuName   1-­‐n   ConsumptTime   Service
City   Do   CodeServ,
PC   DesignServ
Mob    
Email   1-­‐1   1-­‐n  
Reservation   Offer  
N°Réservation  
1-­‐1   Concern2  
Startdate, Enddate, 0-­‐n  
Depositpaymentdate Hotels
Depositamount, 0-­‐n   1-­‐n   No.Hotel
  Belong2  
Category   1-­‐1   NameH
CategCode   Room CityH
1-­‐1  
CategDescript   1-­‐n   1-­‐1   N°Room PCH
Belong1   PhoH
PhoRoom Get  
0-­‐n    
1-­‐n  
Pricing   1-­‐n   Classes  
NberStars  
2/ Logic Data Model
Customer (CustomerCode, Name, Surname, , City, PostalCode, , Mobl, Email).
Categories (CategoCode, CategoDescript).
Class(NberStars).
Reservations (N°Reservation, Startdate, Enddate, Depositpaymentdate, Depositamount , # N°Room,
#ClientCode).
Room (N°Room, MobRoom , # N°Hotel, # CategoCode).
Hotels(N°.Hotel,NameH,CityH,PCH,MobH, #NbreStars).
Consumption (NoConsumpt, ConsumptDate, ConsumptTime, #ClientCode).
OfferService (N°Hotel, CodeServ).
Price (CategoCode, NberStars).
Service (ServCode , DesignServ).
Concern1 (ServCode, NoConsumpt).
2/Physical Data Model :
 
Consumption
Concern1  
PK NoConsumt,
Client   PK CodeServ  
ConsumptDate
PK  ClientCode  
ConsumptTime PK NoConsumt  
ClientName   FK  ClientCode  
ClientSuName     Service
City   PK CodeServ
DesignServ
PC   Offer
Reservation    
Mob   PK CodeServ  
PK N°Réservation  
Email  
Startdate, PK No Hotel   Hotels
Enddate, PK No.Hotel
   
Depositpaymentdate NameH
  Depositamount CityH
FK ClientCode PCH
  FK N° Room   PhoH
  Room FK NberStars
PK N°Room  
Category   PhoRoom
PK  CategCode   FK CategCode
 
CategDescript   FK No Hotel  
   
Pricing
  Classes  
PK NberStars
  PK CategCode PK  NberStars
 
 
 
 

 
THE SOLUTION OF SHEET DW N° 07

-Establishment of the Flow Graph


-Establishment of the Conceptual Model of Treatments.
 

 
 

THE SOLUTION OF SHEET DW N° 08

 
 

Conceptual    Model  of  Treatment  (CMT)    

  Card    
request  
   
  Request  processing    

  Client  status  check  

  not  Client                  Client  

  Grouped  
Rejection  
request  
 
         
  Card  Establissement    
 

 
Always  
 
Card    
 

 
 
  Provision  

  Receiving  cards  
Mailing  preparation    
   
Always  
 
Deadline  2  
 
Notification months  Exceeded  
Withdraw   (DE)  
  request  
(N)  
(WR)  
 

 
N  et  DE  
   
Card    recovery   Destruction    
   
 

Always  
  Always  

 
Destroyed  
Refundable   card  
 
card  
 

 
Organisationnel    Model  of  Treatment  (OMT)  :  

périod   Request   Agency   Card  management  center   Type  

         
  Card        
request  
     
      Grouped    
    request    
Request  processing    
d     Manual  
    Client  status  check    
 
    not  Client                  Client    
Card  Establissement    
    Autom    
     
 

    Always    
  Rejection      
     
Card    
     
       
d+4     Provision    
    Manual    
Receiving  cards  
    Mailing  preparation      
       
  Always    
  Notification  
  (N)    
   
  Withdraw    
  request    
  (WR)    
WR  et  N  
   
  Card    recovery    
   
Manual    
   
Always  
   
   
  Deadline  2    
  Refundable   months  Exceeded    
d+64   card   (DE)    
   
 
   
  N  et  DE    
   
Destruction    
 
   
Manual  
Always  

Destroyed  
card  
 

You might also like