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

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.

1. lesa __________
2. didalna _______________
3 .rpeyr etlyr _____________
4. etrpoy _____________
5. rkyo ewn _____________
6. amya loagneu _____________
7. zfeorn___________________
8. msal etopry ________________
9. reyve nda gsni filt ________________________
10. tehreat lopoal ______________________
11. getas htgfir _______________
12. telsa __________________
13. diovc _____________
14. engilaenri _____________
15. atsfdofo ____________
16. rgwo pu i nhew ____________
17. tbulatyir lipcoe _______________
18. smjniae ncpiesrs __________________
19. migna ______________
20. dnaniai rgya

Answers

Penissss...?
Yes or no?

Which of the following are advantages of automatic updates?

Answers

Answer:

I think maybe b or d

Explanation:

Answer:

It's A, B, and D

Explanation:

Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.

Answers

Answer:

Example 1:

def function(num):  

   print(num*2)

Example 2:

function(5)

num = 2

function(num)

function(3-1)

Explanation:

Given:

See attachment for complete question

To start with Example (1)

def function(num):  

   print(num*2)

Note that; the above code segment which doubles the parameter, num could have been any other code

In Example (1), the parameter is num

For example (2):

We can call the function using:

#1. A value:

function(5)

In #1, the argument is 5; a value

#2. A Variable

num = 2

function(num)

In #2, the argument is num; a variable

#3. An Expression

function(3-1)

In #3, the argument is 3-1; an expression

What is the best way to prove you did your research on a person you contact via email for help or guidance? A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background B. Tell the person generally how much you respect his/her career; if you're too specific, it will be overboard and you may turn the person off

Answers

Answer: A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background.

Explanation:

If you were to write an application letter for employment at a company, you would include certain details of the company that you found out whilst researching them so that your chances of being hired are improved.

The logic is the same here. In order to prove that you have researched a person, the proof lies in what you found out during that research. In this scenario, that includes specific projects that the person has worked on of recent.

why is it important to make sure link is from a trusted source?

Answers

Answer:

So to make sure itś true not false

Explanation:

Answer:

so you know that the information is trusted and correct. Take Wikipedia as a example people can edit any passages thingy's. Or it can cause you to have viruses and stuff

Explanation:

hope this help !!:):

Explain the difference between undecidable problems and unreasonable time algorithms. Be specific.

Answers

One for which no algorithm can ever be written to find the solution is an unsolvable problem. An undecidable problem is one for which no algorithm can ever be written that will always provide any input value with a correct true/false option.

An insoluble issue is one for which there is no algorithm that can ever be constructed to locate the solution. Undecidable problems are those for which there is no method that will ever be developed that can consistently return a true/false answer for any input value.

What is time algorithms?

If the value of an algorithm is constrained by a value that is independent of the amount of the input, the algorithm is said to be constant time sometimes written as time. For instance, accessing any individual element in an array requires a constant amount of time because just one operation is required to find it.

We employ a technique known as "Big O notation" to describe how time-consuming a method is. We employ a language called the Big O notation to express how time-consuming an algorithm is.

Therefore, we would argue that the insertion sort's best-case time complexity is O. (n). Linear complexity is another name for O(n) complexity.

Thus, An insoluble issue is one for which there is no algorithm.

For more information about time algorithms, click here:

https://brainly.com/question/14635830

#SPJ6

2) What are two reasons we analyze algorithms?
a) make decisions about what algorithms to use
b) ease of coding
c) sorting data
d) predict performance

Answers

It’s a making sections about what algorithms to use

Answer:

Make decisions about what algorithms to use

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.

Site specific situation wherein you have to write “Shortage Notations?

Answers

Answer:

Shortage Notations and the situation where you have to write down the Shortage Notations is explained below in complete detail with the situation.

Explanation:

Shortage Notations: If a portion of the shipment is missing, record the number of items shipped on the delivery slip and circle it. Then record down the number of articles missing and remark them as "short." The acquiring person is accountable for demanding the carrier to investigate the damaged goods and packaging.

It should be noted that a shortage notation occurs when the products delivered on a ship are incomplete when the ship gets to its destination.

It should be noted that shortage notation simply means when a portion of a shipment is missing, then an individual should record rte number of the items that are shipped on the delivery slip and then circle it.

Then, in such a situation, the owner of the good can then file a shortage claim later. This happens when the packaging isn't intact.

Learn more about shipping on:

https://brainly.com/question/758860

Example of Not a computer characteristics example

Answers

Answer:

A book

A non electronic

Explanation:

Every finger has a key it should be resting on when you are not typing
1. False
2. True

Answers

Answer:

true.

Explanation:

your point fingers should always be

your left should rest on F

your right should rest on J

the anwser is true!

Select the correct answer.
Which output returns the Boolean value FALSE?
A.3
B.2
C.1
D.0

Answers

Answer:

your answer would be D.0

Explanation:

Which of the following file formats allows you to share and save documents without a designated application? Ο
Α. HTM
B. PDF
C. JPG
D. MP3​

Answers

Answer:

B. PDF

Explanation:

For online fax service, fax documents are usually in PDF, TIFF or plain text formats.

Answer: PDF

Explanation:

a p e x

Help please not trying to fail

Answers

Answer:

B. Everywhere CFCI is not

What are three primary reasons for asking others to review and comment on a presentation?
O to document feedback, edit images, or share credit for the presentation
O to review content for accuracy, suggest improvements, or document feedback
O to suggest improvements, maintain record keeping, or review images for accuracy
O to maintain record keeping, share credit for the presentation, or suggest improvements

Answers

Answer:

to review content for accuracy, suggest improvements, or document feedback

Explanation: answer is b

In your opinion which of the following is the most convenient way to create a bootable USB flash drive? Why?

Answers

Answer:

here

Explanation:

Plug the USB drive into your computer’s USB port.

Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context menu. This opens a small window with white text on a black background.

Type the command “diskpart” and confirm your input with the enter key (you’ll also do this after every other entered command). This starts the storage device manager.

Enter the command “list disk” to display all available storage devices.

You can recognize your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC, so a hard drive or solid state drive in your computer.

Based on the assumption that your USB has the label “disk 1”, enter the command “sel disk 1” to select it (or the corresponding “disk 2”, etc.).

Enter then command “clean” to delete all files from the USB.

Enter the command “create partition primary” to create a main partition.

Enter the command “list par” and select the newly created main partition with “sel par 1”.

Activate the partition with the command “active”.

Format the USB with the command “format fs=FAT32 label=“WINDOWSUSB” quick override” (in place of “WINDOWS USB” you can also choose another label, so long as it doesn’t contain any spaces or special characters. The drive will later be displayed under this name if you plug into a running Windows computer). Formatting may take a while. You can track its progress in the percentage bar.

As soon as the process is finished, enter the command “assign” to automatically assign a drive letter (for example “G:”) to your USB.

Enter “exit” to close DiskPart, and then “exit” again to close the command prompt

Andrew likes to purchase his school supplies online. What are two advantages of doing so?


A.
It is possible for his information to be accessed or stolen by a third party.

B.
All his personal information is sent digitally and does not change when transmitted.


C.
Because the information is sent digitally, there are an infinite number of different signals possible.

D.
Because the information is sent quickly, he can receive his order more quickly.

Answers

Answer:

bd

Explanation:

Answer:

The answer is B.All his personal information is sent digitally and does not change when transmitted. And D.Because the information is sent quickly, he can receive his order more quickly.

Explanation:

I took AP EX quiz.

Match each feature to whether it influences audio or video quality

Answers

Answer:

Video: Frame Rate, Color depth, Resolution

Audio: Sampling Rate, Bit Depth

Explanation:

1. Is the function void or return
a. void
b. return
2. What is the result of the following expression: int r = 3; r%2 == 0;
a. it evaluates as true
b. it evaluates as false
c. nothing happens

Answers

Answer:

(a) void

(b) Nothing happens

Explanation:

Solving (a): void and return

A function that returns no value is referred to as a void function.

On the other hand, a void can not be return or named return.

So, the function is void

Solving (b):

r = 3

Required

The result of r%2 == 0

Substitute 3 for r in r%2 == 0

3%2 == 0

3%2 is 1.

So, we have:

1 == 0

Hence, the equivalent of r%2 == 0 is 1 == 0.

However, nothing will happen because there is no instruction attached to the statement (i.e. r%2 == 0;)

A vending machine that serves coffee pours a varying

Answers

is that the whole question? or

why is it important to make sure link is from a trusted source? can't we just click and if it's not what we want or
through it would be just go back?​

Answers

Answer:

First... you don't want to have to click on a million different sites

Second.... some sites have viruses, and they activated when you click on a certain source.

Explanation:

Hava great day!

Answer:

They say that it has to be from a trusted source because, you will be needing the correct and trustworthy information. Like take wikipedia for example anyone can go on there and change the information to something fake and then you have fake info in what you are writing.

Explanation:

Complete the statement below using the correct term.


One problem with _____
is that often many copies of the same document are made.

Answers

One problem with PRINTER is that often many copies of the same document are made.
printers or a printer !

What does perseverance mean?
A. an interest in discovering the unknown
B. helping someone recover from an injury
C. a willingness to keep trying
D. an ability to communicate with others

Answers

ansewer is C a willingness to keep trying
The answer is Definitely C.

What is the legal precedence that affects data collection and data preservation as it relates to the digital forensics process

Answers

Answer:

Following are the solution to this question:

Explanation:

Some certain laws affect collection and data preservation procedures. When an electronic crime happens, government employees must be ordered to continue with both the inquiry or permission by their senior government officials. The digital forensic investigator has to comply with the laws of a country as they apply to both the situation so if conducting out such a digital forensic analysis. Many law safeguards that rights of patients who could obstruct their investigator. Its culprit can manipulate or interfere with digital evidence until the inquirer gathers and maintains this. There are many limitations on permit study. 

When its private data is revealed, the Electronic Communications Protection Act (ECPA) has been adopted to protect the privacy rights of its ISPs' consumers. That protects people (suspect/culture) from the investigators by just not acquiring its ISP's information, in many specific regulations are affecting the process of digital forensic data collection and preservation.

Which of the following does not demonstrate a harmful consequence of increased anonymity on the Internet?
A. Users can avoid targeted discrimination in an online forum.
B.People can create avatars to interact inappropriately with other users in
a forum
C.People can post hate speech in video comments without consequences.
D.People can easily create fake profiles to impersonate others online.

Answers

Answer: A. Users can avoid targeted discrimination in an online forum

Explanation:

Despite the many advantages that comes with social media, it also had it's own disadvantages and one of such is the increase in anonymity on the Internet.

Some of the consequences of the increase in anonymity is that people can make hate speech, create fake profiles to scam others or interact inappropriately, impersonation etc.

Therefore, the correct option will be option A"Users can avoid targeted discrimination in an online forum" as this isn't a harmful consequence of increased anonymity on the Internet.

Why should you delete files from your computer?


so that you will have less work to do

because only one hundred files can be saved in a directory

to increase the computer's efficiency

to improve your productivity

Answers

to increase the computer's efficiency

Explanation

The more files it holds, the more "jobs" it has to run, which means that you're computer would be using the same amount of energy running all of them as to less of them. When you close (or delete) some files, it allows the computer to concentrate on only running a smaller amount of files as oppose to a large amount.

hope it helps!

Answer:

To increase the computer's efficiency.

Explanation:

Having a bunch of files will most likely slow down your computer and make things harder to do. If you don't have a bunch of files, though, your computer will be faster and easier to guide through.

I hope this helps :)

write an article for publication on why every student should be computer literate​

Answers

Answer:bankrupt

Explanation: no money on your card lol i hope you haveing a great day and i want you to know that you got this babe like is life is good then great but if not then it will get better beause you will make it get better

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.

Find the quotient. 2.5 ÷ 5

Answers

Answer:

.5

Explanation:

you just divide 2.5 by 5

2.5 divided by 5 = 0.5

Other Questions
Which sentence is punctuated correctly? I need help with this please 3. Not all of the founders agreed with Jefferson's view on the separation of church and state. Do you agree with Jefferson or with hisopponents? Explain. please help me im struggling :cccWhich two details from the passage best support the inference in Part A?"A mechanical doll could have done what she did.""It had begun just as all her other days began: bells at dawn, maids running in and out to hurry her into her clothes, and the Assistant Chamberlain barking a schedule""She wouldn't get to do so, of course, but she could hope. She always hoped.""She was decoration, giving people a bit of the royal glamor without ever doing any real work." 1. There are five questions on a multiple-choice test. Each question has four possibleanswers. Savanna did not study for the test, randomly picks the answers, and submitsthe exam. Find the probability that:Savanna answers the first question correctly.b. Savanna answers the first, second, third, fourth, and fifth questions correctly. Which of the following is not true about vitamins?A. Vitamins assist in forming bone and tissue.B. Vitamins are only found in plants.C. Vitamins help your cells function properly.D. Vitamins help the body use proteins, carbohydrates, and fats. Pure acetic acid is often called glacial acetic acid because it is purified by fractional freezing at its melting point of 16.6 C. At 1 atm, a flask containing several moles of acetic acid at 16.6 C is briefly lowered into an infinitely large ice-water bath. When it is removed it is found that exactly 1 mol of acetic acid has frozen. Given: H_fusion,acetic acid = 11.45kJ/mol and H_fusion, H2O= 6.01 kJ/mol.Required:a. What is the change in entropy of the acetic acid? b. What is the change in entropy of the water bath? c. Now consider that the water bath and acetic acid are the same system. What is the entropy change for the combined system? Is the process reversible or irreversible? Why? How can you minimize burn and fire hazards in the kitchen?AWear tight-fitting clothing when working near the stove.BAll of these answer choices are correct.Turn the pan's handle toward the back of the stove.DKeep dish towels and paper towels off of and away from the stove. Which of the following was not an effect of the United States joining the war?A. The war tipped the balance of power in favor of the allies , allowing them to win the war B.The war cost so much money that it plunged the U.S. into the Great Depression . C. The war boosted the United States ' power and prestige making them a world power for the first time. D. The war emboldened President Wilson to suggest a League of Nations to prevent wars like this from happening again . PLEASE HELP QUICKK!!Suppose (-7, -3) is reflected across the x-axis, and then the y-axis. what will be the new coordinates? Can someone help me? PLZ HELP ME I BEG OF YOU!?! Mr. Alvarez was charged in the Central District of California with two counts of falsely representing that he had been awarded the Medal of Honor in violation of the Stolen Valor Act of 2005. Which branch of government would determine if he was guilty or innocent of this crime?Question 3 options:Judicial Executive Legislative John's ordinary step covers 18 inches. How many steps does he take in walking 10 yards? Which of the following is not a goal of a narrative essay?to illustrate a universal themeto make a point about lifeto disguise any obvious point of viewto use traditional storytelling methods to interest readers 14. What is the value of the missing angle? (1 point)1517575-115135O 129O 1530O 16900720 If two boys push a box in the SAME direction, each with a FORCE of 10N, then the total (net) force will be 1.Let's say you could see inside of the nucleus of a Silver atom and inside the nucleus of a Cobalt atom. How would they look different?2.If a substance has no (or almost no) likelihood of undergoing a chemical reaction with another element it is said to be:a.Ionizedb.Malleablec.Reactived.Inerte.An Isotope3. Evaluate this sentence and explain why it is incorrect:Neon came into contact with Iron and the reaction was very explosive.4. Mr. Carney does and experiment. He weighs himself. He weighs 210 lbs. He then runs 15 miles. Then weighs himself. He now weighs 200 lbs.Explain the conservation of mass using this experiment as your example.NEED ANSWERS NOW DUE TODAY in a series connection of bulbs,if one bulb fails.why do all other bulbs go off 1. All of the students in a class are younger than 12 years. Write an inequality thatrepresents the ages a of the students.