3 like 0 dislike

Write a PHP script to calculate and display average temperature, five lowest and highest temperatures.
Recorded temperatures : 78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 75, 76, 73, 68, 62, 73, 72, 65, 74, 62, 62, 65, 64, 68, 73, 75, 79, 73
Expected Output :
Average Temperature is : 69.766666666667
List of five lowest temperatures : 60, 62, 63, 64, 65,
List of five highest temperatures : 75, 76, 78, 79, 85, 

[Exercise] Essay (Open question) - asked in 2016-2 CSIEB0270 - Internet System Design and Practice by (18k points)
Available when: 2017-05-18 09:30:00 - Due to: 2017-05-18 12:00:00

edited by | 197 views

28 Answers

0 like 0 dislike
Hidden content!
* * ***** *** * * * * * ** * * ** * *******
answered by (-10 points)
0 like 0 dislike
Hidden content!
* * * * **** * ** ** * * * * ** ****

correct answer
answered by (-61 points)
0 like 0 dislike
Hidden content!
* ** * **** *
** * * **** * *
* *** *****


*** ***
* * * * 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 75, 76, 73, 68, 62, 73, 72, 65, 74, 62, 62, 65, 64, 68, 73, 75, 79, 73);
* **** * **** ****
* * * * * * *
** * **
*** * ***

echo * ** ** ** * *** is * *** * *** * **

echo * * of five ** *** * * : * ** * * **** *
**** * ** ** * *
*** **

for ($x = 1; $time * * 5; $x++) {
* ** ** * ** ** ** * ** * != *** {
** **** ** * * * * * * * ******** * *** ** *
** * * ** * ***** * ** * * **
**** * *** * *** * * ***

}

}
* ** * * * *
* * **
* * *
* ** ** ** *****
* **** * ***

for ($x = * * * $time * ** 5; $x--) {
* * ** * * ** * * * * ** * != ** * {
* * * ** *** *** **** **** *** * **
* ***** * * * *** * ** *** ****
** ** *** * ** * ****

}

}

* *

echo ** * ** of five ***** ** * ** *** * * * * *** * * ** ***** **
** * *


******* ** *
** ** * *
answered by (30k points)
0 like 0 dislike
Hidden content!
** * * * * **


* * * **
* * * ****
** = * ** ** * * ** * ** * * * * * * * *** * ** * * ** *
* =
** = *
* = * *
*
* * * *
** = *** * **
** ** *
* *** * = * ****** ** {
// * ** *
*
}
*** *** *
* * ** ***** ** * is : * ** * ** ** ** *
** * * * * ** * ** * : *
* = * * * *** * * ***
* * * *
{
**** * *****
* * ** ** ** **
* * *
}
*** * ****** * *
{
** * * ****
* ***** * * *
*
}
*
**
*****
* * * ** of * * ** **** * ** * **
** *
* = ** * **
*** *
{
* ** ** **
* *** * *
**
}
* *** * *** * *
{
***** * *
*** * * *
** *
}

}
** * *
** *
** **
answered by (12 points)
0 like 0 dislike
Hidden content!
** * ** * **

*
* * ** * * * ** * * **
***
** **
* *
****
*
** * *
***
* * *
* = *** ** ** * *** * * *
* * * ** *** ** * * * * ** * * * * * * ** ** * ** * * *

* ** * * * *
* * * * ** * *
** **** ** ****

* * *
**** **
* ** = * ** * *

** * * * * *****
* * * * * * * * ** **


* * * * * * * * * *
*
**** * * **** * * ***** *
*
* *** ***
* *

}

** ** *

* * *** * * = ** **
* ***
** * * **


*
}

** * *** * *

**** *** * * *
*
* * ** ** * **
** * * ** ** ** * * *

* * * *
** *
* ** **
* *
**** * **** * * ** * * **
*
* ** *** *
* * ** *
**
* *

* * * * * * * ** **** *** **
*
* * * *
* *
* ** ** * ********
** * ***
* *
* *******
answered by (30 points)
0 like 0 dislike
Hidden content!
**** * *** *




* *
* * * * = ** * * * * * 85, 66, 64, 76, 63, ** 76, 73, * ** * 74, 62, * * *** * * * * ***
****** = * * *** * ** **
* *** = 0;
* **** *** * = ** * *
****** as ***
{
* * * += ***
}

*** *** = * ** **** ***
* * *** ** * * is : *** * **
* * * ** * *
* ** * of * ** * ** *** **
* ** * *** 5; ** *
{ *** ** ** ** ** ** * * *
}
* * ** of * * * *** * **
* * *** *** * ** * * * ** * *** * * *
{
* * ** * * **
}
** *
answered by (157 points)
0 like 0 dislike
Hidden content!
** * ** ** * ***** ** * * * **** *** **** ** **
answered by (60 points)
0 like 0 dislike
Hidden content!
***** *** * * * ** **** * ** * *** ** * *
answered by (-96 points)
0 like 0 dislike
Hidden content!
* *** ** * ** ** * * ** * * * * * *
answered by (-144 points)
0 like 0 dislike
Hidden content!
* * ** * *** * * * * * * * * * ** ** *
answered by (6 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.79.93
©2016-2021

Related questions

3 like 0 dislike
22 answers
[Exercise] Essay (Open question) - asked May 18, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: 2017-05-18 09:30:00 - Due to: 2017-05-18 12:00:00
| 179 views
3 like 0 dislike
20 answers
[Exercise] Essay (Open question) - asked May 18, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: 2017-05-18 09:30:00 - Due to: 2017-05-18 12:00:00
| 177 views
2 like 0 dislike
24 answers
[Exercise] Essay (Open question) - asked May 17, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: 2017-05-18 09:30:00 - Due to: 2017-05-18 12:00:00
| 160 views
2 like 0 dislike
21 answers
[Exercise] Essay (Open question) - asked May 17, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: 2017-05-18 09:30:00 - Due to: 2017-05-18 12:00:00
| 158 views
3 like 0 dislike
32 answers
[Exercise] Essay (Open question) - asked Apr 6, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: 2017-04-06 09:30:00 - Due to: 2017-04-06 12:10:00
| 232 views
11,163 questions
132,617 answers
129,948 comments
3,821 users