SlideShare a Scribd company logo
1 of 3
PRG 420 Week 3 Assignments
Click this link to get the tutorial:
http://homeworkfox.com/tutorials/general-
questions/2657/prg-420-week-3/
Individual Simple Commission Calculation Program Part 2

Modify the Week Two Java™ application using Java™ NetBeans™ IDE to meet these
additional and changed business requirements:

The company has recently changed its total annual compensation policy to improve sales.

A salesperson will continue to earn a fixed salary of 55,000.The current sales target for every
salesperson is 130,000

The sales incentive will only start when 80% of the sales target is met. The current commission
is 15% of total sales.

If a salesperson exceeds the sales target, the commission will increase based on an acceleration
factor. The acceleration factor is 1.50.

The application should ask the user to enter annual sales, and it should display the total annual
compensation.

The application should also display a table of potential total annual compensation that the
salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it
reaches 50% above the salesperson’s annual sales.

Sample Table: Assuming a total annual sales of $100,000, the table would look like this:

Total Sales

Total Compensation

100,000

<<Program calculated value>>

105,000

<<Program calculated value>>
110,000

<<Program calculated value>>

115,000

<<Program calculated value>>

120,000

<<Program calculated value>>

125,000

<<Program calculated value>>

130,000

<<Program calculated value>>

135,000

<<Program calculated value>>

140,000

<<Program calculated value>>

145,000

<<Program calculated value>>

150,000

<<Program calculated value>>

The Java™ application should also meet these technical requirements:

The application should have at least one class, in addition to the application’s controlling class.

The source code must demonstrate the use of conditional and looping structures.

There should be proper documentation in the source code.

Supporting Activity Three Kinds of Loops
Write a 200- to 300-word short-answer response to the following:

There are 3 kinds of loops—for loop, while loop, and do while loop. Under which circumstances
would each kind of loop be more appropriate? Explain your answers using specific examples.

Supporting Activity Loops

Write a 200- to 300-word short-answer response to the following:

Our focus this week is loops.

Select and complete one of the following activities:

Convert the following program from for loop to while loop.

class ArithmeticProgression
{
 public static void main (String [] args)
 {
 int ;

for (int ; i <= 1000; i++)
   {
    + i;
   System.out.println(Integer.toString(sum));
 }
 }
}

Compare the efficiency between a for loop and a while loop in the same program. Your program
should be able to tell if a for loop is faster than a while-loop at the end of the program. Include
the result of your run with the information on which one is faster.

More Related Content

Similar to Prg 420 week 3 assignments

Prg 420-entire-course
Prg 420-entire-coursePrg 420-entire-course
Prg 420-entire-courseDR Dean Jame
 
Organization Software Application Portfolio Management PowerPoint Presentati...
Organization Software Application Portfolio Management  PowerPoint Presentati...Organization Software Application Portfolio Management  PowerPoint Presentati...
Organization Software Application Portfolio Management PowerPoint Presentati...SlideTeam
 
APM Powerpoint Presentation Slides
APM Powerpoint Presentation SlidesAPM Powerpoint Presentation Slides
APM Powerpoint Presentation SlidesSlideTeam
 
Comp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source codeComp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source codepradesigali1
 
Devry bis-445-week-3-i lab-new
Devry bis-445-week-3-i lab-newDevry bis-445-week-3-i lab-new
Devry bis-445-week-3-i lab-newcloudassignment61
 
Week5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And CompleteWeek5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And Completehapy
 
OPS 571 GENIUS Introduction Education--ops571genius.com
OPS 571 GENIUS Introduction Education--ops571genius.comOPS 571 GENIUS Introduction Education--ops571genius.com
OPS 571 GENIUS Introduction Education--ops571genius.comclaric247
 
Microsoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafeMicrosoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafeJeannieHeldt
 
OPS 571 HELP Redefined Education--ops571help.com
OPS 571 HELP Redefined Education--ops571help.comOPS 571 HELP Redefined Education--ops571help.com
OPS 571 HELP Redefined Education--ops571help.comclaric212
 
AH Best practices - How do I reconfigure Automation Hub.pdf
AH Best practices - How do I reconfigure Automation Hub.pdfAH Best practices - How do I reconfigure Automation Hub.pdf
AH Best practices - How do I reconfigure Automation Hub.pdfCristina Vidu
 
Advanced Computer Programming..pptx
Advanced Computer Programming..pptxAdvanced Computer Programming..pptx
Advanced Computer Programming..pptxKrishanthaRanaweera1
 
Define and Manage Requirements with IBM Rational Requirements Composer
Define and Manage Requirements with IBM Rational Requirements ComposerDefine and Manage Requirements with IBM Rational Requirements Composer
Define and Manage Requirements with IBM Rational Requirements ComposerAlan Kan
 
Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7ashhadiqbal
 
University of phoenix acc 220
University of phoenix acc 220University of phoenix acc 220
University of phoenix acc 220Christina Walkar
 

Similar to Prg 420 week 3 assignments (18)

Prg 420-entire-course
Prg 420-entire-coursePrg 420-entire-course
Prg 420-entire-course
 
Prg 420 prg420
Prg 420 prg420Prg 420 prg420
Prg 420 prg420
 
Prg 420-week-4
Prg 420-week-4Prg 420-week-4
Prg 420-week-4
 
Organization Software Application Portfolio Management PowerPoint Presentati...
Organization Software Application Portfolio Management  PowerPoint Presentati...Organization Software Application Portfolio Management  PowerPoint Presentati...
Organization Software Application Portfolio Management PowerPoint Presentati...
 
APM Powerpoint Presentation Slides
APM Powerpoint Presentation SlidesAPM Powerpoint Presentation Slides
APM Powerpoint Presentation Slides
 
Comp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source codeComp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source code
 
Devry bis-445-week-3-i lab-new
Devry bis-445-week-3-i lab-newDevry bis-445-week-3-i lab-new
Devry bis-445-week-3-i lab-new
 
Week5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And CompleteWeek5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And Complete
 
OPS 571 GENIUS Introduction Education--ops571genius.com
OPS 571 GENIUS Introduction Education--ops571genius.comOPS 571 GENIUS Introduction Education--ops571genius.com
OPS 571 GENIUS Introduction Education--ops571genius.com
 
Microsoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafeMicrosoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafe
 
OPS 571 HELP Redefined Education--ops571help.com
OPS 571 HELP Redefined Education--ops571help.comOPS 571 HELP Redefined Education--ops571help.com
OPS 571 HELP Redefined Education--ops571help.com
 
AH Best practices - How do I reconfigure Automation Hub.pdf
AH Best practices - How do I reconfigure Automation Hub.pdfAH Best practices - How do I reconfigure Automation Hub.pdf
AH Best practices - How do I reconfigure Automation Hub.pdf
 
Advanced Computer Programming..pptx
Advanced Computer Programming..pptxAdvanced Computer Programming..pptx
Advanced Computer Programming..pptx
 
Define and Manage Requirements with IBM Rational Requirements Composer
Define and Manage Requirements with IBM Rational Requirements ComposerDefine and Manage Requirements with IBM Rational Requirements Composer
Define and Manage Requirements with IBM Rational Requirements Composer
 
Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7
 
Prg 420-week-1
Prg 420-week-1Prg 420-week-1
Prg 420-week-1
 
University of phoenix acc 220
University of phoenix acc 220University of phoenix acc 220
University of phoenix acc 220
 
Comp 220 lab 3
Comp 220 lab 3Comp 220 lab 3
Comp 220 lab 3
 

Recently uploaded

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 

Prg 420 week 3 assignments

  • 1. PRG 420 Week 3 Assignments Click this link to get the tutorial: http://homeworkfox.com/tutorials/general- questions/2657/prg-420-week-3/ Individual Simple Commission Calculation Program Part 2 Modify the Week Two Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales. A salesperson will continue to earn a fixed salary of 55,000.The current sales target for every salesperson is 130,000 The sales incentive will only start when 80% of the sales target is met. The current commission is 15% of total sales. If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.50. The application should ask the user to enter annual sales, and it should display the total annual compensation. The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it reaches 50% above the salesperson’s annual sales. Sample Table: Assuming a total annual sales of $100,000, the table would look like this: Total Sales Total Compensation 100,000 <<Program calculated value>> 105,000 <<Program calculated value>>
  • 2. 110,000 <<Program calculated value>> 115,000 <<Program calculated value>> 120,000 <<Program calculated value>> 125,000 <<Program calculated value>> 130,000 <<Program calculated value>> 135,000 <<Program calculated value>> 140,000 <<Program calculated value>> 145,000 <<Program calculated value>> 150,000 <<Program calculated value>> The Java™ application should also meet these technical requirements: The application should have at least one class, in addition to the application’s controlling class. The source code must demonstrate the use of conditional and looping structures. There should be proper documentation in the source code. Supporting Activity Three Kinds of Loops
  • 3. Write a 200- to 300-word short-answer response to the following: There are 3 kinds of loops—for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate? Explain your answers using specific examples. Supporting Activity Loops Write a 200- to 300-word short-answer response to the following: Our focus this week is loops. Select and complete one of the following activities: Convert the following program from for loop to while loop. class ArithmeticProgression { public static void main (String [] args) { int ; for (int ; i <= 1000; i++) { + i; System.out.println(Integer.toString(sum)); } } } Compare the efficiency between a for loop and a while loop in the same program. Your program should be able to tell if a for loop is faster than a while-loop at the end of the program. Include the result of your run with the information on which one is faster.