1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
oee [108]
3 years ago
6

write a pay-raise program that requests a person's first name, last name, and current annual salary, and then displays the perso

n's salary for the next year. People earning less than $40,000 will receive a 5% raise, and those earning $40,000 or more will receive a raise of $2,000 plus 2% of the amount over $40,000. the main function should call three functions- one (multi-valued) for input, one to calculate the new salary, and one for output
Computers and Technology
1 answer:
belka [17]3 years ago
7 0

Without more information for what the programming language is I cannot give a full answer, so I listed a potential method for calculating salary.

To calculate the salary (Java):

public static double getSalary(double salary) {

   if (salary < 40000) {

        return salary + (salary * 0.05);

   }

   return 2000 + ((0.02 * salary) + salary);

}

To calculate the salary (VB .Net):

Function getSalary(ByVal salary As Double) As Double

   If salary < 40000 Then

       salary = salary + (salary * 0.05)

   Else

       salary = 2000 + ((0.02 * salary) + salary)

   End If

   Return salary

End Function

You might be interested in
The collection of computer instructions and other files that constitute a piece of software is
lutik1710 [3]
The answer would be
A. Codebase

8 0
3 years ago
Read 2 more answers
In one or more complete sentences, explain about vehicle maintenance and vehicle safety
aivan3 [116]
Vehicle maintenance is important because without them the vehicle would not function properly and could be a safety hazard. Vehicle safety is important because without it we could end up seriously injured or even killed, vehicles can be very dangerous if handled irresponsible and the proper safety methods are not used.<span />
5 0
3 years ago
Read 2 more answers
A linear gradient can be positioned from left to right, top to bottom, or on any angle?
Harman [31]

from left to right because it is used more in expressions

3 0
3 years ago
What is the difference between arithmetic and relational operators​
denpristay [2]

Answer:

The arithmetic operator is used by the program to perform simple algebraic operations like addition, subtraction, multiplication, division, etc. Relational operators are the ones that are used to validate a relationship between the two operands as if they are equal, greater than, less than, etc.

4 0
2 years ago
Michael is discussing various project needs with his team. Match Michael’s statement with the way project management can help th
Reika [66]

Answer:

get out there outside and get out and see what you do when you're ready for a workout or a day off and you're going through the

7 0
3 years ago
Other questions:
  • A blank is a link on a web page that leads to another web page.
    14·1 answer
  • You have activated pop-up blockers in your web browser to prevent pop-up windows from continually interrupting your browsing exp
    14·2 answers
  • 4. True or False? Electrons flow out from the POSITIVE end of a battery. *<br> True<br> False
    7·1 answer
  • Write a program that prompts the user to enter a string (may contain spaces) and displays its last character. Enter s string: Pr
    13·1 answer
  • The most fundamental components of storage that users interact with are the:
    11·1 answer
  • A company that designs video games has decided to expand and needs to hire Software Developers, Web Administrators, and Computer
    8·2 answers
  • Which of the following are examples of how a company might use consumer data it had collected? a To decide what types of product
    10·1 answer
  • Type the correct answer in the box.
    5·1 answer
  • Does anyone else have edge and think its not the awful?
    12·2 answers
  • Explain how AI smartphone software in the rental car can be a threat to privacy.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!