![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 15.04.2020 23:10, Marqiuse412
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)
![answer](/tpl/images/cats/otvet.png)
Answers: 3
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 21:00, Unicorn66y
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 00:00, lilyforeman5867
Match each vocabulary word to its definition.1. desktoppicture used to represent acomputer application2. domainnetwork protectionsoftware code that can be viewed,3. iconmodified, and redistributed for freethe background screen on acomputer monitor4. url5. blogan online journalthe part of an internet address that6. firewallrefers to a group of computers on anetworkonline database of web pages7. intranetnetwork for use by an individual8. open address of a web page or9. wikiresource
Answers: 2
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:40, broang23
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
Do you know the correct answer?
Define stubs for the functions get_user_num() and compute_avg(). Each stub should print "FIXME: Fini...
Questions in other subjects:
![Konu](/tpl/images/cats/health.png)
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/health.png)
Health, 19.07.2020 07:01
![Konu](/tpl/images/cats/health.png)
Medicine, 19.07.2020 07:01
![Konu](/tpl/images/cats/fizika.png)
Physics, 19.07.2020 07:01
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 19.07.2020 07:01
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/en.png)
English, 19.07.2020 07:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 19.07.2020 07:01