SlideShare a Scribd company logo
1 of 4
AlgorithmName:Calculationof Overdue_Amount
Purpose:tocalculate whichbooksare overdue
Start
FirstName,LastName,School,StudentID,BookTitle,SchoolN,RentalCategory:String
Overdue,OverdueAmount:array[1..50] of integer
REA,FLA,BRA,CRA,HAS,Student,DateRented,date,TotalAmount,Expenditure:integer
ReqDateIn,DateReturned:array[1..3] of integer
OverdueFee=10
Write(‘Enterfirstname of student’)
Read(FirstName)
Write(‘Enterthe lastname of the student’)
Read(LastName)
Write(‘Enterschool thatthe childattends’)
Read(School)
Write(‘Enterthe firstthree lettersof the school thatthe studentattends’)
Read(SchoolN)
Write(‘Entertitle of book’)
Read(BookTitle)
Read(‘Enterrental Categoryinfull.egResource’)
Read(RentalCategory)
Write(‘Enterdate returnedinformddmmyyyy’)
Write(‘Enterday’)
Read(DateReturned[1])
Write(‘Enterthe month’)
Read(DateReturned[2])
Write(‘Enterthe year’)
Read(DateReturned[3])
Write(‘Enterthe date thatthe bookshouldhave beenreturned’)
Write(‘Enterthe day’)
Read(ReqDateIn[1])
Write(‘Enterthe month’)
Read(ReqDateIn[2])
Write(‘Enterthe year’)
Read(ReqDateIn[3])
Write(‘Enterthe date bookwasrented’)
Read(‘DateRented’)
Write(‘Enterstudentid’)
Read(StudentID)
Write(‘Enterthe expenditureforthe library’)
Read(expenditure)
OverdueAmount[Student]=DateReturned[2] - ReqDateIn
If school= ‘FLA’then
FLA=OverdueAmount
ELSE
IF SchoolN =‘BRA’ then
BRA=OverdueAmount
ELSE
IF SchoolN=’CRA’then
CRA=OverdueAmount
IFSchoolN=’HAS’then
HAS=OverdueAmount
If SchoolN=’REA’then
REA=OverdueAmount
Endif
If RentalCategory =’Resource’ANDOverdueAmount[student]>5then
Write(‘Receipt’)
Write(‘Name:‘FirstName,LastName)
Write(‘School:‘School)
Write(‘Date:‘date)
Write(‘BookTitle:‘BookTitle)
Write(‘No.of DaysOverdue:‘OverdueDays)
Write(‘Total Cost:‘OverdueAmount)
ELSE
If RentalCategory=’Resource’ANDOverdueAmount[student]=<5then
Write(‘The bookisnotOverdue’)
ELSE
If RentalCategory=’Reference’ANDOverdueAmount[student]>5then
Write(‘Receipt’)
Write(‘Name:‘FirstName,LastName)
Write(‘School:‘School)
Write(‘Date:‘date)
Write(‘BookTitle:‘BookTitle)
Write(‘No.ofDaysOverdue: ‘OverdueDays)
Write(‘Total Cost:‘OverdueAmount)
ELSE
If RentalCategory=’Reference’ANDOverdueAmount[Student]<=10then
Write(‘The bookisnotOverdue’)
Endif
If expenditure >LibraryIncome then
Write(‘The libraryhasmade aprofit’)
ELSE
If expenditure>LibraryIncome then
Write(‘The libraryisata loss’)
Endif
Stop.

More Related Content

Viewers also liked (18)

CV 2 MAHMOUD
CV 2 MAHMOUDCV 2 MAHMOUD
CV 2 MAHMOUD
 
Imágenes de Articulaciones Pélvicas
Imágenes de Articulaciones PélvicasImágenes de Articulaciones Pélvicas
Imágenes de Articulaciones Pélvicas
 
Cuadro caracteristicas modalidades
Cuadro caracteristicas modalidadesCuadro caracteristicas modalidades
Cuadro caracteristicas modalidades
 
Organización dentro de la Administracion
Organización dentro de la AdministracionOrganización dentro de la Administracion
Organización dentro de la Administracion
 
Termes romanes15
Termes romanes15Termes romanes15
Termes romanes15
 
Global marketing
Global marketingGlobal marketing
Global marketing
 
Og kr - Thol 21
Og kr - Thol 21Og kr - Thol 21
Og kr - Thol 21
 
GrahamRussellNFederalResume2017
GrahamRussellNFederalResume2017GrahamRussellNFederalResume2017
GrahamRussellNFederalResume2017
 
Tarea 1
Tarea 1Tarea 1
Tarea 1
 
Seratio Proof-of-Impact Transaction Platform (11 Feb 2017) [v3.05]
Seratio Proof-of-Impact Transaction Platform (11 Feb 2017) [v3.05]Seratio Proof-of-Impact Transaction Platform (11 Feb 2017) [v3.05]
Seratio Proof-of-Impact Transaction Platform (11 Feb 2017) [v3.05]
 
Origens roma
Origens romaOrigens roma
Origens roma
 
План-конспект
План-конспектПлан-конспект
План-конспект
 
Pr zv ek - AF - SA-EX 480
Pr zv ek - AF - SA-EX 480Pr zv ek - AF - SA-EX 480
Pr zv ek - AF - SA-EX 480
 
Stop Pesticidi - Rapporto 2017
Stop Pesticidi - Rapporto 2017Stop Pesticidi - Rapporto 2017
Stop Pesticidi - Rapporto 2017
 
I Remember Cliford
I Remember ClifordI Remember Cliford
I Remember Cliford
 
Here and Averywere
Here and AverywereHere and Averywere
Here and Averywere
 
CINDYS PROFILE-NEW 2017
CINDYS PROFILE-NEW 2017CINDYS PROFILE-NEW 2017
CINDYS PROFILE-NEW 2017
 
3 а клас
3 а клас3 а клас
3 а клас
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Algorithm