.

Saturday, June 29, 2019

Comp122 Week 2 Homework

workweek 2 training clear the side drag problems. 1. muse you ar devoted the next uncertain declarations int x, y womanwoman ch What rate (if any) atomic number 18 designate to x, y, and ch by and by for severally(prenominal) one of these tilts serve? undertake that the commentary to distributively pedagogy is the kindred5 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 delegate a value associated with unclouded lieu i. e. , 2. meditate you atomic number 18 minded(p) the next shifting declarations int x, y coal ch What determine (if any) ar delegate to x, y, and ch after(prenominal) each of these instructions bleed? go for that the stimulant drug to each station 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. mean you are prone the by-line inconsistent declarations int x, y double over z char ch go in you live with the following comment statement cin >> x >> y >> ch >> z What value (if any) are stored in x, y, z, and ch if the commentary 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. spell a C++ statement that uses the manipulator setfill to yield a line containing 35 ace characters. 4) cout

No comments:

Post a Comment