SlideShare a Scribd company logo
1 of 1
Download to read offline
Topics if/else if Description Write a program that calculates a salesperson's monthly commission.
The program asks the user to enter the total sales amount for the month. It calculates the
commission depending upon the sales amount. Finally, it displays a report including the sales
amount and the commission earned. The commission is calculated using the following rates: 15%
commission for the first $2,000.00 sales 20% commission for the next $1,000.00 sales 25%
commission for the next $500.00 sales 30% commission for the next $500.00 sales 35%
commission for the remaining sales Requirements In doing this assignment, use an if/else if
statement and not a bunch of if statements. Test Data

More Related Content

More from ajayadinathcomputers

True or False The term drive time are during the times peop.pdf
True or False The term drive time are during the times peop.pdfTrue or False The term drive time are during the times peop.pdf
True or False The term drive time are during the times peop.pdfajayadinathcomputers
 
Translate this function into MIPS assembly Remember the arg.pdf
Translate this function into MIPS assembly Remember the arg.pdfTranslate this function into MIPS assembly Remember the arg.pdf
Translate this function into MIPS assembly Remember the arg.pdfajayadinathcomputers
 
True or False Four Asian Tigers Four Little Dragons we.pdf
True or False Four Asian Tigers Four Little Dragons we.pdfTrue or False Four Asian Tigers Four Little Dragons we.pdf
True or False Four Asian Tigers Four Little Dragons we.pdfajayadinathcomputers
 
True or False In Exercises 15 determine whether the state.pdf
True or False In Exercises 15 determine whether the state.pdfTrue or False In Exercises 15 determine whether the state.pdf
True or False In Exercises 15 determine whether the state.pdfajayadinathcomputers
 
True or False 1 If buyer refuses to accept conforming goods.pdf
True or False 1 If buyer refuses to accept conforming goods.pdfTrue or False 1 If buyer refuses to accept conforming goods.pdf
True or False 1 If buyer refuses to accept conforming goods.pdfajayadinathcomputers
 
True or false and explain1 Mr Viet use some of his income t.pdf
True or false and explain1 Mr Viet use some of his income t.pdfTrue or false and explain1 Mr Viet use some of his income t.pdf
True or false and explain1 Mr Viet use some of his income t.pdfajayadinathcomputers
 
True or False Airway resistance decreases with parasympathe.pdf
True or False Airway resistance decreases with parasympathe.pdfTrue or False Airway resistance decreases with parasympathe.pdf
True or False Airway resistance decreases with parasympathe.pdfajayadinathcomputers
 
True False Question 10 1 point The congruence class repres.pdf
True False Question 10 1 point The congruence class repres.pdfTrue False Question 10 1 point The congruence class repres.pdf
True False Question 10 1 point The congruence class repres.pdfajayadinathcomputers
 
Transcription 1 RNA vs DNA structure 2 Differentiate betwe.pdf
Transcription 1 RNA vs DNA structure 2 Differentiate betwe.pdfTranscription 1 RNA vs DNA structure 2 Differentiate betwe.pdf
Transcription 1 RNA vs DNA structure 2 Differentiate betwe.pdfajayadinathcomputers
 
Trident Food Corporation en son mali yl iin aadaki gelir t.pdf
Trident Food Corporation en son mali yl iin aadaki gelir t.pdfTrident Food Corporation en son mali yl iin aadaki gelir t.pdf
Trident Food Corporation en son mali yl iin aadaki gelir t.pdfajayadinathcomputers
 
Tropical rain forests in Indonesia and South America receive.pdf
Tropical rain forests in Indonesia and South America receive.pdfTropical rain forests in Indonesia and South America receive.pdf
Tropical rain forests in Indonesia and South America receive.pdfajayadinathcomputers
 
TRIPBAMs core produt development was an IT Dependant Strate.pdf
TRIPBAMs core produt development was an IT Dependant Strate.pdfTRIPBAMs core produt development was an IT Dependant Strate.pdf
TRIPBAMs core produt development was an IT Dependant Strate.pdfajayadinathcomputers
 
Tristan tried his luck with the lottery He can win 100 if .pdf
Tristan tried his luck with the lottery He can win 100 if .pdfTristan tried his luck with the lottery He can win 100 if .pdf
Tristan tried his luck with the lottery He can win 100 if .pdfajayadinathcomputers
 
Tres aos hace Mario se uni a MN Partnership aportando t.pdf
Tres aos hace Mario se uni a MN Partnership aportando t.pdfTres aos hace Mario se uni a MN Partnership aportando t.pdf
Tres aos hace Mario se uni a MN Partnership aportando t.pdfajayadinathcomputers
 
Trey Monson starts a merchandising business on December 1 an.pdf
Trey Monson starts a merchandising business on December 1 an.pdfTrey Monson starts a merchandising business on December 1 an.pdf
Trey Monson starts a merchandising business on December 1 an.pdfajayadinathcomputers
 
Tree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdfTree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdfajayadinathcomputers
 
TRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdf
TRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdfTRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdf
TRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdfajayadinathcomputers
 
Topic Obstructive Sleep Apnea Explain why this topic is imp.pdf
Topic Obstructive Sleep Apnea Explain why this topic is imp.pdfTopic Obstructive Sleep Apnea Explain why this topic is imp.pdf
Topic Obstructive Sleep Apnea Explain why this topic is imp.pdfajayadinathcomputers
 
Topics 1 The role of cryptography as it relates to network.pdf
Topics 1 The role of cryptography as it relates to network.pdfTopics 1 The role of cryptography as it relates to network.pdf
Topics 1 The role of cryptography as it relates to network.pdfajayadinathcomputers
 
Translate function f into MIPS assembly language If you nee.pdf
Translate function f into MIPS assembly language If you nee.pdfTranslate function f into MIPS assembly language If you nee.pdf
Translate function f into MIPS assembly language If you nee.pdfajayadinathcomputers
 

More from ajayadinathcomputers (20)

True or False The term drive time are during the times peop.pdf
True or False The term drive time are during the times peop.pdfTrue or False The term drive time are during the times peop.pdf
True or False The term drive time are during the times peop.pdf
 
Translate this function into MIPS assembly Remember the arg.pdf
Translate this function into MIPS assembly Remember the arg.pdfTranslate this function into MIPS assembly Remember the arg.pdf
Translate this function into MIPS assembly Remember the arg.pdf
 
True or False Four Asian Tigers Four Little Dragons we.pdf
True or False Four Asian Tigers Four Little Dragons we.pdfTrue or False Four Asian Tigers Four Little Dragons we.pdf
True or False Four Asian Tigers Four Little Dragons we.pdf
 
True or False In Exercises 15 determine whether the state.pdf
True or False In Exercises 15 determine whether the state.pdfTrue or False In Exercises 15 determine whether the state.pdf
True or False In Exercises 15 determine whether the state.pdf
 
True or False 1 If buyer refuses to accept conforming goods.pdf
True or False 1 If buyer refuses to accept conforming goods.pdfTrue or False 1 If buyer refuses to accept conforming goods.pdf
True or False 1 If buyer refuses to accept conforming goods.pdf
 
True or false and explain1 Mr Viet use some of his income t.pdf
True or false and explain1 Mr Viet use some of his income t.pdfTrue or false and explain1 Mr Viet use some of his income t.pdf
True or false and explain1 Mr Viet use some of his income t.pdf
 
True or False Airway resistance decreases with parasympathe.pdf
True or False Airway resistance decreases with parasympathe.pdfTrue or False Airway resistance decreases with parasympathe.pdf
True or False Airway resistance decreases with parasympathe.pdf
 
True False Question 10 1 point The congruence class repres.pdf
True False Question 10 1 point The congruence class repres.pdfTrue False Question 10 1 point The congruence class repres.pdf
True False Question 10 1 point The congruence class repres.pdf
 
Transcription 1 RNA vs DNA structure 2 Differentiate betwe.pdf
Transcription 1 RNA vs DNA structure 2 Differentiate betwe.pdfTranscription 1 RNA vs DNA structure 2 Differentiate betwe.pdf
Transcription 1 RNA vs DNA structure 2 Differentiate betwe.pdf
 
Trident Food Corporation en son mali yl iin aadaki gelir t.pdf
Trident Food Corporation en son mali yl iin aadaki gelir t.pdfTrident Food Corporation en son mali yl iin aadaki gelir t.pdf
Trident Food Corporation en son mali yl iin aadaki gelir t.pdf
 
Tropical rain forests in Indonesia and South America receive.pdf
Tropical rain forests in Indonesia and South America receive.pdfTropical rain forests in Indonesia and South America receive.pdf
Tropical rain forests in Indonesia and South America receive.pdf
 
TRIPBAMs core produt development was an IT Dependant Strate.pdf
TRIPBAMs core produt development was an IT Dependant Strate.pdfTRIPBAMs core produt development was an IT Dependant Strate.pdf
TRIPBAMs core produt development was an IT Dependant Strate.pdf
 
Tristan tried his luck with the lottery He can win 100 if .pdf
Tristan tried his luck with the lottery He can win 100 if .pdfTristan tried his luck with the lottery He can win 100 if .pdf
Tristan tried his luck with the lottery He can win 100 if .pdf
 
Tres aos hace Mario se uni a MN Partnership aportando t.pdf
Tres aos hace Mario se uni a MN Partnership aportando t.pdfTres aos hace Mario se uni a MN Partnership aportando t.pdf
Tres aos hace Mario se uni a MN Partnership aportando t.pdf
 
Trey Monson starts a merchandising business on December 1 an.pdf
Trey Monson starts a merchandising business on December 1 an.pdfTrey Monson starts a merchandising business on December 1 an.pdf
Trey Monson starts a merchandising business on December 1 an.pdf
 
Tree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdfTree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdf
 
TRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdf
TRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdfTRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdf
TRAVHLCO LAITHD Trwelos is a larye UK packape holdidy mancu.pdf
 
Topic Obstructive Sleep Apnea Explain why this topic is imp.pdf
Topic Obstructive Sleep Apnea Explain why this topic is imp.pdfTopic Obstructive Sleep Apnea Explain why this topic is imp.pdf
Topic Obstructive Sleep Apnea Explain why this topic is imp.pdf
 
Topics 1 The role of cryptography as it relates to network.pdf
Topics 1 The role of cryptography as it relates to network.pdfTopics 1 The role of cryptography as it relates to network.pdf
Topics 1 The role of cryptography as it relates to network.pdf
 
Translate function f into MIPS assembly language If you nee.pdf
Translate function f into MIPS assembly language If you nee.pdfTranslate function f into MIPS assembly language If you nee.pdf
Translate function f into MIPS assembly language If you nee.pdf
 

Recently uploaded

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 

Recently uploaded (20)

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 

Topics ifelse if Description Write a program that calculate.pdf

  • 1. Topics if/else if Description Write a program that calculates a salesperson's monthly commission. The program asks the user to enter the total sales amount for the month. It calculates the commission depending upon the sales amount. Finally, it displays a report including the sales amount and the commission earned. The commission is calculated using the following rates: 15% commission for the first $2,000.00 sales 20% commission for the next $1,000.00 sales 25% commission for the next $500.00 sales 30% commission for the next $500.00 sales 35% commission for the remaining sales Requirements In doing this assignment, use an if/else if statement and not a bunch of if statements. Test Data