Ok for whoever answers this, Ill wager 20 points...
Consider the following procedures.

PROCEDURE math (ans1, ans2)
{
a ← INPUT()
b ← INPUT()
c ← math2(a, b)
e ← a + ans1
f ← b + ans2
g ← math2(e, f)
h ← c + g
DISPLAY(h)
}

PROCEDURE math2 (res1, res2)
{
d ← res1 + res2
RETURN(d)
}
What is displayed as a result of executing the following program, if when prompted, the user enters a = 3 and b = 4?

math(1, 2)

Answers

Answer 1

Answer:

The display will be 17.

Explanation:

Tracing through the program:

At first, math is called and sent 1 and 2 - so 1 is stored to ans1 and 2 is stored to ans2.

If the user inputs 3 for a and 4 for b, the program then calls function math2 and passed values of 3 and 4.

So now inside of math2, 3 is stored to res1 and 4 is stored to res3. Inside of this function, res1 and res2 are added together - so then 7 is stored to d and then returned back to the original function.

So now 7 was stored back to the variable c. Then a and ans1 are added together (3 + 1 = 4) and b and ans2 are added together (4 + 2 = 6). Each of these values are stored back to e and f.

Then those values, e and f (4 and 6) are again sent to math2, which simply adds the values together and returns it back to the function. So 10 is sent back to math and stored to the value of g.

Then c (7) and g (10) are added together and displayed.


Related Questions

Help Me Please. I'm Begging you

Answers

Answer:

d and b can't see the last ones answer so im guessing this is what you needed.

Explanation:

Help please not trying to fail

Answers

Answer:

B. Everywhere CFCI is not

Write a description of the photograph to someone who cannot see the photograph. Be sure to include the title of the photograph and photographer credit in your response.

Answers

Answer:

I do not have a photo as a example but you could explain the feeling that it gives you and if its gloomy or happy go lucky you can also explain the main colors in the photo as well as the charters and/or type of object/s are in the photo

Read through the following scenario, and then decide which computer is the best fit.

Answers

Answer:

gaming pc?

Explanation:

i dont know why you have this question kinda weird but entertainment pc or gaming pc sounds right

Answer:

B. Gaming or media production computer

Explanation:

Gaming or media production computer is the best computer you'll need because if you don't have the best computer it probably won't work on you. But if you the gaming or media production computer it will work on you.

I hope this helps.<3

Have a nice day.<3

Python
Write a function that calculates a cell phone bill
First screenshot of rules and such
Second screenshot is example of outcome

Answers

print("welcome to the bill calculator")

minutes = float(input("number of minutes you used: "))

data = float(input("the amount of data you used in GB: "))

print("your basic plan costs $39.99 per month")

mcost = (minutes - 450) * .45

print("you will be charged " +  str(mcost) + " for the minutes you used")

print("the monthly data fee is $30.00")

dcost = (data - 3) * 10

print("you will be charged " + str(dcost) + " for the extra data you used")

total = mcost + dcost + 69.99

print("your total bill is " + str(total))

the 20 value your teacher gave may be incorrect, bc 4.2-3*10 = 12 not 20, making the total 109.89

Example of Not a computer characteristics example

Answers

Answer:

A book

A non electronic

Explanation:

What actions can you take to ensure the physical security of network devices?

Answers

Answer:

Here are some steps you can take to make sure your network is secure:

Take physical precautions. ...

Make sure all of your server's security features are enabled. ...

Use both hardware and software firewalls. ...

Install the latest version of your server's software. ...

Guard passwords. ...

Be Wi-Fi savvy.

Explanation:

PLEASE MARK ME AS BRAINLIEST

In the scenario below, decide whether you should upgrade the computer or replace it. You’ve been working on your existing laptop computer for 3 years. It seems to be running just fine except for the times that you need to run video-editing software for your film hobby. Plus, there is a new program that your friends are using for their video editing, and you think it is pretty cool, but it might not run on your laptop. What should you do?

Answers

Answer:

Replace

Explanation:

Since the laptop is already 3 years old and you cant just open laptops it wuld be better to just replace

Answer:

B. Replace

Explanation:

When you been working on the laptop for three years it probably won't work so you'll need to replace the old laptop with a new laptop. But if the laptop still works over that three years you can still replace it if you want.

I hope this helps. <3

Have a nice day.<3

Need help ASAP

Thankss + BRAINLIST only for correct answers

Answers

Explanation:

The purpose to the user: having entertainment, a fun thing to do when there is nothing else to do.

The purpose to the creator: making money, the user has to pay for the entertainment.

help ......... pleaseeeee

Answers

Answer:

Follows are the solution to this question:

Explanation:

Transport layer:

In the OSI model, this layer lies on the 4th part, which primary function is to directly supply the network connectivity to applications mostly on various hosts.

It provides end-to-end communication over a network and also allows you to send and receive error-free data in the form of data packets that enhanced your privacy.

Flow control and Error control:

The flow control is only used to send or receive information transmission only, while Error control is used designed for error-free communication for both (sender or receiver).

Layer related to the data link layer:

It must be done at different layers on both layers like node-to-node connections, the communicative needs are controlled by flow and error. Flow and error control in the transport layer is done from endpoint to endpoint.

A vending machine that serves coffee pours a varying

Answers

is that the whole question? or

As you are designing a site for a client, you notice that the bulleted lists do not appear when a blog is published. You look in the code and see you have used the proper < li > tag. What else needs to be in the code?


notli

/li

unli

-li

Answers

Answer:

B

Explanation:

What is abacus. List it's features in points.​

Answers

Answer:

An abacus is a manual aid to calculating that consists of beads or disks that can be moved up and down on a series of sticks or strings within a usually wooden frame. The abacus itself doesn't calculate; it's simply a device for helping a human being to calculate by remembering what has been counted.

Explanation:

Why is it important for an app developer to work closely with the client and end users to understand what their users want and need?

Answers

if the app developer doesn't meet the clients needs within the app the client may be dissatisfied, and not use the app. The client could also spread the word that this app developer dosen't listen to their customers and this could jeopardize future clients wanting to work with the app developer.

In what ways can you sort data by using the sort procedure? Check all that apply.
sort ascending

sort descending

sort diagonal

sort by font color

sort by background color

sort by rows

sort by columns

Answers

Answer:

all except c:)

Explanation:

Answer:

1,2,4,5,6,7

Explanation:

all except C

what is targets net worth in 2020 (i will see if you put in 2019)

Answers

Answer:

62.6 billion

Explanation:

Word processing software is used primarily by schools rather than businesses.
True or false

Answers

Answer:

False.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

Generally, the Microsoft Word software is used by various businesses for processing and formatting text-based documents.

In Microsoft Word, formatting refers to the appearance of texts in a document.

Formatting a text involves performing tasks such as, bold, underline, italics, font-size, font-types, color etc. The commands to perform the above tasks are mainly found in the format menu of the Home tab.

Formatting a document is important and necessary because it makes the word document clear and easy to read.

Hence, Word processing software such as Microsoft Word, Notepad, etc., is used primarily by businesses rather than schools because most businesses deal with the creation and transfer of documents from one department to another or to other businesses.

This ultimately implies that, business firms or organizations are more inclined to use Word processing software to create paper documents for the day-to-day business activities they conduct unlike a school who rarely does.

If the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line when this program is run? If this result in not what the programmer intended, how would you explain what went wrong?

Answers

Yes :) I totally agree with the person above me ^

if i want a word to be keyed in all capital letters, which is the correct proofreader's mark?

Answers

----
----
---
Three lines under a lowercase letter mean to make it a capital.

Using the drop-down menus, choose the correct term for each description or sentence.
The main storage device inside a computer where programs and files are saved is called
the
The process of getting instructions from RAM, decoding, executing, and then storing is a process
known as the
FireWire, Ethernet, modem, and USB are all examples of
0101010 is an example of

Answers

Answer:

There is no drop-down menu in your question

Hard driveMachine cyclePortsBinary Number

Explanation:

1.) The main storage device inside a computer where programs and files are saved is called hard drive.

2.) The process of getting instructions from RAM, decoding, executing, and then storing is a process known as Machine Cycle.

3.) FireWire, Ethernet, modem, and USB are all examples of ports.

4.) 0101010 is an example of a binary number.

Answer:

Using the drop-down menus, choose the correct term for each description or sentence.

The main storage device inside a computer where programs and files are saved is called the hardriveThe process of getting instructions from RAM, decoding, executing, and then storing is a process  known as the machine cycleFireWire, Ethernet, modem, and USB are all examples of ports.0101010 is an example of binary

here are also the answers to the next questions:

Using the drop-down menus, choose the correct term for each description or sentence.

A display or monitor with a larger number of  ✔ pixels  will have a clearer, more brilliant resolution.The more  ✔ bytes a thumb drive has, the more storage capability it will provide.The more  ✔ hertz  a microprocessor or CPU has, the faster it will process data.A computer’s speed is measured in ✔ hertz , and a computer’s internal memory  capacity is measured in  ✔ bytes .

Complete each sentence by choosing the correct answer from the drop-down menus.

The  ✔ USB port would not be found inside the system unit.A very fast port used for audio/video output is called ✔ FireWire .A very high-speed network connection port is called  ✔ Ethernet .USB stands for ✔ Universal Serial Bus .

Hope it helps.

Explanation:

PLS HELP ILL GIVE BRAINLY- (enter the answer) Microsoft _________ is an example of a desktop publishing software

Answers

Answer:

word fffffffffffffffffffffff

Excel should be correct
Sorry if wrong

WILL GIVE BRAINLYEST You would like to implement the rule of thirds to present high-resolution images in an IT scrapbook. The scrapbook includes images of computer and other IT devices. How can you do this for the scrapbook?
You can implement the rule of thirds by placing the ____(Key, Larger, Smaller)
part of the image along ____ (Central, Intersecting, margin) the
lines.

Answers

Answer:

key              margin

Explanation:

kid rally have a explantions

what role does javascript play in a web page

Answers

Answer:

Js is an programming language usually used for coding. It is used on most browsers to produce an effective and interactive design for some users.

The variable myFirstName needs to store a user's first name. What data type should it be
initiated as?

Answers

Answer:

In terms of the data type it would most likely be a String and not a Boolean and or a Number.

Find the quotient. 2.5 ÷ 5

Answers

Answer:

.5

Explanation:

you just divide 2.5 by 5

2.5 divided by 5 = 0.5

How many times would the for loop below execute if variable times = 9 % 2?

for (int x=times; x <=times; x++) ?

1
0
2
3

Answers

Answer:

1

Explanation:

9 % 2 = 1

So x = 1

It will execute once

You are 18 years old and need to write an email for the first time to a woman in her 40s( you can tell her age based on when she graduated college via he LinkedIn profile). How do you address her in the email? A. (First name) B. Hi(First name), C. Hi Ms.(Last name), D. Hi Mrs.(Last name) E. None of the above

Answers

E. None of the above

Its not formal to address someone with their first name, but it is also not right to assume if the woman is married or not.

DOSE ENY ONE KNOW WHAT TOOLS THEASE ARE NEXT TO THIS GUY BECAUSE I AM AT A LOSE ON THIS ONE??????????

Answers

Those look like very old tools

All are secret and destructive weapons I guess

Please help I’m not trying to fail

Answers

Answer:

a

Explanation:

i think a pressure clamps

Select the correct answer from each drop-down menu.
You can lose data
. So, you should periodically back up your data

Answers

Answer:

... where drop down menu? from what i got, back up ur data daily

Explanation:

Answer:

The answer is: "You can lose data because of a virus attack, So you should periodically back up your data on a different hard drive."

Explanation:

I got it right on the Edmentum test.

Other Questions
HELP :( DO IT FOR FWENCH FWY a plan to expand megans room will make the length 140% what will be the new length of the room? 15. Which nation did Russia annex in 2014?A. TaiwanB. PolandC. Iraq D. Ukraine Why is it important to know the temperature of the water when dealing with ions inan aqueous solution?Water does not ionize at higher temperatures.Water becomes very acidic when at low temperatures.Temperature affects the concentration of water.The ionization constant of water is usually given at 25 C.Water at a higher temperature will produce more ions than water at a lower temperature. Time management is a learned behavior.TrueFalse explanation of chandelier music video by sia and maddie please What impact did the Emancipation Proclamation have on outcome of the Civil War? Greg earned $340 interest after 5 years at an interest rate of 7%. What was in initial investment? I need help due in 10 minutes ah! help please ......... Please help asap! Giving brainliest to correct answer. Three sections of the periodic table are labeled A, B, and C in the image below.Which of the following statements is most likely true for an element present in section B? Select one:a. It is a highly reactive metal.b. It is an inert gas at room temperature.c. It may act as an insulator or a conductor.d. It is a highly reactive liquid at room temperature. Solve for n:3(28n)=3n+6Select one:-155-50 30 POINTS PLEASE TELL ME HOW TO SOLVE THIS!!If you have 3.4grams of carbon how manymoles of carbon would you have? investigue en mi comunidad los mitos y creencias que existe de qu una familia el primero que deben hacer es el hijo varn y no una nia ya que esta manera la madre no se gana el respeto de las dems miembros de la familia In the scenario above, Red hair (R) is dominant to blonde hair (r). If two parents areheterozygous for red hair, what percentage of their offspring will have red hair and whatpercentage will have blonde? Crystal receives a monthly salary of $3,980. Find her earnings per year and earnings per week. 2. diameter of car tire: 40 cmdiameter of toy car tire: 18 mm What did the Industrial Revolution do forAmerican Travel? Enter the value for x that makes the equation true. Solve w=3/7(ay+m) for y