Define stubs for the functions get_user_num() and compute_avg(). Each stub should print "FIXME: Finish function_name()" followed by a newline, and should return -1. Each stub must also contain the function's parameters.


Sample output with two calls to get_user_num() and one call to compute_avg():

FIXME: Finish get_user_num()

FIXME: Finish get_user_num()

FIXME: Finish compute_avg()

Avg: -1


code to fill in:


''' Your solution goes here '''


user_num1 = 0

user_num2 = 0

avg_result = 0


user_num1 = get_user_num()

user_num2 = get_user_num()

avg_result = compute_avg(user_num1, user_num2)


print('Avg:', avg_result)

Answers

Answer 1

Answer:

Replace your solution goes here with the following:

def compute_avg(num1, num2):

   func_name = "compute_avg()"

   print("FIXME: "+func_name)

   return -1

def get_user_num(user_num):

   func_name = "get_user_num()"

   print("FIXME: "+func_name)  

   return -1  

Explanation:

This defines the compute_avg function

def compute_avg(num1, num2):

This sets the function name

   func_name = "compute_avg()"

This prints the required output

   print("FIXME: "+func_name)

This returns -1

   return -1

This defines the get_user function

def get_user_num(user_num):

This sets the function name

   func_name = "get_user_num()"

This prints the required output

   print("FIXME: "+func_name)

This returns -1  

   return -1  


Related Questions

The ________________________ option allows one to start a numbered list on any number desired. [Set Starting Number Values]
Question 7 options:

Number Formats

Change List Level

Define New Number Format

Set Numbering Value

Answers

Answer:

Set Numbering Value.

Explanation:

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

In Microsoft Word 2019, the users are availed with the ability to edit the word document in the following view type;

I. View Mode.

II. Print Mode.

III. Drift Layout.

A numbered list can be defined as a list of items that are ordered numerically or sorted sequentially.

Basically, it is best suited for steps or procedures that are to be done sequentially or in order i.e in an ascending order. Thus, a numbered list is an ordered list that starts from 1.

The Set Numbering Value option allows one to start a numbered list on any number desired. To automatically create a numbered list in Microsoft Word, you should press 1 followed by a period, leave a space, type a text and then press the enter button.

Why did the editors choose to rearrange the intercutting between Luke’s story and the Imperials? What effect did this have on the final film?

Answers

Answer:

Though it has its merit, know that the rule is not mandatory. ... A jump cut is a cut in film editing in which two sequential shots of the ... An intercut is a type of edit where two or more actions in distinct ...

You've just deployed a new Cisco router that connects several network segments in your organization. The router is physically located in a server room that requires an ID for access. You've backed up the router configuration to a remote location in an encrypted file. You access the router configuration interface from your notebook computer using a Telnet client with a user name of admin and a password of admin. You have used the MD5 hashing algorithm to protect the password. What should you do to increase the security of this device

Answers

Answer:

The answer is "Use SCP to back up the router configuration to a remote location".

Explanation:

In the SPC, it is the Secure Copy Protocol that allows information to be stored and securely transmitted. Its SCP doesn't encrypt its digital information by itself; it corresponds to both the Security module which provides authentication or security. It allows the safe transfer of personal documents from either a host machine to a remote server. Its transference protocol "FTP" is quite close, but it adds security and authentication.

Write a while loop that produces the following output:
1
2
4
8


please i need help

Answers

Answer:

Explanation is being shown in the file to the link

write Python statement to do the following tasks (a) create a list that contain the name of 5 student of your class (b) add one more name to the list of 5 students (c)
delete the first name from the list of student​

Answers

Answer:

classroster = ["Bill", "Tyler", "Jake", "Sam", "Joe"]

print("Original Roster: " + str(classroster))

classroster.append("June")

print("Added student: " + str(classroster))

classroster.pop(0)

print("Removed the first student" + str(classroster))

Explanation:

We create a variable named classroster and assign it a list value by using []

We print text with the value of the variable classroster, but we used the str tag to make it a string value

We used classroster.append to add "June" to the end of the list.

We then print the classroster again

We use classroster.pop(0) to remove "Bill" on the list. If we wanted to remove "Tyler" from the list, we would use classroster.pop(1).

If we wanted to remove "Jake" we would use classroster.pop(2)

and so on. goodluck!

What is the purpose of "theme_color" in Word Press?


to change the color of the frame

to change the color of any buttons

to change the color of the text

to change the color of the background

Answers

the answer is 3. to change the color of the text

Answer:

Change the color of the text

How do computers process data?

Answers

Data processing, Manipulation of data by a computer. It includes the conversion of raw data to machine-readable form, flow of data through the CPU and memory to output devices, and formatting or transformation of output. Any use of computers to perform defined operations on data can be included under data processing.

Hope this helps!

how and why Steve Jobs left Apple Computer.

Answers

Answer:

Jobs was forced out of Apple in 1985 after a long power struggle with the company's board and its then-CEO John Sculley. ... He was largely responsible for helping revive Apple, which had been on the verge of bankruptcy.

Explanation:

why auto-updates can reduce the risk of a cyberattack?

Answers

Answer:

They help keep your software up to date.

Explanation:

Using Windows for example: With automatic updates, you don't have to search for updates online or worry about missing critical fixes or device drivers for your PC.

You can read more about it here: https://support.microsoft.com/en-us/windows/windows-update-faq-8a903416-6f45-0718-f5c7-375e92dddeb2

I hope this helps you!

I'm in need of an answer im not just wasting points for your benefit anymore..

Chris has handed over the screenplay to the sound designer to design the sounds in the movie. He told the sound designer that he has deany Indicated each sound in every scene. How do you think Chris indicated the sound effects in the screenplay?
OA by making the word indicating sound boldface
OB by capitalizing the word indicating sound
OC. by highlighting the word indicating sound
OD. by underlining the word indicating sound​

Answers

Answer:

i would say A, to me it just makes sense

Explanation:

Answer:

B) by capitalizing the word indicating sound

Explanation:

In most scripts for screenplays, words indicating a certain sound for a scene is usually in uppercase letters.

- 2022 Edmentum

identify when programmers use an Else statement.
O to use an If statement in its place to make the test answer true.
O to use an expression instead of a conditional statement to make the answer false
O to tell the program to take a different action when the If statement answer is false
O to tell the program to give different information when the test answer is true.

plz help it's an assignment question on edgunuity and i need help. which one is it.

Answers

Answer:

to tell the program to take a different action when the If statement answer is false

Explanation:

if x = 0:

     print('x equals 0')

else:

      print('x equals something else that isnt 0')

Answer:

C. I got it right on edge.

Explanation:

How can you tell that someone is listening to what you through your device ?

Answers

Answer:here are some signs to look out for: Background noise. As with mobile devices, background noise whilst on a call is a sign that somebody else could be listening. Listen out for static, buzzing or clicks on the line.

Explanation:

What is meant by an "intractable (impossible)" problem? *

Answers

From a computational complexity stance, intractable problems are problems for which there exist no efficient algorithms to solve them. Most intractable problems have an algorithm – the same algorithm – that provides a solution, and that algorithm is the brute-force search

what is two features of the minicomputer?​

Answers

Answer:

It is smaller in size than a mainframe computer. It is less expensive than a super and mainframe computer. It is not much more powerful than the mainframe and supercomputer, but powerful than microcomputers. It supports multiprocessing and multi-tasking.

Explanation:

how many atoms of oxygen in 4 molecules of HN03​

Answers

Answer:12 oxygen atoms are in 4 molecules of HNO3

Explanation: the amounts of atoms of all the component in HNO3, which are 1 atom of Hydrogen, 1 atom of Nitrogen and 3 atoms of Oxygen.

When inserting a new row you must first select the row that is Question 1 options: Above where you want the new row to be Below where you want the new row to be

Answers

Answer:

You can add columns, rows, or cells to an Excel worksheet or delete them. Columns insert to the left, rows above, and cells above or to the left. ... that formatting will be transferred to a new row or column that you insert. If you don't want the formatting to be applied, you can select the Insert Options button after you insert, and .

Explanation:

Answer:

Above where you want the new row to be

Explanation:

i took the test.

hey guys. I have bitmoji but the stickers just won't load. it says 'we couldn't retrieve you stickers, or says an error message. I restarted my android phone and installed and uninstalled the app as well. so if you guys know plz let me know

Answers

Answer:

Get an IPhone

Explanation:

Androids are a.s.s.

What is one example of an emerging class of software

Answers

Answer:

"Push" Model web browsers.

Explanation:

7.6 lesson practice edhesive please help!!

Answers

Answer:

how can i help ?????????????????????????????????????

Explanation:

Sergio knows that to meet the project requirements, it is essential to have

Answers

Answer:

I need a better explanation??

is an evaluation method that uses a program that tests another program.
O A customer satisfaction survey
O A test case
O Automated testing
O Print debugging

Answers

automated testing !!!!$

Answer:

automated testing

Explanation:

got it right on edge

a conditional statement begins with the word 'when" true or false

Answers

Answer:

False

Explanation:

Conditional statements always begin with 'if'.

What do macOS and Windows use to prevent us from accidentally deleting files?

Answers

macOS and Windows use a Trash can—or Recycle Bin—to prevent you from accidentally deleting files. When you delete a file, it is moved to the Trash can.

How do you open an application on the macOS?

Answers

Click the Launchpad icon in the Dock, or pinch closed with your thumb and three fingers on your trackpad. Then click an app to open it. You can also type an app's name to find the app in Launchpad, then press the Return key to open it.

Answer:

you can simply click on 'application' in the sidebar to open your default application folder, which contain for each app on your system.you can double click any of the icons in here to open them or take you to do it if currently open.

There’s a saying in Hollywood that a film is written three times.
First in the __________.
Next, in __________.
And finally, in __________.

Answers

Answer: first in the screen play next in production and finally in the edit

Explanation:

Who was responsible for the development of the rocket motor?
-Technical Societies
-Robert H. Goddard
-Germans
-Wernher von Braun
I WILL MARK YOU BRAINLIEST ‼️‼️

Answers

Answer: Robert H. Goddard

Explanation: he developed and flew the first liquid-propellant rocket

Answer:

-Technical Societies

Explanation:

Rocket enthusiasts and rocket clubs were active in Germany, the US, Russia, and other countries. Experimental rockets were designed, tested, and sometimes flown. Some of the experiments used liquid fuel, though solid-fuel rockets were also developed. In 1932, the rocket motor was developed as a reusable method for the flight of a rocket.

Where do you enter characters for a simple search?
Choose the answer.
Navigation Pane
Replace dialog box
Clipboard
Find Pane

Answers

Answer:



Navigation Pane

Predict the future that social media will have on society or the environment.

Answers

Answer:

Social networks are becoming more and more popular. More than 80% of the 4.66 billion people on the planet with access to the internet are social network users… and this share is expected to grow!

Society will drift to technology and rely on it more.

Environment wouldn't be taken cared of, and may be damaged.

Explanation:

Answer:

The Influence of Social media is being used in ways that shape politics, business, world culture, education, careers, innovation, and more.

Explanation:

The Influence of Social media is being used in ways that shape politics, business, world culture, education, careers, innovation, and more.

What is the solution to the equation ?

Answers

There’s no solution to the equation
The correct answer is option D. No solution

Choose the term that best fits each definition.
interpret(s) where a user wants to move the mouse through motions or eye movements.
allow(s) users to enter text and control the computer with their voice.
use(s) a synthesized voice to read text on the screen.
Text-to-speech
tracking devices
Speech input software

Answers

Answer: See explanation

Explanation:

The term that fits each definition include:

The mouse through motions or eye movements = tracking devices

Allow(s) users to enter text and control the computer with their voice = Speech input software

Use(s) a synthesized voice to read text on the screen = Text to speech

Other Questions
What may states not do with a law (Ud-ver) las montaas cuando viva en el Peru What is the average weight of the kittens in the shelter?Please explain!! Why do geologists think Earth's core contains mostly iron?A. The crust contains a mixture of iron and silicon.B. The crust contains no nickel.C. Other orbiting bodies contain more iron than Earth's crust does.O D. The moon's crust contains far less iron than Earth's crust. Which of the following is a major category of animal tissue?A. EpitheliumB. LymphC. Blood serumD. Heart I dont understand please help Which expression is equivalent to 8-(6r+2) A -6r+6 B 2r+2 C 6r+10 D -6r+10 Which of the following helped Japan's economy recover following World War II?A Soviet humanitarian and military aidB the discovery of oil and coal reservesC significant investment by the United StatesD the economic programs of the Marshall Plan Your right to safety means consumers have the right to a variety of competitive products in the marketplace. Which best explains why the rate of a reaction decreases at significantly higher temperatures? A. The activation energy increases. B. The shape of the enzyme changes. C. The enzyme-substrate complex forms. D. The bonds between substrates are broken. ensayo sobre los aportes del arte please help asap!!!!have a good day Help- i dont understandJust 10 11 and 12 please! Do you think it is good China to get involved in Africa to help build the continent? Or do you think China is exploiting these African countries? please help with stoichiometry! What is m2 2 + m_3? I need the answer please help i need a metaphor for distance (not physical) between a couple please?? How does a parallel circuit change when a branch is added? The total resistance increases, so the current in the circuit decreases. The total resistance decreases, so the current in the circuit increases. The total resistance increases, so bulbs shine at a lower brightness. The total resistance decreases, so bulbs shine at a higher brightness. Pls help me on this due in 10 mins look at the picture attached then state the difference between the circle and a sphere Plzzzz helpppppppppppppp