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 the employee worked, and the hourly pay rate. The program will then calculate the gross pay, display the employee’s name, number of hours worked, pay rate, and gross pay, but also calculate and display the net pay of the person after taxes have been calculated and deducted. The user will then be able to continue calculating the pay for additional employees until the user decides to stop or until the maximum number of employees is reached.

Can you show me how to make a loop for this problem??

Do you programme in Java, C++ or VB, or do you need to do only the UML or pseudocode?

Basically, loops will repeat itself until a defined number of times is reached, or when the program decides to interrupt the loop. In Java and C++, the interruption is by the statement "break", and in VB, it is exit.

So the number of employee is normally known in advance, so can be used to define the number of repetitions of the loop. If the user decides to stop (for lunch or otherwise), he can enter a special value to indicate to the programme that an exit (or break) from the loop is requested.

If you have actual code, it is easier to describe or correct.

A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Quantity Discount

10-19 20%
20-49 30%
50-99 40%
100 or more 50%
Write a program that asks for a number of units purchased and computes the total cost of the purchase.

Need an answer for this program for the software company. Can someone give me an answer.

Yes, I can help you with that. To create a loop for this problem, you can use a while loop. Here's an example of how you can implement it in Python:

```python
# Set maximum number of employees
max_employees = 100

# Initialize a variable to store the count of employees
employee_count = 0

# Start the loop
while employee_count < max_employees:
# Prompt the user for employee details
name = input("Enter employee name: ")
hours_worked = float(input("Enter number of hours worked: "))
pay_rate = float(input("Enter hourly pay rate: "))

# Calculate gross pay
gross_pay = hours_worked * pay_rate

# Calculate net pay (after deducting taxes)
tax_rate = 0.2 # Assuming a tax rate of 20%
net_pay = gross_pay - (gross_pay * tax_rate)

# Display employee details
print("\nEmployee Details:")
print("Name:", name)
print("Hours Worked:", hours_worked)
print("Pay Rate:", pay_rate)
print("Gross Pay:", gross_pay)
print("Net Pay:", net_pay)

# Increment the employee count
employee_count += 1

# Check if the user wants to continue calculating pay for more employees
choice = input("\nDo you want to calculate pay for another employee? (yes/no): ")
if choice.lower() != 'yes':
break

print("\nEnd of program")
```

In this example, the loop will continue until the `employee_count` reaches the `max_employees` limit or until the user decides to stop by entering "no" when prompted for continuation. The loop will prompt the user for employee details, calculate the gross and net pay, display the details, and then ask if the user wants to calculate pay for another employee. If the user chooses not to continue, the loop will break, and the program will end.