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
vfiekz [6]
3 years ago
6

Part 1 Given 3 integers, output their average and their product, using integer arithmetic. Ex: If the input is 10 20 5, the outp

ut is: 11 1000 Note: Integer division discards the fraction. Hence the average of 10 20 5 is output as 11, not 11.666666666666666. Submit the above for grading. Your program will fail the test cases (which is expected), until you complete part 2 below but check that you are getting the correct average and product using integer division. Part 2 Also output the average and product, using floating-point arithmetic. Ex: If the input is 10 20 5, the output is: 11 1000 11.666666666666666 1000.0
Computers and Technology
1 answer:
MaRussiya [10]3 years ago
6 0

Answer:

a = int(input("Enter first number: "))

b = int(input("Enter second number: "))

c = int(input("Enter third number: "))

avg = (a + b + c) / 3

product = a * b * c

print(str(int(avg)) + " " + str(product))

print(str(avg) + " {:.1f}".format(product))

Explanation:

*The code is in Python

Ask the user for three integers, a, b, and c

Calculate their average, sum the numbers and divide by 3

Calculate their product

Print avg and product as integer numbers, be aware that I type casted the avg to int

Print avg and product as floating point numbers, be aware that I used format method to print one decimal for product

You might be interested in
One thing we might want to know, given an input to a chatbot, is if the input is a question.
3241004551 [841]

Answer:

Following are the code to this question:

def is_question(input_string): # defining method is_question  

   output = '?' in input_string # checking question mark symbol in value

   return output #return value

input_string = input('Enter any string value: ') # defining variable input_string to input value

print (is_question(input_string)) # call method and print return value

Output:

Enter any string value: what is your name?

True

Explanation:

In the given python program code, a method "is_question" is declared, which accepts an "input_string" value in its parameter.

  • Inside the method, an output variable is used, that search question symbol in the parameter value and return its value.
  • In the next step, the input_string variable is declared, which uses the input method to accepts string value and passes into method calling time and print its return value.
5 0
3 years ago
Bethany is in her home, watching a video she took on vacation, while her brother is playing FIFA Soccer on his Xbox, and her dad
Sati [7]

Answer:

P2P network is the correct answer to the following question.

Explanation:

Because the P2P network is the network that is used to share the resources of the computer system. It also allows the users to link two or more than two computer systems and also allows them to share all kinds of resources of the system. So, that's why Bethany and her family members used the P2P network type.

4 0
3 years ago
What is the objective of Accenture‘s e-stewards program
Flura [38]

Accenture is a company that was established with the aim of handling electronic waste. They were very much concern about how electronic waste is being disposed and as such they try to create ways to handle it. The e-stewards program was set up with the sole aim of management of electronic waste. its objectives includes;

  1. Make strategic and better world through well managed recycling solution to all electronic waste (e-waste) issues.
  2. The program also focus on making sure that electronic waste are been handled properly and they are not dumping of electronic waste in poor countries
  3. The objective also centers around no export of harmful electronic wastes.
  4. They also capitalizes on reuse and resale
  5. They are not only interested in stopping e-waste but to channeled it to repair, republish and re-manufacture

For better understanding, lets explain what E-waste means

  • E-Steward objective is centered on managing and handling of electronic waste. It was a project that was birth out of rising concern about electronic waste, especially due to rising concerns that electronic waste generated by rich countries was being shipped off to poor countries.

  • Accenture e-steward make sure that electronic waste are well disposed, no more shipping of electronic waste to poor countries and also recycling of electronic waste product.

  • E-waste in the above simply means non functional or disposed electronic equipment such as computers, cell phones, television sets, etc.

From the above, we can therefore say that the e-stewards program is concerns about how electronic waste generated by rich countries was being shipped off to poor countries and also the recycling of electronic waste product such as television, computers etc.

Learn more about E-waste from:

brainly.com/question/15391967

8 0
2 years ago
Reserve space in memory for a variable called UIN of size word. The initial value of UIN will be the sum of the digits in your U
sladkih [1.3K]

Answer:

Explanation:

See the attached picture for answer.

4 0
3 years ago
What is the biggest danger when you reveal information such as your Social Security number?
Dima020 [189]

based off my knowledge im gonna to go with OPTION A because ur social security number holds information like your brith etc

6 0
3 years ago
Read 2 more answers
Other questions:
  • A method variable a class variable with the same name. a) acquiesces to b) destroys c) overrides d) alters
    14·1 answer
  • What is the maximum data transfer rate of an ieee 1394a device?
    5·1 answer
  • A ___________ lists all possible packet switches and gives a next hop for each.
    12·1 answer
  • Use a physical stopwatch to record the length of time it takes to run the program. Calculate the difference obtained by calls to
    11·1 answer
  • Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he o
    10·1 answer
  • Which key(s) will launch the Spelling Checker dialog box? F8 F7 Ctrl+H F2
    11·2 answers
  • Have you ever tried to learn a new language or do you have friends who've had that experience? What are some of the steps you wo
    10·2 answers
  • Without net neutrality, which of these situations might occur? (Select all that apply.) a cable company might charge different b
    5·1 answer
  • Any computer expert to help me answer this question.. am giving brainliest
    13·1 answer
  • 1. A cell is identified by its ........
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!