1. Rearrange the following numbers from largest to smallest (show work): 0110010
ID: 3535794 • Letter: 1
Question
1. Rearrange the following numbers from largest to smallest (show work): 0110010 17H 88 2. Perform the Operations: 00101100 + 01001101= ? 6D + 2A = ? 3. Evaluate the following arithmetic expressions: 9 / 2 * 11 % 5 + 9 * 2 + 5 is __________ (5 * (8 % 3) * (9 - 3)) / 3 is __________ 17 - ((5 + 2) - 7) * 5 / 4 * 8 is __________ 4. Boolean Program: What will the cout statements display when x and y are input from keyboard? a) 3 and 5 b) 5 and 4 c) 5 and 5 d) 5 and 4 int x, y cin >>x>>y; x=y cout< Input m,m2,m3 min=m1 > m2 min=m3 avg=(m1+m2+m3-min)/2 display avg end 8. Write comments for each line and explain separately what the two for statements do. What type of the output is the final count? #include using namespace std; int main() { int hold_em[100]; int sub, count(0); for(sub=0; sub<100; sub++) { cout << “Enter next value A;†<< endl; cin >> hold_em[sub]; } for(sub=0; sub<100; sub++) { if (hold_em[sub]%2 != 0) count = count +1; } cout << “The count is †<< count << endl; return 0; } 9. Find the errors in following expressions A) int a[3]; cout<>sale [row][column];Explanation / Answer
//please rate , 1st 3
http://ideone.com/0vQmPT
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.