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:

Assistance needed.

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

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

6.28/2

To design this application in Visual Logic, you will need to follow these steps:

1. Start by creating input boxes or prompts to ask the user for their hourly pay rate, hours worked, and marital status (single, married, divorced, or widowed).
2. Use variables to store the values entered by the user. For example, you could use variables like hourlyPayRate, hoursWorked, and maritalStatus.
3. Calculate the gross pay by multiplying the hourly pay rate with the hours worked. If the hours worked are above 40, calculate the overtime pay at 1.5 times the regular rate.
4. Calculate the tax amount based on the user's marital status. Use conditional statements (IF-THEN-ELSE) to determine the appropriate tax rate based on the marital status entered by the user.
5. Subtract the tax amount from the gross pay to calculate the net pay.
6. Display the results (gross pay, overtime pay, tax amount, and net pay) to the user using output boxes or print statements.

Here's a sample Visual Logic code snippet that demonstrates how to design this application:

START
DECLARE hourlyPayRate, hoursWorked, grossPay, overtimePay, taxAmount, netPay: REAL
DECLARE maritalStatus: STRING

OUTPUT "Enter your hourly pay rate:"
INPUT hourlyPayRate

OUTPUT "Enter the number of hours worked:"
INPUT hoursWorked

OUTPUT "Enter your marital status (single, married, divorced, widowed):"
INPUT maritalStatus

SET grossPay = hourlyPayRate * hoursWorked
SET overtimePay = IF hoursWorked > 40 THEN (hoursWorked - 40) * (hourlyPayRate * 1.5) ELSE 0

IF maritalStatus = "single" THEN
SET taxAmount = grossPay * 0.22
ELSE IF maritalStatus = "married" THEN
SET taxAmount = grossPay * 0.15
ELSE IF maritalStatus = "divorced" THEN
SET taxAmount = grossPay * 0.23
ELSE IF maritalStatus = "widowed" THEN
SET taxAmount = grossPay * 0.13
ELSE
SET taxAmount = 0

SET netPay = grossPay - taxAmount

OUTPUT "Gross Pay: " + grossPay
OUTPUT "Overtime Pay: " + overtimePay
OUTPUT "Tax Amount: " + taxAmount
OUTPUT "Net Pay: " + netPay

STOP

Note that this is just a sample code snippet to give you an idea of how to design the application. You may need to modify it based on the specific requirements of your Visual Logic environment or platform.