ExamTutorials.com
http://www.examtutorials.com
PRG 420 Entire Course
http://www.examtutorials.com/course/prg-420-entire-co...
Method
Instance (object)
Encapsulation
Supporting Activity 1 Portable languages and Component Reusability
Write a 200- to ...
The scoring instrument has a section on style. These are the four criteria for style:
Do identifiers logically describe us...
salesperson could have earned, in $5000 increments above the salesperson’s annual sales,
until it reaches 50% above the sa...
The source code must demonstrate the use of conditional and looping structures.
There should be proper documentation in th...
of 5

Prg 420-entire-course

Published on: Mar 4, 2016
Published in: Technology      Education      
Source: www.slideshare.net


Transcripts - Prg 420-entire-course

  • 1. ExamTutorials.com http://www.examtutorials.com PRG 420 Entire Course http://www.examtutorials.com/course/prg-420-entire-course/ Author : cmin PRG 420 Week 1 Individual Create a Program Create a program in Java™ that displays “Hello world!” Take a screen shot that shows the program’s successful compilation and execution. Then submit your program along with the screen shot. Note. No points will be awarded for submitting the program alone. Supporting Activity 2 Saving Account as a Class Write a 200- to 300-word short-answer response to the following: You are a bank manager and you are helping a new bank teller understand the kind of accounts the bank offers. If a customer comes in asking to open a new savings account, the teller needs to ask what kind of account—passbook savings or certificate of deposit—the customer would like to open. Remind the customer that all accounts with our bank are insured by the FDIC. You should explain that all accounts earn some interest; a savings account’s interest is compounded monthly. You should assign a unique account number after accepting the customer’s initial deposit. If the customer chooses to receive statements electronically, the system will send an e-mail with a monthly statement; if the customer chooses not to, then a paper statement will be sent by mail quarterly. If savings account is a class, give an example of each of the following as it relates to that savings account. Explain your reasoning behind your example. Superclass Subclass Attribute 1 / 5
  • 2. Method Instance (object) Encapsulation Supporting Activity 1 Portable languages and Component Reusability Write a 200- to 300-word short-answer response to the following: Java™ is a portable language, and being an object-oriented programming language, it also encourages component reusability. How does Java™ achieve these two important features? How are these features desirable in modern software engineering? PRG 420 Week 2 Individual Simple Commission Calculation Program Part 1 Write a Java™ application using NetBeans™ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of 55,000. A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the salesperson’s annual sales. The current commission is 15% of total sales. The total annual compensation is the fixed salary plus the commission earned. The Java™ application should meet these technical requirements: The application should have at least one class, in addition to the application’s controlling class (a controlling class is where the main function resides). There should be proper documentation in the source code. The application should ask the user to enter annual sales, and it should display the total annual compensation. Supporting Activity 2 Rubric Resource: Excel scoring instrument Write a 200- to 300-word short-answer response to the following: 2 / 5
  • 3. The scoring instrument has a section on style. These are the four criteria for style: Do identifiers logically describe use? Is indentation used correctly to illustrate the structure of the program? Is there a consistent naming convention? Do comments explain processing that is not obvious? Give an example or counterexample that demonstrates each criterion. Why is each criterion important to a program? Supporting Activity 1 Three Types of Errors Write a 200- to 300-word short-answer response to the following: What are the three types of errors that you can encounter in a Java™ program? Describe them, and explain how you would minimize the errors. What are some examples of errors that you have seen before? 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 3 / 5
  • 4. 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 105,000 110,000 115,000 120,000 125,000 130,000 135,000 140,000 145,000 150,000 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. 4 / 5
  • 5. 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 Powered by TCPDF (www.tcpdf.org) 5 / 5