![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 17.04.2020 02:17, VeIocity
Write a program using FreeRTOS that performs the following:
The user should enter the number of minutes and seconds desired for the program to count down. The program will act like an alarm clock or countdown timer.
The program has two tasks: TimeTask, DisplayTask
The program has one queue that is shared by all of the tasks: timeQueue
TimeTaskwill keep track of the number of seconds remaining. Once every second, this task should send the number of seconds remaining to the DisplayTaskvia the timeQueue.
DisplayTaskshould retrieve numbers from timeQueueand print the value in the format of minutes and seconds
Expected Output
Enter minutes: 3
Enter seconds: 45
Time remaining: 3:45
Time remaining: 3:44
Time remaining: 3:43
...
Time remaining: 0:02
Time remaining: 0:01
Time is up!
![answer](/tpl/images/cats/otvet.png)
Answers: 2
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 02:30, capo9972
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
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Do you know the correct answer?
Write a program using FreeRTOS that performs the following:
The user should enter the nu...
The user should enter the nu...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 22.08.2019 04:30
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/geografiya.png)
Geography, 22.08.2019 04:30
![Konu](/tpl/images/cats/istoriya.png)
History, 22.08.2019 04:30
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/geografiya.png)
Geography, 22.08.2019 04:30