Comp122 Week 2 Homework

Week 2 Homework Complete the afterward problems. 1. Suppose you are accustomed the afterward capricious declarations: int x, y; burn ch; What ethics (if any) are assigned to x, y, and ch afterwards anniversary of these statements execute? Assume that the ascribe to anniversary account is the same:5 28 36 a. cin >> x >> y >> ch; b. cin >> ch >> x >> y; c. cin >> x >> ch >> y; d. cin >> x >> y; cin. get(ch); a) x=5, y=28,ch=3 b)) x = 28, y = 36, ch = 5 c) x = 5, y = 8, ch = 2 ) x = 5, y = 28 ch is assigned a amount associated with bare amplitude i. e. , ‘ ’ 2. Suppose you are accustomed the afterward capricious declarations: int x, y; burn ch; What ethics (if any) are assigned to x, y, and ch afterwards anniversary of these statements execute? Assume that the ascribe to anniversary set of statements is as follows: 13 28 D 14 E 98 A B 56 a. cin >> x >> y; cin. ignore(50, ' '); cin >> ch; b. cin >> x; cin. ignore(50, ' '); cin >> y; cin. ignore(50, ' '); cin. get(ch); a) x = 13, y = 28, ch = 1 ) x = 13, y = 14, ch = A 3. Suppose you are accustomed the afterward capricious declarations: int x, y; bifold z; burn ch; Assume you accept the afterward ascribe statement: cin >> x >> y >> ch >> z; What ethics (if any) are stored in x, y, z, and ch if the ascribe is: a. 35 62. 78 b. 86 32A 92. 6 c. 12 . 45A 32 3) a) x = 35 y = 62 ch = . z = 78 b) x = 86 y = 32 ch = A z = 9206 C) x = 12 4. Write a C++ account that uses the architect 'setfill' to achievement a band absolute 35 asterisk characters. 4) cout

Order a unique copy of this paper

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
Top Academic Writers Ready to Help
with Your Research Proposal
Order now and a get a 25% discount with the discount code: COURSEGUYOrder Now!
+ +