# computer science

posted by .

in visual logic

You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). Here is a sample of what the program should do when run:

• computer science- programming help needed -

Assistance needed.

• computer science -

Visual Logic will allow you to create a flow chart which will then execute from a flow chart.

Since we do not have Visual Logic available, we will help by showing an equivalent, a pseudocode, from which you can create your flow chart using Visual Logic.

input:
=====
Hours worked: H
Hourly rate: R
Status: Status=M/S/D/W

if H>40 then
gross salary, G = H*R + (H-40)*R/2
else
gross salary, G = H*R
endif

if Status=M
net salary = G*(1-0.15)
else if Status = S
net salary = G*(1-0.22)
else if Status = D
net salary = G*(1-0.23)
else if Status = W
net salary = G*(1-0.13)
else
Print: "error in status".
endif

• computer science -

If 2 pie = 6.28, then what would 1 pie=

• computer science -

6.28/2

## Similar Questions

1. ### programing

small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours …
2. ### computer Programming

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours …
3. ### computer programming

small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours …
4. ### Logic and Design

You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work …
5. ### computer

You will need to design an application that will prompt a user for his or her hourly pay rate, hours worked, and whether he or she is single, married, divorced, or widowed. It will then calculate the user's gross and net pay. If the …
6. ### Programming with Eclipse

Design, implement, test, and debug an application to compute an employee’s weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay for any time worked over 40 hours. The program …
7. ### Computer Programming

Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours worked, and a withholding percentage. Prompt the user to enter values for each of these fields. Compute and display net weekly pay, …
8. ### Statistics

A survey asks adults to report their marital status. The sample space is S = {single, married, divorced, widowed} . Use set notation to represent the event the adult is not married. This is what I think is the answer Married = {single, …
9. ### Statistics

Suppose that in the city in which the survey is conducted, 50% of adults are married, 15% are single, 25% are divorced, and 10% are widowed. a. Assign probabilities to each simple event in the sample space. b. Which approach did you …
10. ### Bachelor of computer science

A program is required to calculate the weekly pay for an employee. The pay clerk inputs an employee ID, hours worked and an hourly rate. The program will output the employee ID, and Gross Pay. Gross Pay is the sum of regular pay plus …

More Similar Questions