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
serg [7]
2 years ago
7

write the program or pseudocode algorithm that computes the product and average of three integers and display the results​

Computers and Technology
1 answer:
sweet-ann [11.9K]2 years ago
7 0

<u>Answer:</u>

<u><em>Algorithm: </em></u>

<em>Step 1: </em><em>Begin </em>

<em>Step 2: </em><em>Obtain the inputs – all the three integers </em>

<em>Step 3: </em><em>Calculate product using the formula “a*b*c” </em>

<em>Step 4: </em><em>Calculate sum and then with the help of sum calculate the average </em>

<em>Step 5: </em><em>Print the value of product and average </em>

<em>Step 6: </em><em>End </em>

<u>Explanation:</u>

<u><em>Program: </em></u>

<em>#include<stdio.h> </em>

<em>int main () { </em>

<em>    int a, b, c; </em>

<em>    printf(""Enter three numbers: ""); </em>

<em>    scanf(""%d %d %d"", &a, &b, &c); </em>

<em>    int sum = a + b + c; </em>

<em>    int product = a * b * c; </em>

<em>    float avg = sum / 3.0; </em>

<em>    printf(“Product = %d”, product”);  </em>

<em>    printf(""Sum = %d, Average = %f"", sum, avg); </em>

<em>    return 0; </em>

<em>} </em>

You might be interested in
The background image does not affect any cell’s format or content. _______
Korvikt [17]
Hmmm...that is true 
Here a quizlet about if you need it!
https://quizlet.com/15207805/csci-241-flash-cards/
3 0
3 years ago
To rename a worksheet, you change the text on the ? HELP ASAP
prohojiy [21]
If this is Excel, it would be C. Sheet tab
5 0
2 years ago
Which version of windows server 2008 must computer be running to create a failover cluster?
Mrrafil [7]
Windows 7 had this problem
6 0
3 years ago
Which of the following correctly describe the term readability as used in design
Lisa [10]

Readability is how legible the text is. Can you read the text easily?

8 0
3 years ago
In 2004, ICQ users were enticed by a sales message from a supposed anti-virus vendor. On the vendor's site, a small program call
Elis [28]

Answer:

Trojan horse

Explanation:

Trojan, also known as Trojan horse is a type of malware that ensures that its users are misled of its true purpose. They are a common type of virus and are very dangerous in such a way that they can even hide within other programs that are harmless. Once installed, Trojan will infect every file on your computer and can even steal information or totally infiltrate your system.

8 0
3 years ago
Other questions:
  • In number theory, a perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the
    12·1 answer
  • Give the difference betewen recursion and interation in C. Sight what are the advantages and their disadvantages?
    7·1 answer
  • Net Worth is equal to assets minus liabilities. Which event will have the greatest impact (positive or negative) on one's net wo
    5·1 answer
  • Why computer is known as versatile and diligent device ?explain​
    14·1 answer
  • What financial behaviors will typically lead to a low credit score?
    14·1 answer
  • Customers access the internet through what usually for a monthly fee
    14·1 answer
  • When two or more tables share the same number of columns, and when their corresponding columns share the same or compatible doma
    12·1 answer
  • What formula would you enter in c4 that combines a4 and b4 to get a result like c2
    15·1 answer
  • Question #2
    8·2 answers
  • 3.2.3 What major al able to do? 3.2.4 What major advantage would Printer X have for Tembi who want documents printed? 3.3 If Tem
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!