subject

The purpose of this problem is to write some small functions and practice passing things around amoung functions. 1) the main function shall ask the user to enter three numbers and read the three numbers. 2) write a function named findsum that takes three numbers as arguments and returns their sum. the main function shall call this function. 3) write a function named findaverage that takes the sum and the number of numbers and returns the average. the main function shall call this function. 4) write a function named findsmallest that takes the three numbers and returns the smallest value. the main function shall call this function. 5) the main function shall print the results in the following format, with two decimal positions and the decimal points aligned: results: first number 17.23 second number 3.98 third number 22.32 total 43.53 average 14.51 smallest 3.98 test the program twice with the following two sets of numbers: 37.144 2.4144 19 4.23 5.78 6.21

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Write a program that takes in 3 inputs [players (int type), expected game time (double type), team (char type)] and calculates actual game time (double) based on the following conditions: if the number of players or the expected game time is less than or equal to zero, it should output wrong input if the number of players is greater than 0 and less than or equal to 6 and if they are on the â€r’ or â€r’ team, their game time will be 10% faster. and if they are on the â€b’ or â€b’ team, their game time will be 15% faster. and if they are on the â€y’ or â€y’ team, their game time will be 20% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 6 but less than or equal to 12 and if they are on the â€r’ or â€r’ team, their game time will be 20% faster. and if they are on the â€b’ or â€b’ team, their game time will be 25% faster. and if they are on the â€y’ or â€y’ team their game time will be 30% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 12 but less than or equal to 18 and if they are on the â€r’ or â€r’ team, their game time will be 30% faster. and if they are on the â€b’ or â€b’ team, their game time will be 35% faster. and if they are on the â€y’ or â€y’ team, their game time will
Answers: 2
question
Computers and Technology, 22.06.2019 10:00
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
You know the right answer?
The purpose of this problem is to write some small functions and practice passing things around amou...
Questions
question
Mathematics, 06.04.2020 07:44
question
Mathematics, 06.04.2020 07:47
question
Mathematics, 06.04.2020 07:48
question
Mathematics, 06.04.2020 07:49
question
Mathematics, 06.04.2020 07:54
question
Health, 06.04.2020 07:55
question
English, 06.04.2020 07:55
question
Mathematics, 06.04.2020 07:55
Questions on the website: 13722360