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]
4 years ago
12

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

Computers and Technology
1 answer:
Mrac [35]4 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
Does it matter how many times you use a repeat loop? Is so why? If not why not? Explain your
Vlad1618 [11]
Is dosent matter , it actually minimizes all of the code blocks into the a simple form
3 0
3 years ago
What software enables an os to communicate with hardware?.
Rina8888 [55]

Answer:

device driver: A piece of software that acts as a translator, enhancing the capabilities of the operating system by enabling it to communicate with hardware.

Explanation:

hope this helps.

5 0
3 years ago
Drivers preparing to turn left can help communicate this intention by using
VladimirAG [237]

Answer:

using their left turn signal and checking for oncoming traffic

Explanation:

7 0
3 years ago
There may be more than one s. anandakrishnan, or r.b. alley, in the world. one way to tell them apart is to check the address, w
Lisa [10]

I guess the answer is No.

R. Alley has no tie to Penn State. If there is any relation to Penn State’s Dr. Alley, we don’t know, but we do know that they are different people.

6 0
3 years ago
Is a power-saving mode that stores data to a computer's hard drive instead of to its memory?
Rom4ik [11]

I guess the correct answer is Hibernate

Likе slееp, hibеrnatе is a pοwеr-saving statе. In Windοws Vista, slееp savеs yοur sеttings in mеmοry and draws a small amοunt οf pοwеr tο maintain that mеmοry.Hibеrnatе, οn thе οthеr hand, writеs yοur sеttings and thе cοntеnt οf mеmοry tο thе hard disk and thеn cοmplеtеly pοwеrs dοwn thе systеm.

7 0
3 years ago
Other questions:
  • Two electronics students are discussing electrical units. Student A says that electrical power is measured in units called coulo
    5·1 answer
  • What statement best describes what a circle graph shows
    13·1 answer
  • Write a paragraph expressing how you'd use the computer to enhance your place of work.​
    10·1 answer
  • Create an application in Java that asks a user for a number of hours, days, weeks, and years. It then computes the equivalent nu
    10·1 answer
  • In which of the following scenarios would you choose to embed versus import data?
    8·1 answer
  • Tyler is feeling overwhelmed by the programming assignment from his supervisor and wants to break the task down into smaller, mo
    5·2 answers
  • Can anybody answer these please hurry
    11·1 answer
  • Relationship between application system<br>.and database​
    11·1 answer
  • Where do we manage POS? ​
    6·1 answer
  • Describe the difference between information poor and information rich society?​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!