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
Which of these is a physical health benefit provided by playing team sports? A. a spiritual connection to others B. lower choles
AfilCa [17]

Answer:

B. lowering cholesterol

Explanation:

Edge 2021, made a 100 on the quiz. Good luck :)

3 0
3 years ago
Read 2 more answers
What occurs along a divergent plate boundary?
den301095 [7]
<span>D- mid- ocean ridges
</span>socratic.org<span>Most active divergent plate boundaries occurbetween oceanic plates and exist as mid-oceanic ridges. Divergent boundaries also form volcanic islands which occur when the plates move apart to produce gaps which molten lava rises to fill</span>
8 0
3 years ago
Read 2 more answers
Use the Internet and other sources to research the two disadvantages of standard biometrics: cost and error rates. Select one st
lyudmila [28]

Answer:

Check the explanation

Explanation:

Selecting the bio-metric technique fingerprint, it requires a scanner to read the fingerprint The cost for a scanner is in between 1000 and 5000 Placing two scanners at two entrance of office win cost bellow 10,000 So the cost needed for this technique is medium as compared with other bio-metric techniques

Attacks on this technique can be in saner, channel from scanner to feature extractor, in feature extractor, way in between feature extractor and marcher, in marcher, in database etc this attacks can be protect by using security methods such as cryptography, hashing, watermarking, noses etc

By using watermarking, cryptography and stenography methods, fingerprint has less false detection rate I e it gives high accuracy

I recommend fingerprint technique. Because of it is a standard technique, it has good accuracy and cost is less, and easy to handle, and it is taking small storage space in database.

Kindly check the attached image below.

7 0
3 years ago
During which phase of a hacker's five-step approach does the hacker scan a network to identify IP hosts, open ports, and service
bekas [8.4K]

Answer: Reconnaissance

Explanation:Reconnaissance is referred as the initial/primary phase in which the attacker/ hacker puts the every effort to gain the knowledge about the target that is collecting facts about the DNS data, network records, IP address, range of IP etc.

It is the initial step done by the attackers to do the preparation of the hacking.It is done by the two phases that is active phase and the passive phase.

3 0
4 years ago
The function below takes one parameter: a dictionary (dictionary). Complete the function so that it prints out each value stored
frosja888 [35]

Answer:

  1. def processDict(dict):
  2.    for x in dict:
  3.        print(dict[x])
  4. dictA = {
  5.    "Name": "Tom",
  6.    "Age": 21,
  7.    "Gender": "Male"
  8. }
  9. processDict(dictA)

Explanation:

Firstly create a function and name it as processDict that takes one input dictionary, dict (Line 1).

Create a for loop to iterate through each of the dictionary key, x, and use that key to look up the corresponding value and print it out (Line 2-3).

We test the function using a sample dictionary (Line 5-11). We shall get the output:

Tom

21

Male

3 0
3 years ago
Other questions:
  • Easy STEAM question :)
    15·2 answers
  • (A) writer or word <br> (B) Calc or Excel <br> (C) impress or PowerPoint<br> (D) none of these
    14·1 answer
  • A _____ is a valuable tool that enables a user to find information on the Web by specifying words or phrases known as keywords,
    10·2 answers
  • Sanford is creating an excel spreadsheet and needs to insert many worksheets to organize his data. What is the limit of the numb
    13·2 answers
  • When you build a computer from parts, you usually start by deciding on which processor and motherboard you will use?
    11·1 answer
  • In order to communicate between devices inside a computer?
    9·1 answer
  • The platform in E-Learning refers to:
    9·1 answer
  • Which of the following is a characteristic of vector graphics?
    15·2 answers
  • One benefit proprietary licensed software is that it
    9·1 answer
  • Explain the limitations of the old economy<br>​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!