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
How is sharepoint used in organization today?
tatyana61 [14]
<span>To build a team site and collaborate with your colleagues</span>
8 0
3 years ago
What is the purpose of using variables in programming?
Sedbober [7]
Variables are used to store information to be referenced and manipulated in a computer program. ... It is helpful to think of variables as containers that hold information. Their sole purpose is to label and store data in memory. This data can then be used throughout your program.
6 0
3 years ago
Anyone know this awnser computer science
jolli1 [7]

Answer:

Smartphones, Satellite internet providers, smart speakers, and bluetooth headphones

Explanation:

6 0
2 years ago
Read 2 more answers
The Marketing Department for CSM Tech Publishing is busy producing videos and print materials (stored in PDF format) for distrib
RSB [31]

Answer:

Check the explanation

Explanation:

In choosing the member and updating the replicate files the component or members in the replication group and preliminary members of the group as being taken as authoritative during the original replication.

For any changes you will be useing the sync -dfs replications and suspend-Dfs replication group.

7 0
3 years ago
. A collection of programs designed to create and manage databases is called a(n))
Daniel [21]

Answer:

Database Management System.

Explanation:

Database Management System is the collection of programs and data used to create ,define and manipulate the database.

There are several database management systems present and some of them are as following:-

  1. RDBMS (Relational Database Management System)
  2. No SQL DBMS
  3. CDBMS(Columnar Database Management System).
  4. IMDBMS(In-Memory Database Management System).
6 0
2 years ago
Other questions:
  • How can netiquette help you communicate when texting or instant messaging?
    6·1 answer
  • Exercise 4: Bring in program grades.cpp and grades.txt from the Lab 10 folder. Fill in the code in bold so that the data is prop
    12·1 answer
  • I prefer a job where I am praise for good performance or I am accountable for results
    13·1 answer
  • Why are mobile phone called cell phones?​
    13·1 answer
  • 30 points Fill in the blanks,<br> Plz leave a explanation
    5·2 answers
  • A blogger writes that the new "U-Phone" is superior to any other on the market. Before buying the U-Phone based on this review,
    7·2 answers
  • Which statements accurately describe the Outlook interface? Check all that apply.
    7·1 answer
  • Colorful bead bracelet in codehs
    14·1 answer
  • Which of the following helps you plan out every step of an animation?
    12·2 answers
  • Can anyone tell me about Microsoft some important features for partical
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!