Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 14
Member Avatar for Awebb999

[CODE]//This function prints all scores, but if a score occurs more than once, it only prints it one time void scores_once(int x[20], int size, int new_array[20]) { for(int i=0; i<size; i++) { new_array[i]= -1; } new_array[0]= x[0]; cout<<new_array[0]<<endl; for(int j=1; j<size; j++) { for(int k=0; k<size; k++) { if (x[j]!=new_array[k]) …

Member Avatar for Sky Diploma
0
71
Member Avatar for Awebb999

I have to write code to shift all the values in the array to the right of position P, one place to the left. I can make up my own array and position P. would this code work? for (j=6; j>1;j--) { x[j-1]=x[j]; }

Member Avatar for mrnutty
0
81
Member Avatar for Awebb999

The following function mixes call by reference and call by value parameters. [ICODE]void T ( int & a, int b ) { int c = a - 1; a = c + b; b = a + 2; }[/ICODE] Suppose that in main we had the following: [ICODE]int apple = …

Member Avatar for Salem
0
69
Member Avatar for Awebb999

26. What is printed in the following code segment? [ICODE] I = 1; do { I = I + 25; } while ( I > 50 ); cout << I + 50; [/ICODE] a) 50 b) 51 c) 75 d) 76

Member Avatar for Ancient Dragon
-1
390
Member Avatar for Awebb999

23. To convert Fahrenheit ( F ) temperatures to Centigrade ( C ) temperatures people use the formula: (32 degrees F is 0 degrees C, 212 degrees F is 100 degrees C, etc.) double C,F; [ICODE]cin >> F; C = ( 5 / 9 ) * ( F - 32 …

Member Avatar for mahlerfive
0
276
Member Avatar for Awebb999

14. What will be outputted given the segment of code, if 11 is entered from the keyboard? int number; [ICODE]cin >> number; if ( number > 0 ) cout << "C++"; else cout << "Soccer"; cout << " is "; cout << "fun" << endl; [/ICODE]

Member Avatar for Salem
0
174
Member Avatar for Awebb999

I just learned about bubble sort and still don't know how to make it work in my program I hope someone can help me. This is my task I should use parallel arrays (of size 20) for student name, student number, test score, and letter grade. The list must be …

Member Avatar for Awebb999
0
150