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
harina [27]
3 years ago
12

Part1) Given 3 integers, output their average and their product, using integer arithmetic.

Computers and Technology
1 answer:
Mrac [35]3 years ago
6 0

Answer:

The program is as follows:

#include <iostream>

#include <iomanip>

using namespace std;

int main(){

   int num1, num2, num3;

   cin>>num1>>num2>>num3;

   cout << fixed << setprecision(2);

   cout<<(num1 + num2 + num3)/3<<" ";

   cout<<num1 * num2 * num3<<" ";

   return 0;

}

Explanation:

This declares three integer variables

   int num1, num2, num3;

This gets input for the three integers

   cin>>num1>>num2>>num3;

This is used to set the precision to 2

   cout << fixed << setprecision(2);

This prints the average

   cout<<(num1 + num2 + num3)/3<<" ";

This prints the product

   cout<<num1 * num2 * num3<<" ";

You might be interested in
Write an expression that executes the loop body as long as the user enters a non-negative number.Note: If the submitted code has
Eva8 [605]

Answer:

See attached picture.

Explanation:

See attached picture for explanation.

5 0
3 years ago
write a function named get majority last name that accepts as its parameter a dictionary from strings to strings the keys of the
wariber [46]

A function named get majority last name that accepts as its parameter a dictionary from strings to strings the keys of the dictionary represent first names and the values represent last names is python.

Python is a general-purpose, high-level programming language. Its design philosophy prioritizes code readability and heavily employs indentation. Python has dynamic typing and garbage collection. It supports a number of programming paradigms, including structured programming, object-oriented programming, procedural programming, and functional programming (especially this). It is frequently referred to as a "batteries included" language because of its large standard library.

In order to replace the ABC programming language, Guido van Rossum developed Python in the late 1980s. Python 0.9.0 was released in 1991.

Python 2.0, which was released in 2000, included brand-new features like list comprehensions, cycle-detecting garbage collection, reference counting, and support for Unicode.

To know more about python click here:

brainly.com/question/13437928

#SPJ4

5 0
8 months ago
Please Help Me!!!!!!!!!!!!!
My name is Ann [436]

Explanation:

a magazine cause it helps put out commercial

3 0
2 years ago
In Windows 7/Vista, the information that establishes basic settings such as the location of the operating system and other key s
mel-nik [20]
Bios, This stores all of the computers start-up information. It tells the computer where to find the operation system inside the main storage and how to start it.

Hope this helps! :)
7 0
2 years ago
Which of the following plug-ins was developed by microsoft and is a software development tool used to write and run internet app
Elodia [21]
I'm not a hundred percent sure but maybe silverlight?
5 0
3 years ago
Other questions:
  • From the video "Your Password Sucks", using computer power to guess your password by trying multiple variations one after the ot
    15·2 answers
  • If you want to import text into a DTP application that was first created in a word processing program, what must you do?
    9·2 answers
  • Dr. Laos gets a referral for a 6 month old who has become listless and stopped eating lately. Her pediatrician wanted her to be
    15·1 answer
  • Cyberterrorism is the use of terrorism to attack (Points : 1) public libraries. computer based networks. government spy networks
    15·1 answer
  • If you want to open an application that does not have a tile pinned to the Start menu, _____ to find it in the list of installed
    7·1 answer
  • An IP address in the form 197.169.100.1 is called a(n) ________. dotted quad encryption key random number sequential access numb
    7·1 answer
  • Which is not a factor that leads to technological advancement?
    8·1 answer
  • We can create tables in MS. Word from *<br> 2 points<br> Insert Tab<br> Home Tab<br> Mailings Tab
    5·2 answers
  • Which statement best defines the Control Pannel?
    12·1 answer
  • Below you will find the requirements to identify the Account Diversity Grade of a user. Read the requirements carefully and iden
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!