SlideShare a Scribd company logo
1 of 1
Download to read offline
3: Diseases [10 marks] create two classes: zika and Plague. Each of these classes must extend
the Disease class. Each of these classes must define (override) both abstract methods inherited
from Disease. For each, when creating objects, the name passed in should just be the name of the
disease. COMP1006/1406 Fall 2016 Assignment #5 Due Tuesday, November 1 at 3:30 pm zika
class: The severity should be an integer between 0 and 10 (inclusive) public void impact (Person
p) Precondition: none Post conditions: none Side Effects: (1) the person's health will be
decreased by the value of the severity of the disease (2) The disease's severity will be reduced
by 1 (until it reaches zero) (3) The disease's chance of transmission is reduced by 10% (i.e. 0.9
current chance of transmission) public void treat Pre and post conditions: none Side Effects:
Both the severity and chance of transmission are reduced by a factor of 2. (i.e each is replaced by
1/2 of the current value using integer division for severitv)
Solution
Please find the required classes along with the comments which describes the step :

More Related Content

Similar to 3 Diseases [10 marks] create two classes zika and Plague. Each of t.pdf

Health probabilities & estimation of parameters
Health probabilities & estimation of parameters Health probabilities & estimation of parameters
Health probabilities & estimation of parameters KwambokaLeonidah
 
Niall_McCarra_FYP_Final_Draft
Niall_McCarra_FYP_Final_DraftNiall_McCarra_FYP_Final_Draft
Niall_McCarra_FYP_Final_DraftNiall McCarra
 
Lectures_all_cesme2011
Lectures_all_cesme2011Lectures_all_cesme2011
Lectures_all_cesme2011Abebaw Miskir
 
Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser
Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser
Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser Wouter de Heij
 
Lin lab covid presentation 2020 03-16
Lin lab covid presentation 2020 03-16Lin lab covid presentation 2020 03-16
Lin lab covid presentation 2020 03-16Ania Wronski, PhD
 
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquationMathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquationAlexander Kaunzinger
 
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...IOSR Journals
 
Epidemiological modelling
Epidemiological modellingEpidemiological modelling
Epidemiological modellingSumit Das
 
Sensitivity Analysis of the Dynamical Spread of Ebola Virus Disease
Sensitivity Analysis of the Dynamical Spread of Ebola Virus DiseaseSensitivity Analysis of the Dynamical Spread of Ebola Virus Disease
Sensitivity Analysis of the Dynamical Spread of Ebola Virus DiseaseAI Publications
 
Modelo matemático: el confinamiento disminuye significativamente la velocidad...
Modelo matemático: el confinamiento disminuye significativamente la velocidad...Modelo matemático: el confinamiento disminuye significativamente la velocidad...
Modelo matemático: el confinamiento disminuye significativamente la velocidad...diariodenoticias
 

Similar to 3 Diseases [10 marks] create two classes zika and Plague. Each of t.pdf (12)

Health probabilities & estimation of parameters
Health probabilities & estimation of parameters Health probabilities & estimation of parameters
Health probabilities & estimation of parameters
 
Ijsea04031004
Ijsea04031004Ijsea04031004
Ijsea04031004
 
Niall_McCarra_FYP_Final_Draft
Niall_McCarra_FYP_Final_DraftNiall_McCarra_FYP_Final_Draft
Niall_McCarra_FYP_Final_Draft
 
Lectures_all_cesme2011
Lectures_all_cesme2011Lectures_all_cesme2011
Lectures_all_cesme2011
 
Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser
Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser
Dynamics and Control of Infectious Diseases (2007) - Alexander Glaser
 
Lin lab covid presentation 2020 03-16
Lin lab covid presentation 2020 03-16Lin lab covid presentation 2020 03-16
Lin lab covid presentation 2020 03-16
 
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquationMathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
 
2.epidemilogic measures
2.epidemilogic measures2.epidemilogic measures
2.epidemilogic measures
 
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
 
Epidemiological modelling
Epidemiological modellingEpidemiological modelling
Epidemiological modelling
 
Sensitivity Analysis of the Dynamical Spread of Ebola Virus Disease
Sensitivity Analysis of the Dynamical Spread of Ebola Virus DiseaseSensitivity Analysis of the Dynamical Spread of Ebola Virus Disease
Sensitivity Analysis of the Dynamical Spread of Ebola Virus Disease
 
Modelo matemático: el confinamiento disminuye significativamente la velocidad...
Modelo matemático: el confinamiento disminuye significativamente la velocidad...Modelo matemático: el confinamiento disminuye significativamente la velocidad...
Modelo matemático: el confinamiento disminuye significativamente la velocidad...
 

More from fashiondestinationld

Determine if the following series or improper integrals are converge.pdf
Determine if the following series or improper integrals are converge.pdfDetermine if the following series or improper integrals are converge.pdf
Determine if the following series or improper integrals are converge.pdffashiondestinationld
 
Define the yield to maturity.SolutionYTM is the discount rate .pdf
Define the yield to maturity.SolutionYTM is the discount rate .pdfDefine the yield to maturity.SolutionYTM is the discount rate .pdf
Define the yield to maturity.SolutionYTM is the discount rate .pdffashiondestinationld
 
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdfCPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdffashiondestinationld
 
a) How many bit strings of length 6 are there which contain at least.pdf
a) How many bit strings of length 6 are there which contain at least.pdfa) How many bit strings of length 6 are there which contain at least.pdf
a) How many bit strings of length 6 are there which contain at least.pdffashiondestinationld
 
A group of legislators wanted to look at factors that affect the num.pdf
A group of legislators wanted to look at factors that affect the num.pdfA group of legislators wanted to look at factors that affect the num.pdf
A group of legislators wanted to look at factors that affect the num.pdffashiondestinationld
 
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
6. Why might The Home Depot and Lowes choose such odd dates to end.pdffashiondestinationld
 
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdfChapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdffashiondestinationld
 
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdfCASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdffashiondestinationld
 
You and another tech are discussing the relative merits of SCSI inte.pdf
You and another tech are discussing the relative merits of SCSI inte.pdfYou and another tech are discussing the relative merits of SCSI inte.pdf
You and another tech are discussing the relative merits of SCSI inte.pdffashiondestinationld
 
Which of the following is NOT true of reflexes They are involuntary.pdf
Which of the following is NOT true of reflexes  They are involuntary.pdfWhich of the following is NOT true of reflexes  They are involuntary.pdf
Which of the following is NOT true of reflexes They are involuntary.pdffashiondestinationld
 
What is this pedigree and example of Autosomal dominant autosomal .pdf
What is this pedigree and example of  Autosomal dominant  autosomal .pdfWhat is this pedigree and example of  Autosomal dominant  autosomal .pdf
What is this pedigree and example of Autosomal dominant autosomal .pdffashiondestinationld
 
what is total output in economicsSolutionWhat is total output .pdf
what is total output in economicsSolutionWhat is total output .pdfwhat is total output in economicsSolutionWhat is total output .pdf
what is total output in economicsSolutionWhat is total output .pdffashiondestinationld
 
What are the components of the prokaryotic and eukaryotic cells a.pdf
What are the components of the prokaryotic and eukaryotic cells a.pdfWhat are the components of the prokaryotic and eukaryotic cells a.pdf
What are the components of the prokaryotic and eukaryotic cells a.pdffashiondestinationld
 
The Software Quality plan and a Software Configuration Management pl.pdf
The Software Quality plan and a Software Configuration Management pl.pdfThe Software Quality plan and a Software Configuration Management pl.pdf
The Software Quality plan and a Software Configuration Management pl.pdffashiondestinationld
 
t distribution is a continuous distribution.TrueFalseSolutio.pdf
t distribution is a continuous distribution.TrueFalseSolutio.pdft distribution is a continuous distribution.TrueFalseSolutio.pdf
t distribution is a continuous distribution.TrueFalseSolutio.pdffashiondestinationld
 
Since this is a group discussion, each group has own conversation for.pdf
Since this is a group discussion, each group has own conversation for.pdfSince this is a group discussion, each group has own conversation for.pdf
Since this is a group discussion, each group has own conversation for.pdffashiondestinationld
 
REEF Activity Which of the following general transcriptions factors u.pdf
REEF Activity Which of the following general transcriptions factors u.pdfREEF Activity Which of the following general transcriptions factors u.pdf
REEF Activity Which of the following general transcriptions factors u.pdffashiondestinationld
 
Q2. Jay rents a room in his house to a college student. In the event.pdf
Q2. Jay rents a room in his house to a college student. In the event.pdfQ2. Jay rents a room in his house to a college student. In the event.pdf
Q2. Jay rents a room in his house to a college student. In the event.pdffashiondestinationld
 
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdfProblem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdffashiondestinationld
 
Please find a solution, show your work. Thx E None of the above. .pdf
Please find a solution, show your work. Thx E None of the above. .pdfPlease find a solution, show your work. Thx E None of the above. .pdf
Please find a solution, show your work. Thx E None of the above. .pdffashiondestinationld
 

More from fashiondestinationld (20)

Determine if the following series or improper integrals are converge.pdf
Determine if the following series or improper integrals are converge.pdfDetermine if the following series or improper integrals are converge.pdf
Determine if the following series or improper integrals are converge.pdf
 
Define the yield to maturity.SolutionYTM is the discount rate .pdf
Define the yield to maturity.SolutionYTM is the discount rate .pdfDefine the yield to maturity.SolutionYTM is the discount rate .pdf
Define the yield to maturity.SolutionYTM is the discount rate .pdf
 
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdfCPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
CPU has an ArithmeticLogic Unit (ALU). Which are true for ALUSel.pdf
 
a) How many bit strings of length 6 are there which contain at least.pdf
a) How many bit strings of length 6 are there which contain at least.pdfa) How many bit strings of length 6 are there which contain at least.pdf
a) How many bit strings of length 6 are there which contain at least.pdf
 
A group of legislators wanted to look at factors that affect the num.pdf
A group of legislators wanted to look at factors that affect the num.pdfA group of legislators wanted to look at factors that affect the num.pdf
A group of legislators wanted to look at factors that affect the num.pdf
 
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
6. Why might The Home Depot and Lowes choose such odd dates to end.pdf
 
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdfChapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
Chapter 16 Question 15 - Case StudyWhat can fish color tell us abo.pdf
 
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdfCASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
CASE APPLICATION #3 Decision Making, Saudi Style appreciate the disti.pdf
 
You and another tech are discussing the relative merits of SCSI inte.pdf
You and another tech are discussing the relative merits of SCSI inte.pdfYou and another tech are discussing the relative merits of SCSI inte.pdf
You and another tech are discussing the relative merits of SCSI inte.pdf
 
Which of the following is NOT true of reflexes They are involuntary.pdf
Which of the following is NOT true of reflexes  They are involuntary.pdfWhich of the following is NOT true of reflexes  They are involuntary.pdf
Which of the following is NOT true of reflexes They are involuntary.pdf
 
What is this pedigree and example of Autosomal dominant autosomal .pdf
What is this pedigree and example of  Autosomal dominant  autosomal .pdfWhat is this pedigree and example of  Autosomal dominant  autosomal .pdf
What is this pedigree and example of Autosomal dominant autosomal .pdf
 
what is total output in economicsSolutionWhat is total output .pdf
what is total output in economicsSolutionWhat is total output .pdfwhat is total output in economicsSolutionWhat is total output .pdf
what is total output in economicsSolutionWhat is total output .pdf
 
What are the components of the prokaryotic and eukaryotic cells a.pdf
What are the components of the prokaryotic and eukaryotic cells a.pdfWhat are the components of the prokaryotic and eukaryotic cells a.pdf
What are the components of the prokaryotic and eukaryotic cells a.pdf
 
The Software Quality plan and a Software Configuration Management pl.pdf
The Software Quality plan and a Software Configuration Management pl.pdfThe Software Quality plan and a Software Configuration Management pl.pdf
The Software Quality plan and a Software Configuration Management pl.pdf
 
t distribution is a continuous distribution.TrueFalseSolutio.pdf
t distribution is a continuous distribution.TrueFalseSolutio.pdft distribution is a continuous distribution.TrueFalseSolutio.pdf
t distribution is a continuous distribution.TrueFalseSolutio.pdf
 
Since this is a group discussion, each group has own conversation for.pdf
Since this is a group discussion, each group has own conversation for.pdfSince this is a group discussion, each group has own conversation for.pdf
Since this is a group discussion, each group has own conversation for.pdf
 
REEF Activity Which of the following general transcriptions factors u.pdf
REEF Activity Which of the following general transcriptions factors u.pdfREEF Activity Which of the following general transcriptions factors u.pdf
REEF Activity Which of the following general transcriptions factors u.pdf
 
Q2. Jay rents a room in his house to a college student. In the event.pdf
Q2. Jay rents a room in his house to a college student. In the event.pdfQ2. Jay rents a room in his house to a college student. In the event.pdf
Q2. Jay rents a room in his house to a college student. In the event.pdf
 
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdfProblem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
Problem 5.7 Part A How do mammals, including humans, solve the dosa.pdf
 
Please find a solution, show your work. Thx E None of the above. .pdf
Please find a solution, show your work. Thx E None of the above. .pdfPlease find a solution, show your work. Thx E None of the above. .pdf
Please find a solution, show your work. Thx E None of the above. .pdf
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 

Recently uploaded (20)

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 

3 Diseases [10 marks] create two classes zika and Plague. Each of t.pdf

  • 1. 3: Diseases [10 marks] create two classes: zika and Plague. Each of these classes must extend the Disease class. Each of these classes must define (override) both abstract methods inherited from Disease. For each, when creating objects, the name passed in should just be the name of the disease. COMP1006/1406 Fall 2016 Assignment #5 Due Tuesday, November 1 at 3:30 pm zika class: The severity should be an integer between 0 and 10 (inclusive) public void impact (Person p) Precondition: none Post conditions: none Side Effects: (1) the person's health will be decreased by the value of the severity of the disease (2) The disease's severity will be reduced by 1 (until it reaches zero) (3) The disease's chance of transmission is reduced by 10% (i.e. 0.9 current chance of transmission) public void treat Pre and post conditions: none Side Effects: Both the severity and chance of transmission are reduced by a factor of 2. (i.e each is replaced by 1/2 of the current value using integer division for severitv) Solution Please find the required classes along with the comments which describes the step :