Reference no: EM131316496
Complete Case Programming Assignment at the end of Chapter 4, page 283.
Be sure to create an event planning document for each event in the program prior to writing code.
Write the code that will execute the program requirements.
Use the Use case definition on page 282, Fig 4-103.
WEEKLY PAY CALCULATOR
Design a Windows application and write the code that will execute according to the program requirements in Figure 4-104 and the Use Case definition in Fig 4-105.Before writing the code, create an event planning document for each event in the program. The completed program is shown in Figure 4-106.
REQUIREMENTS DOCUMENT
Application title: Weekly Pay Calculator
Purpose: The Weekly Pay Calculator Windows application computes the weekly pay for an hourly employee.
Program From a window on the screen, a payroll clerk enters the total minutes an Procedures: employee worked in a week and the hourly pay rate. The program displays the weekly pay for the employee.
Algorithms, 1. The payroll clerk must be able to enter the total minutes worked during Conditions: the week and the hourly pay rate.
2. The company name (Western Distribution) and the picture (Payroll found at scsite.com/vb2010/ch4/images) will be displayed throughout
the entire process.
3. After entering the total minutes worked and hourly pay rate, the payroll clerk clicks the weekly pay button.
4. The weekly pay is displayed in currency format together with the number of hours and minutes worked.
Notes and
1. The user can clear the total minutes worked, the hourly pay rate, the Restrictions: hours and minutes worked, and the weekly pay by clicking a clear button. He then can enter another employee's data.
2. An exit button should close the application.
3. In this application, if hours worked is greater than 40, the hourly pay rate still applies.
Comments: n/a
USE CASE DEFINITION
1. The Windows Application opens.
2. The payroll clerk enters the total minutes worked by an employee and the employee's hourly pay rate.
3. The payroll clerk clicks the Weekly Pay button.
4. The program displays the hours worked, the minutes worked, and the employee's weekly pay.
5. The payroll clerk can click the Clear button and then repeat steps 2 through 4.
6. The user terminates the program by clicking the Exit button.
USE CASE DEFINITION
1. The Windows Application opens.
2. The user enters the number of miles traveled.
3. The user clicks the Display Fare button.
4. The program displays the total fare.
5. The user can click the Clear button and repeat steps 2-4.
6. The user terminates the program by clicking the Exit button.
Write a program that prompts a user to enter names of colors
: Write a program that prompts a user to enter the names of two primary colors to mix, If the user enters anything other than "red", "blue",or yellow", the program should display an error message.
|
The company cost of equity capital
: The Graber Corporation’s common stock has a beta of 1.2. If the risk-free rate is 5.2 percent and the expected return on the market is 10 percent, what is the company’s cost of equity capital?
|
Explain the purpose of a company
: Explain the purpose of a company's 10-K and how it interprets the firm's financial strength. Write a description of three important items, including their significance to stakeholders, that you learned from reading Ford Motors Company's 10-K for 2..
|
Pledges to maintain constant four percent growth rate
: Lohn Corporation is expected to pay the following dividends over the next four years: $18, $14, $10, and $5.50. Afterward, the company pledges to maintain a constant 4 percent growth rate in dividends forever. If the required return on the stock is 1..
|
Write the code that will execute according to the program
: Design a Windows application and write the code that will execute according to the program requirements in Figure 4-104 and the Use Case definition in Fig 4-105.
|
Determine the torsional stiffness of the structure
: A rigid circular disk supported by four L - shaped springs of flexural rigidity EI has 90 ° rotational symmetry (Fig. P4.5).
|
Find a suitable location for its service centre
: A rapid-response maintenance company serves its customers who are located in four industrial estates.- At what grid reference should the company be looking to find a suitable location for its service centre?
|
Identifying and analysing its supply chain planning
: You are to submit an individual report (3000 words, +/- 10%) based on a company of your choice, identifying and analysing its supply chain planning & control issues and providing recommendations for improvements
|
What values should heassign to cp and ch for his operations
: Hehas heard of EOQ as a basis for setting the length of production runs.- What values should heassign to cp and cH for his operations?
|