Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
Polymorphism
flowchart
Home
Questions
Questions
Study lists
Kasim Kamal Questions
290 Questions
What are the values in the following arrays?
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
192
Assuming txt_size is a function that takes no arguments and returns an int value, which of the following definitions are illegal? Explain why
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
158
In the binary search program on page 112, why did we write mid = beg + (end - beg) / 2; instead of mid = (beg + end) /2;
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
133
Rewrite the grade clustering program from § 3.3.3 (p. 104) using iterators instead of subscripts
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
387
Redo the last exercise from § 3.3.3 (p. 105) using iterators
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
530
Write a program to create a vector with ten int elements. Using an iterator, assign each element a value that is twice its current value. Test your program by printing the vector
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
173
Revise the loop that printed the first paragraph in text to instead change the elements in text that correspond to the first paragraph to all uppercase. After you’ve updated text, print its contents
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
426
Redo the first exercise from § 3.3.3 (p. 105) using iterators
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
395
Read a set of integers into a vector. Print the sum of each pair of adjacent elements. Change your program so that it prints the sum of the first and last elements, followed by the sum of the second and second-tolast, and so on
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
191
List three ways to define a vector and give it ten elements, each with the value 42. Indicate whether there is a preferred way to do so and why
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
125
Is the following program legal? If not, how might you fix it?
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
172
Read a sequence of words from cin and store the values a vector. After you’ve read all the words, process the vector and change each word to uppercase. Print the transformed elements, eight words to a line
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
464
Write a program to print the size and contents of the vectors from exercise 3.13. Check whether your answers to that exercise were correct. If not, restudy § 3.3.1 (p. 97) until you understand why you were wrong
C++ programming
2022-07-04
Answers
30
Question
40
Followers
30
0
1
445
Total:
290
Previous
7
8
9
10
11
Next
Go