Q&A Discussions
Assign each track runner a roster number and calculate the average age of the team.
As output the program should print the roster in three columns like in the following format:
Roster #           Name                     Age
1                       First Name            18
2                       Second Name       19
3                       Third Name           19
4                       Fourth Name         20
5                       Fifth Name            18
The average age of the team is 18.80.
 -1 Vote
 1 AnswerAssign each track runner a roster number and calculate the average age of the team.
As output the program should print the roster in three columns like in the following format:
Roster #           Name                     Age
1                       First Name            18
2                       Second Name       19
3                       Third Name           19
4                       Fourth Name         20
5                       Fifth Name            18
The average age of the team is 18.80.
 0 Votes
 1 AnswerMatt reaches the final round of a treasure hunt. In this, he finds that as he proceeds there are flags with the number written on them at different positions. The difference between two consecutive flags can be either a or b. If he finds the number on the first flag is 0. Given three integer, first one is number of flags present, second is a and third is b. then return all the possible values for last flag for each test case.
hunt({3 1 2}) = {2 3 4}
 0 Votes
 2 AnswersHot today
How create a new language ?
 1 Votes
Beginner question
 0 Votes
I need help to solve this
 0 Votes
Remove
 0 Votes
Project
 0 Votes