![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 11.04.2020 04:46 twixer29
Consider the following two implementations of the same algorithm, each written in a different language.
Language A: Calculate the average daily rainfall for the week (averageRainfall) by adding together the rainfall totals for each of the 7 days of the week (sun, mon, tue, wed, thu, fri, and sat) and dividing the sum by 7.
Language B: Take the total amount of rain from each day of the week (sunday, monday, tuesday, wednesday, thursday, friday and saturday) and then average them together to get the average daily rainfall for the week (averageRainfall).
Which of the following statements about these two implementations is true?
1. Language A is ambiguous because it is unclear what sun, mom, tue, wed, thu, fri, and sat refer to in context with the problem.
2. The algorithms in both languages are ambiguous because they do not specify the actual values of the seven daily rainfall totals.
3. Language B is ambiguous because the process of "average" is not explained well enough for someone to computationally be able to solve the problem.
4. Neither of these languages is clear enough that a programmer could write a correct solution in a high-level programming language.
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
You know the right answer?
Consider the following two implementations of the same algorithm, each written in a different langua...
Questions
![question](/tpl/images/cats/himiya.png)
Chemistry, 27.08.2019 09:00
![question](/tpl/images/cats/mat.png)
Mathematics, 27.08.2019 09:00
![question](/tpl/images/cats/biologiya.png)
Biology, 27.08.2019 09:00
![question](/tpl/images/cats/istoriya.png)
History, 27.08.2019 09:00
![question](/tpl/images/cats/mkx.png)
Arts, 27.08.2019 09:00
![question](/tpl/images/cats/mat.png)
Mathematics, 27.08.2019 09:00
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 27.08.2019 09:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
Physics, 27.08.2019 09:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 27.08.2019 09:00
![question](/tpl/images/cats/ekonomika.png)
Business, 27.08.2019 09:00
![question](/tpl/images/cats/istoriya.png)
History, 27.08.2019 09:00
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 27.08.2019 09:00