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 ampacity of a No. 12 aluminum wire with RHW insulation installed in a raceway that has 19 other wires is
GREYUIT [131]
<span>i believe the answer is C</span>
7 0
3 years ago
The software that requests mail delivery from the mail server to an Internet device is known as mail ____ software.
OleMash [197]

The software that requests mail delivery from the mail server to an Internet device is known as mail client software.

Explanation:

Mail client software is a form of communication in which electronic messages are created and transferred between two or multiple devices connected to a network series or stream.

8 0
2 years ago
How can I get answers on Collage Board for AP classes when using the inspect element? (AP WORLD HISTORY)
algol13

Answer:

Answer:

You cannot do anything with the inspect element in reality for finding the answers on the College Board for the AP classes. The inspect classes are powerful tools that are hidden inside the browser. You are required to right-click on the web page, and you will then find the innards of that site, the complete source code, as well as the images and the CSS. as well as the icons that it makes use of. and much more. However, by the end of the day. and till morning, you will not be able to find the solution. For finding the answers on the College Board for AP classes. like here the AP world history, you need to understand World history. and for that, you need to read books and then you will come to know the keywords. And once you have the keyword, you can then find the answer to the questions based on those keywords. Hence, its the subject knowledge that matters, and not inspects element which is more of a developer's tool and not a researcher. You can use Search engine commands however as well. And you can post the questions here, and the whole community is here to help you and ensure you get through the AP classes that you deserve. And I will add, best of luck and you will achieve what you deserve.

Explanation:

Please check this as well: https://apstudents.collegeboard.org/ap/pdf/ap-world-history-modern-course-and-exam-description.pdf

4 0
3 years ago
I just need a confirmation. Is the best time to create a Vista photograph at Twilight?
SVEN [57.7K]
Yes because you won't have too much light and you won't have too little
3 0
3 years ago
Outlines help you visualize the slides and the points you will include on each slide.
kvv77 [185]
I don’t know I think true
6 0
3 years ago
Other questions:
  • Which is a safe Internet behavior?
    5·1 answer
  • What is the simplest way to permanently get rid of an unwanted file? A. Go to the Start menu and then delete the file. B. Erase
    5·1 answer
  • Can someone please help??
    12·1 answer
  • ) How many switching functions of two variables (x and y) are there?
    11·1 answer
  • Which of the following statements about personality are true? Check all of the boxes that apply.
    7·1 answer
  • Write a program using integers userNum and x as input, and output userNum divided by x four times. Ex: If the input is: 2000 2
    15·1 answer
  • When referring to hard drives, access time is measured in
    11·1 answer
  • As a general rule, the number of bullet points on a slide should not exceed _____. a.2 b.4 c.8 d.10
    9·1 answer
  • Does trend in computing important for organization management?​
    8·1 answer
  • Write a user input program that simulates a game of a rolling pair of dice. You can create/simulate rolling one die by choosing
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!