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
pantera1 [17]
3 years ago
7

After the following code is executed what will be displayed on the screen? bool correntEmployee = true; double empSalary = 45000

; if (correntEmployee) { if (empSalary < 45000) cout << "The employee needs a pay raise.\n"; else cout << "The employee pay rate is normal.\n"; } else cout << "This person is not an employee.\n";
Computers and Technology
1 answer:
AlexFokin [52]3 years ago
7 0

Answer:

"The employee pay rate is normal" is the correct answer for the above question.

Explanation:

  • The above question code is written in the c++ language, in which there is one variable of bool type whose value is true.
  • And this variable is also tested in the if-condition which gives the true and the if-body will be executed.
  • Then the internal if-condition will give the false result because the value of the empsalary is not less than 45000. It is because the above statement "empsalary=45000" will assign the value 45000 on the empsalary variable.
  • Then the else block will be executed which prints "the employee pay rate is normal".

You might be interested in
Given a sorted list of integers, output the middle integer. assume the number of integers is always odd.
Svetllana [295]

integer userInput

integer i

integer mid

integer array(20) number

userInput = 1

for i = 0; userInput >= 0; i = i + 1

  if number[i] > -1

     userInput = Get next input

     number[i] = userInput

i = i - 1

mid = i / 2

if i > 9

  Put "Too many inputs" to output

elseif i % 2 == 0

  Put number[mid - 1] to output

else

  Put number[mid] to output

4 0
2 years ago
You should structure the first before you search for a relevant picture.
Zarrin [17]
No, I believe it is "You should use proper grammar when asking a question".
6 0
2 years ago
PLS HURRY!!<br> Look at the image below
MrRa [10]

Answer:

1. A function can use variables as parameters.

2. A function can have more than one parameter.

3. The definition of a function must come before where the function is used.

Explanation:

<u>The definition of a function can come before or after it is used</u> - I am pretty sure it cannot be placed after the function is being used. It should always come before it is used, so this statement is false.

<u>A function can use variables as parameters</u> - this is true, variables are just labels to hold data.

<u>A function can have more than one parameter</u> - this is true.

<u>A function must have a return value</u> - functions do not always have to <em>return</em> values. It could simply print, so this statement is false.

<u>The definition of a function must come before where the function is used</u> - As said earlier, the definition of functions must come before it is used/called. This statement is true.

Hope this helps :)

7 0
3 years ago
Decision-making problems that can be stated as a collection of desired goals are known as what type of problem? A goal programmi
Vera_Pavlovna [14]

Answer:

True. A goal programming problem

Explanation:

Goal programming is an optimisation technique to solve problems with multiplicity of objectives, which are generally in commensurable and they often conflict each other in a decision making horizon.In a certain programming environment, optimisation of a set of objectives is involved there in the decision situation. Here, instead of optimising them directly, achievement of the assigned target values called aspiration levels of them is considered. In goal programming method, the unwanted deviations (under and / or over) from the aspired levels are minimised in the goal achievement function (objective function) to reach a satisfactory solution in a crisp decision environment

4 0
2 years ago
What were Roman Capitals first used for?
gizmo_the_mogwai [7]

Answer:

Square capitals were used to write inscriptions, and less often to supplement everyday handwriting. When written in documents this style is known as Latin book hand. For everyday writing the Romans used a current cursive hand known as Latin cursive. Notable examples of square capitals used for inscriptions are found on the Roman Pantheon, Trajan's Column, and the Arch of Titus, all in Rome. Square capitals are characterized by sharp, straight lines, supple curves, thick and thin strokes, angled stressing and incised serifs. These Roman capitals are also called majuscules, as a counterpart to minuscule letters such as Merovingian and Carolingian.

3 0
2 years ago
Read 2 more answers
Other questions:
  • When you make a cell phone call, which type of electromagnetic wave is most likely transmitting the signal?
    12·1 answer
  • What is Napoleon's friend's full name? From the Napoleon Dynamite movie.
    9·2 answers
  • Which statements describe OneDrive?
    10·2 answers
  • In the Happy Valley School System, children are classified by age as follows:less than 2, ineligible2, toddler3-5, early childho
    6·1 answer
  • Write a function called convert_format which converts the format of a date from mm/dd/yyyy to month name dd, yyyy.
    12·1 answer
  • Which of the following cameras is a high-end digital camera that has interchangeable lenses and uses a mirror to display on its
    13·1 answer
  • A system is composed of four parts, J, K, L, and M. All four must function for the system to function. The four component reliab
    6·1 answer
  • Write smallest to largest: Byte, bit, MB, PB, GB, nibble
    12·2 answers
  • Alexi is writing a program which prompts users to enter their age. Which function should she use?
    6·2 answers
  • A company has a website that has seen a large increase in visitors and they are concerned that if the trend continues, the web s
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!