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
8_murik_8 [283]
4 years ago
4

Write a single statement that assigns avg_sales with the average of num_sales1, num_sales2, and num_sales3. Sample output for th

e given program: 5.0
Computers and Technology
2 answers:
kakasveta [241]4 years ago
8 0

A single line statement that computes the average would be:

avg_sales = (num_sales1 + num_sales2 + num_sales3) / 3;

You have to keep in mind that this would work in programming languages like Python. The IDLE platform will automatically give the answer in a form of a Double, thus giving you the decimal place automatically.

If you are coding in Java, you will have to declare the double in the single line statement.

avg_sales=(double)(num_sales1 + num_sales2 + num_sales3) / 3.0;

This is also assuming the you have declared "avg" as a double beforehand.

sdas [7]4 years ago
6 0
Double avg_sales = (num_sales1 + num_sales2 + num_sales3) / 3;
You might be interested in
A start-up employs interns. The following details of interns are stored
Rufina [12.5K]

Answer: See below.

class Intern:

   def __init__(self):

       self.first_name = input("Enter first name: ")

       self.last_name = input("Enter last name: ")

       self.address = input("Enter address: ")

       self.mobile_number = input("Enter mobile number: ")

       self.e_mail = input("Enter e-mail: ")

   def getdata(self):

       print("First name: ", self.first_name)

       print("Last name: ", self.last_name)

       print("Address: ", self.address)

       print("Mobile number: ", self.mobile_number)

       print("E-mail: ", self.e_mail)

   def putdata(self):

       print("First name: ", self.first_name)

       print("Last name: ", self.last_name)

       print("Address: ", self.address)

       print("Mobile number: ", self.mobile_number)

       print("E-mail: ", self.e_mail)

Explanation:

7 0
2 years ago
________ refers to the ICT architecture, where users access software applications and information systems remotely over the Inte
Slav-nsk [51]

Answer:

Cloud computing

Explanation:

Cloud computing refers to the process of making computer system resources like computing power and data storage available to user on-demand without requiring the user to manage them himself. The computer system resources include servers, applications, networks, services, storage, and others.

It allows data center to be available over the internet to a large number of users.

Cloud computing involves employing a network of remote servers which are hosted on the Internet for processing, storing, and managing data, instead of using a personal computer or a domestic server. Its aim is to ensure a coherence and economies of scaled through resources sharing.

There are two types of cloud computing: enterprise clouds, which its use can be restricted to just one organisation; and public cloud, which is meant for many organisation.

3 0
3 years ago
When you sit for a typing test, what is the first thought that crosses your mind?
MaRussiya [10]
<span>When you sit for a typing test, what is the first thought that crosses your mind?
posture</span>
8 0
3 years ago
Read 2 more answers
How you move the selection to a specific range by its name
natali 33 [55]

Explanation:

.Jóîn) __ ""(stw-aijd-bha)""__ 6x 10-1'coulomb or one unit. The ratio, mass for each of the particle is 9.58 x 10" per gram. Hence, the mass of each of this 797 1.6x 10-19 = 1.67X 1024 9.58 x 10 c/m Properties of all

6 0
3 years ago
Select the correct answer.
ale4655 [162]

Answer:

I think it's B

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Hope wants to add a third use at the end of her
    14·1 answer
  • Templates allow for the quick creation of _____.
    7·1 answer
  • Triggers are types of buttons seen in the input devices for which platform?
    14·1 answer
  • Which of these pieces of hardware is used for telecommunication
    12·2 answers
  • Give two differences between EIRGP and RIP.
    14·1 answer
  • Why was the cooper black font made?
    5·1 answer
  • You want to search for contacts in your email program. You enter the person’s first name and last name in the search box. You wa
    10·2 answers
  • An engineer is designing an HTML page and wants to specify a title for the browser tab to display, along with some meta data on
    12·1 answer
  • ____ is an example of a set of prewritten classes that allows you to access data stored in a database.
    8·1 answer
  • True or false: Concurrent validation is more time consuming to measure than predictive validation because it involves a wait per
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!