SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler 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

Mais conteúdo relacionado

Mais de ajayadinathcomputers

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
ajayadinathcomputers
 
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
ajayadinathcomputers
 
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
ajayadinathcomputers
 

Mais de 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
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
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.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.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