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
adoni [48]
4 years ago
6

For the function definition int SomeFunc( /* in */ int alpha, /* in */ int beta ) { int gamma; alpha = alpha + beta; gamma = 2 *

alpha; return gamma; } what is the function postcondition?
Computers and Technology
2 answers:
Sonbull [250]4 years ago
3 0

Answer:

A function post-condition refers to what will happen  and return after calling the function.

Given the function definition as follows:

  1. int SomeFunc( /* in */ int alpha, /* in */ int beta )
  2. {
  3.    int gamma;
  4.    alpha = alpha + beta;
  5.    gamma = 2 * alpha;
  6.    return gamma;
  7. }

If we call the function by passing two values, 3 and 4, as input parameters, the 3 will be captured by alpha and 4 by beta. The two input values will by calculated based on the formula defined inside the function as follows:

alpha = 3 + 4 = 7

gamma = 2 * 7 = 14

At last the function will return 14.

lbvjy [14]4 years ago
3 0

Answer:

function value == 2*([email protected] + [email protected])

Explanation:

int SomeFunc( /*in */ int alpha,  /* in */ int beta )

{

int gamma;

alpha = alpha + beta;

gamma = 2 * alpha;

return gamma;

}

The post-condition is useful for testing purposes. It represents what value the function SomFunc is expected to return at the time of program execution in a simplified manner.

For the given problem the post-condition is

function value == 2*([email protected] + [email protected])

Where @entry represents the value of alpha and beta at the moment when the function was called.

Note:  /*in */  it represents comment in c++ language and is ignored by the compiler

You might be interested in
The ‘capacity for emergency management and response personnel to interact and work well together’ describes which of the key com
dybincka [34]

Answer:

The correct answer to the following question is option A. Interoperability

Explanation:

Interoperability is the capacity to interact and work together. In other words, interoperability is an ability in which different types of systems, applications, products or devices to communicate and connect to work together, without any effort of end-user.

Interoperability is that property which allows for an unrestricted sharing of the resources between the different systems.

5 0
3 years ago
Read 2 more answers
After pasting data, what can be done to access more options for how to paste it? You can change the formatting in the original c
uysha [10]

<span>You can click the smart tag that pops up after pasting.
</span>

♣Amaranthine
8 0
3 years ago
Select the correct answer
Vaselesa [24]

Answer:

professional integrity

Explanation:

The work he is doing is comes under the violation of professional integrity. Because professional integrity is the set of ethics that should be followed by the employ. These ethics includes honesty, loyalty and dependability.

5 0
4 years ago
Which options can you choose to determine the width and height of data or cells in a spreadsheet? You can choose the or rulers t
Tju [1.3M]

Answer :

Double click on boarder width an height will automatically adjust.

Manual procedure are following:

1.Open desire file of spreadsheet

2. Click on home tab in cell group and then click format.

3. Under cell size click on default width.

4. In standered column width box type new measurements and then click OK.

4 0
3 years ago
What was the term, “cyberspace,” originally used to describe?
WITCHER [35]

Answer:

What was the term "cyberspace" originally used to describe? the account of artificial intelligence found in some science fiction. Although many people incorrectly use the terms interchangeably, the Internet and the World Wide Web are not the same.

Explanation:

8 0
2 years ago
Other questions:
  • As the design phase of an SDLC begins, programming languages, development tools, and application software needed for the new inf
    13·1 answer
  • What is computer <br> What is scratch
    10·2 answers
  • What is an important step to take before entering your first data into your database?
    10·2 answers
  • Develop a program that implements the POLYNOMIAL ADT using the LIST ADT. The POLYNOMIAL ADT is used to represent polynomials and
    8·1 answer
  • Among us Question. Worth 15 Points.<br> Which Vents do the Admin Vents Connect?
    14·2 answers
  • What is the output of the following program?
    11·2 answers
  • 9. What will help you determine the kinds of tools, equipment and utensil you will assemble, sanitize, inspect or check?
    13·1 answer
  • Which of the following uses the proper syntax for creating an HTML comment?
    8·1 answer
  • Different the policies and protocols in the industry
    13·1 answer
  • Html specifications that are not included when newer specifications are released or are not included in the xhtml specification
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!