Courses
Log inStart Learning AI
Courses
Log inStart Learning AI

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
Audio adding
1 Votes
playground input
0 Votes
What is problem in this code
0 Votes
Software developer
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
How I can use div
0 Votes
Asking for final year project ideas!
1 Votes
TIPS From Veterans
1 Votes
Html issue
0 Votes
Cybersecurity jobs without degree
0 Votes