• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

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.
c++
0 Votes
1 Answer
15th Sep 2016, 12:56 PM
mason kitzmiller
mason kitzmiller - avatar
x = 42; int num = 0; while (num <3) Consele.writeline (x); num++; int x = 42; is just an int with an asigned value of 42 int num=0; is what initiate the count for the while loop while (num < 3); means 0<3 true, 1< 3 true, 2<3 true, the loop end at 2 bc 3 <3 is false consele.writeline (x) will display 42 while num < 3 num++ will execute and then add 1 to check if the while loop still true, but it stop at 2, bc 3 makes it false. so the consele.write will write 42 three times. x=42, remember the (x)
c#loops
0 Votes
2 Answers
5th Oct 2016, 7:33 PM
DoWhile2016
so far in section 1 question 2 area all of the videos have been ads that if you skip the add it just brings up the questions you need to answer. also if you play the add all the way thru you get the same exact thing. luckily I'm using this as a refresher course but I would think if I didn't know anything about c++ then I could be pretty lost missing videos.
c++
0 Votes
2 Answers
31st Jul 2016, 5:08 PM
Anthony Cavello
Anthony Cavello - avatar
< Previous1...4445Next >
Hot today
My codebits section is full of deleted codes
12 Votes
Ai generated practices
1 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Patters of library class
0 Votes