![shelby7629](/avatars/12448.jpg)
shelby7629
31.07.2019 •
Computers and Technology
Write an algorithm for a program that reads in threenon-negative integer numbers and reports the maximum number,minimum number and average number. write it in simple english, noneed of any programming language syntax.
Solved
Show answers
More tips
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
- F Food and Cooking How to Properly Cook Buckwheat?...
- F Food and Cooking How Many Grams Are In a Tablespoon?...
- L Leisure and Entertainment Carving: History and Techniques for Creating Vegetable and Fruit Decorations...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
- H Health and Medicine What vaccines do children need?...
- H Health and Medicine Reasons for the Appearance of Warts: Everything You Need to Know...
- A Art and Culture How to Learn Screaming: Step-by-Step Guide for Beginners...
- H Health and Medicine Contraceptive Pills After 35: The Importance Of Choosing The Right Medication...
Ответ:
Algorithm for finding maximum
Let the 3 numbers be x,y and z.
First find maximum between x and y using if statement.if x is greater than y then compare x with z.If x is greater than z then x is maximum.Else z is maximum.if x is smaller than y compare y with z.If y is greater than z then y is maximum else z is maximum.Algorithm for finding minimum
First compare x with y.If x is larger than y then compare y with z.If z is smaller then minimum is z else it is y.If x is smaller then compare x with z.If z is smaller then z is minimum else it is x.Algorithm for finding the average
Initialize a double variable to store the result and an integer to store the sum.Assign the value sum/3 to the result and it is our average.Ответ:
idk
Explanation: