Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ 1. \'Which operator do you use to read into a variable? 2. If you want the u

ID: 662584 • Letter: C

Question

C++

1. 'Which operator do you use to read into a variable?
2. If you want the user to input an integer value into your program for a
variable named number, what arc two lines of code you could write to
ask the user to do it and to input the value into your program?
3. What terminates input into an integer?
4. What terminates input into a string?
5. What is an object?
6. What is a variable?
7. What is an initialization and how does it differ from an assignment?
8. Write a program in C++ that converts from miles to kilometers. Your
program should have a reasonable prompt for the user to enter a number
of miles and print result.
9. Write a similar program that calls a function to convert miles to kilometers.
10. Write a similar program that calls a function to change a variable value from miles to kilometers.

Explanation / Answer

1.
extraction operator(>>)

2.
cout << "Input an integer value: ";
cin >> number;

3.
space(' ')

4.
null('')