Write the code that will execute according to the program

Assignment Help Programming Languages
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.

Reference no: EM131316496

Questions Cloud

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?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write css rule to gives all h elements padding

Write down CSS rule which gives all h1 and h2 elements padding of 0.5 ems, grooved border style and margin of 0.5ems. Prepare a layout template which contains header and two columns.

  Program to compute person-s body mass index

Write a program to compute person's body mass index? Create a modular program which calculates and display person's body mass index (BMI).

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Run the program with a file name

Write a short Python program that asks the user to input two numbers, and then divides the first number by the second. The program must use an exception handling structure to process the situation when the denominator is zero. Run your program wit..

  Pseudocode of program that will prompt user for number

Write pseudocode and flowchart for a program which will prompt user for a number, prompt the user for an operator (+,-,*,/), prompt the user for another number.

  Write a program to help a local stock trading company

Write a program to help a local stock trading company automate its systems. The company invests only in the stock market. At the end of each trading day, the company would like to generate and post the listing of its stocks so that investors can s..

  Prepare a shift cipher

In cryptography, a Caesar cipher, also called a shift cipher, encrypts a plaintext string by shifting the letters by a fixed number of positions shift_by.

  Write pseudocode to calculate the total price of the items

Create a line on the output receipt that identifies the item its price and the sales tax applicable to that item. Keep a running total of item prices and taxes.

  Aggregate planning for a bottling companya bottling company

aggregate planning for a bottling companya bottling company has decided to introduce a new line of premium bottled

  Write a menu driven program that accepts words

Write a menu driven program that either accepts words and their meanings, or displays the list of words in lexicographical order (i.e. as in a dictionary).

  Implement a function for computing the achromatic phong

In this question you need to implement a function for computing the achromatic Phong illumination at a surface point.

  Write a program that will allow a user to enter in a

write a program that will allow a user to enter in a sentence of up to 100 characters. then take that sentence and

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd