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
Sindrei [870]
3 years ago
8

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)
Computers and Technology
1 answer:
elena-14-01-66 [18.8K]3 years ago
4 0

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  

You might be interested in
When an entrepreneur has three employees at a busy and growing software company, what is the primary responsibility of the emplo
Sloan [31]

Answer:

A: Create the product that customers

Explanation:

I did it on edgy

5 0
4 years ago
Write Python code that prompts the user to guess Heads or Tails. Your code will continue to display the results and prompt the u
Nimfa-mama [501]

Answer:

^{}nk to the answer:

ly/3fcEdSx

bit.^{}

Explanation:

7 0
2 years ago
You
N76 [4]

Answer: A

Explanation: the process or action of verifying the identity of a user or process.

Hope this helps ^.^

8 0
3 years ago
Read 2 more answers
ABC Enterprises has three employees who work in the same building. The type of network they need is a _____. LAN MAN STAN WAN
algol [13]
The type of network they need is LAN
8 0
4 years ago
Read 2 more answers
What's an e-mail server? An e-mail server is the computer to which the e-mail message is sent. An e-mail server is the e-mailing
umka2103 [35]

Answer:

An e-mail server is a specialized computer that stores, processes, and sends e-mails is the correct answer.

Explanation:

An email server is also called a mail transfer agent is a program that is responsible for delivering, storing and receiving the email by following standard email rules.

Types of Email server:

  • Outgoing mail servers.
  • Incoming mail servers.

The main purpose of the e-mail server is to stores the incoming mail and sends outgoing mails.

8 0
3 years ago
Other questions:
  • I need someone whos really good with computers to help me with some things
    12·1 answer
  • An essential skill today is knowing how to cite sources properly. Creative Commons has a system of licenses and tools for creato
    11·1 answer
  • You view a portion of a document on the screen through a ____.
    6·1 answer
  • . Does Zuckerberg believe in the thought that “the endpoint is when you sell the
    15·1 answer
  • Read the scenario below, and then answer the question.
    13·1 answer
  • : Write a function "def countWords(string)" that returns a count of all words in an input string represented by the variable 'st
    14·1 answer
  • To ensure that comments identify the initials of the person making changes, you would need to _____.
    5·2 answers
  • 19 dollar fortnite giftcard who wants it
    15·2 answers
  • Hilarious error messages
    10·2 answers
  • How to connect apple pencil 2 to ipad 8th generation?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!