SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
Include the following methods in the class definition: - a constructor to initialize all instance
variables and update class variables; include appropriate default values for parameters - an
accessor method to get the order ID, number of large, medium and small t-shirts ordered, and to
compute and return the total t-shirts ordered for that single order - a mutator method to update
the number of t-shirts of any size ordered, given the size of t-shirt ("L" for large, " M " for
medium or " Sn for small) and the number of extra t-shirts of that size to be added to the existing
order; be sure to update the appropriate total as well - a method to compute the basic cost of the
order (ignoring discount and taxes); the cost of each t-shirt based on size is: Small - $5, Medium
- $8, Large $10 - a method to compute the discount for an order of more than 100t-shirts; 10%6
off of the basic cost, or zero if the order is for 100 or less t-shirts - a method to compute the tax,
after any discount has been removed from the basic cost - a method to compute the total cost of
the order, i.e., the basic cost, less any discount, plus taxes - a special method ___ str_ to return a
string containing information about the order (order ID, number of large, medium and small t-
shirts, basic order cost, discount amount, taxes and the total cost of the order) Test your class by
coding a main (] function to: - create 4 Order objects - print required information about each
object (using the str___method) - update the order of small t-shirts by some amount for one of
the orders - print the total number of all the t-shirts sold over all orders Sample input/output:
With the following sample input for 4 orders:
Irg=20,med=40,sml=60Irg=15,med=20Irg=40rg=0,med=0,sml=45 And an update on the order
with ID 103 for an extra 50 small shirts. The following is the output: OrderID: 101 Num Large
T-Shirts: 20 Num Medium T-Shirts: 40 Num Sma.11 T-Shirts: 60 Basic Order Cost: $820.00
Discount: $82.00 Tax: $110.70

Más contenido relacionado

Más de ALANKARSTEELINDUSTRI

Inorganic phosphorous is a naturally occurring element in all plants .pdf
 Inorganic phosphorous is a naturally occurring element in all plants .pdf Inorganic phosphorous is a naturally occurring element in all plants .pdf
Inorganic phosphorous is a naturally occurring element in all plants .pdfALANKARSTEELINDUSTRI
 
information flows within your job. Find out 1. the chart of accounts.pdf
 information flows within your job. Find out 1. the chart of accounts.pdf information flows within your job. Find out 1. the chart of accounts.pdf
information flows within your job. Find out 1. the chart of accounts.pdfALANKARSTEELINDUSTRI
 
Information about light in the outside world is used to tune the brai.pdf
 Information about light in the outside world is used to tune the brai.pdf Information about light in the outside world is used to tune the brai.pdf
Information about light in the outside world is used to tune the brai.pdfALANKARSTEELINDUSTRI
 
Infection control 16. Chain of infection 17. Factors that increase ho.pdf
 Infection control 16. Chain of infection 17. Factors that increase ho.pdf Infection control 16. Chain of infection 17. Factors that increase ho.pdf
Infection control 16. Chain of infection 17. Factors that increase ho.pdfALANKARSTEELINDUSTRI
 
In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf
 In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf
In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdfALANKARSTEELINDUSTRI
 
Larger raindrops fall than smaller raindrops. slower faster Questio.pdf
 Larger raindrops fall than smaller raindrops. slower faster Questio.pdf Larger raindrops fall than smaller raindrops. slower faster Questio.pdf
Larger raindrops fall than smaller raindrops. slower faster Questio.pdfALANKARSTEELINDUSTRI
 
L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf
 L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf
L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdfALANKARSTEELINDUSTRI
 
Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf
 Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf
Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdfALANKARSTEELINDUSTRI
 
Komal borrows $14,000 from her father to open her accounting practice.pdf
 Komal borrows $14,000 from her father to open her accounting practice.pdf Komal borrows $14,000 from her father to open her accounting practice.pdf
Komal borrows $14,000 from her father to open her accounting practice.pdfALANKARSTEELINDUSTRI
 
kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf
 kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf
kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdfALANKARSTEELINDUSTRI
 
Kingbird Co. has the following defined benefit pension plan balances .pdf
 Kingbird Co. has the following defined benefit pension plan balances .pdf Kingbird Co. has the following defined benefit pension plan balances .pdf
Kingbird Co. has the following defined benefit pension plan balances .pdfALANKARSTEELINDUSTRI
 
Kara categorized her spending for this month into four categories Re.pdf
 Kara categorized her spending for this month into four categories Re.pdf Kara categorized her spending for this month into four categories Re.pdf
Kara categorized her spending for this month into four categories Re.pdfALANKARSTEELINDUSTRI
 
Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf
 Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf
Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdfALANKARSTEELINDUSTRI
 
Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf
 Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf
Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdfALANKARSTEELINDUSTRI
 
JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf
 JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf
JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdfALANKARSTEELINDUSTRI
 
Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf
 Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf
Jenny (15 years old) is one of two beneficiaries of Trust B created.pdfALANKARSTEELINDUSTRI
 
JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf
 JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf
JCL Inc. Is a major chip manufacturing firm that sells its products t.pdfALANKARSTEELINDUSTRI
 
In the register there is a prolonged open phase. A. modal; falsetto B.pdf
 In the register there is a prolonged open phase. A. modal; falsetto B.pdf In the register there is a prolonged open phase. A. modal; falsetto B.pdf
In the register there is a prolonged open phase. A. modal; falsetto B.pdfALANKARSTEELINDUSTRI
 
J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf
 J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf
J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdfALANKARSTEELINDUSTRI
 
Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf
 Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf
Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdfALANKARSTEELINDUSTRI
 

Más de ALANKARSTEELINDUSTRI (20)

Inorganic phosphorous is a naturally occurring element in all plants .pdf
 Inorganic phosphorous is a naturally occurring element in all plants .pdf Inorganic phosphorous is a naturally occurring element in all plants .pdf
Inorganic phosphorous is a naturally occurring element in all plants .pdf
 
information flows within your job. Find out 1. the chart of accounts.pdf
 information flows within your job. Find out 1. the chart of accounts.pdf information flows within your job. Find out 1. the chart of accounts.pdf
information flows within your job. Find out 1. the chart of accounts.pdf
 
Information about light in the outside world is used to tune the brai.pdf
 Information about light in the outside world is used to tune the brai.pdf Information about light in the outside world is used to tune the brai.pdf
Information about light in the outside world is used to tune the brai.pdf
 
Infection control 16. Chain of infection 17. Factors that increase ho.pdf
 Infection control 16. Chain of infection 17. Factors that increase ho.pdf Infection control 16. Chain of infection 17. Factors that increase ho.pdf
Infection control 16. Chain of infection 17. Factors that increase ho.pdf
 
In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf
 In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf
In the textbook, you leamed about Hopi Hoekstra and colleagues who we.pdf
 
Larger raindrops fall than smaller raindrops. slower faster Questio.pdf
 Larger raindrops fall than smaller raindrops. slower faster Questio.pdf Larger raindrops fall than smaller raindrops. slower faster Questio.pdf
Larger raindrops fall than smaller raindrops. slower faster Questio.pdf
 
L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf
 L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf
L0 254 P4-41A. (Learning Objectives 2, 4 Aggregating information for.pdf
 
Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf
 Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf
Kozmo y Webvan eran dos servicios de entrega en l�nea que se decl.pdf
 
Komal borrows $14,000 from her father to open her accounting practice.pdf
 Komal borrows $14,000 from her father to open her accounting practice.pdf Komal borrows $14,000 from her father to open her accounting practice.pdf
Komal borrows $14,000 from her father to open her accounting practice.pdf
 
kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf
 kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf
kites at filowi Corphite pets fa) Prough (4) Trepicutily ifou in nite.pdf
 
Kingbird Co. has the following defined benefit pension plan balances .pdf
 Kingbird Co. has the following defined benefit pension plan balances .pdf Kingbird Co. has the following defined benefit pension plan balances .pdf
Kingbird Co. has the following defined benefit pension plan balances .pdf
 
Kara categorized her spending for this month into four categories Re.pdf
 Kara categorized her spending for this month into four categories Re.pdf Kara categorized her spending for this month into four categories Re.pdf
Kara categorized her spending for this month into four categories Re.pdf
 
Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf
 Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf
Kamada CIA Japan (A). Takeshi Kamada, a foreign exchange trader .pdf
 
Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf
 Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf
Jouralize Be folowing bond traersacione (i) (Cack the icon to view it.pdf
 
JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf
 JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf
JD Dorian paid $1,000 of interest on a loan that paid tuition for him.pdf
 
Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf
 Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf
Jenny (15 years old) is one of two beneficiaries of Trust B created.pdf
 
JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf
 JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf
JCL Inc. Is a major chip manufacturing firm that sells its products t.pdf
 
In the register there is a prolonged open phase. A. modal; falsetto B.pdf
 In the register there is a prolonged open phase. A. modal; falsetto B.pdf In the register there is a prolonged open phase. A. modal; falsetto B.pdf
In the register there is a prolonged open phase. A. modal; falsetto B.pdf
 
J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf
 J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf
J. Altman, BJ Everitt, TW Robbins, S. Glautier, A. Markou, D. Nutt..pdf
 
Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf
 Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf
Ivanhoe Limited follows ASPE, and the company sponsors a defined bene.pdf
 

Último

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Último (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
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 ...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

Include the following methods in the class definition - a constructo.pdf

  • 1. Include the following methods in the class definition: - a constructor to initialize all instance variables and update class variables; include appropriate default values for parameters - an accessor method to get the order ID, number of large, medium and small t-shirts ordered, and to compute and return the total t-shirts ordered for that single order - a mutator method to update the number of t-shirts of any size ordered, given the size of t-shirt ("L" for large, " M " for medium or " Sn for small) and the number of extra t-shirts of that size to be added to the existing order; be sure to update the appropriate total as well - a method to compute the basic cost of the order (ignoring discount and taxes); the cost of each t-shirt based on size is: Small - $5, Medium - $8, Large $10 - a method to compute the discount for an order of more than 100t-shirts; 10%6 off of the basic cost, or zero if the order is for 100 or less t-shirts - a method to compute the tax, after any discount has been removed from the basic cost - a method to compute the total cost of the order, i.e., the basic cost, less any discount, plus taxes - a special method ___ str_ to return a string containing information about the order (order ID, number of large, medium and small t- shirts, basic order cost, discount amount, taxes and the total cost of the order) Test your class by coding a main (] function to: - create 4 Order objects - print required information about each object (using the str___method) - update the order of small t-shirts by some amount for one of the orders - print the total number of all the t-shirts sold over all orders Sample input/output: With the following sample input for 4 orders: Irg=20,med=40,sml=60Irg=15,med=20Irg=40rg=0,med=0,sml=45 And an update on the order with ID 103 for an extra 50 small shirts. The following is the output: OrderID: 101 Num Large T-Shirts: 20 Num Medium T-Shirts: 40 Num Sma.11 T-Shirts: 60 Basic Order Cost: $820.00 Discount: $82.00 Tax: $110.70