Computers and Technology, 25.03.2020 23:54 kaylinreed7
Iven an array temps of double s, containing temperature data, compute the average temperature. Store the average in a variable called avgTemp. Besides temps and avgTemp, you may use only two other variables -- an int variable k and a double variable named total, which have been declared .
k = 0;
total = 0;
while (k < temps. length)
{
total = total + temps[k];
k++;
}
avgTemp = total / (temps. length);
Answers: 1
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
Computers and Technology, 24.06.2019 06:30
Me and category do i put them in because this is science
Answers: 1
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
Iven an array temps of double s, containing temperature data, compute the average temperature. Store...
Biology, 19.01.2021 21:20
Social Studies, 19.01.2021 21:20
Mathematics, 19.01.2021 21:20
Computers and Technology, 19.01.2021 21:20
History, 19.01.2021 21:20
Social Studies, 19.01.2021 21:20
Mathematics, 19.01.2021 21:20
Physics, 19.01.2021 21:20
Mathematics, 19.01.2021 21:20