operations. All we need to know is that streams are a source/destination of characters, and that these characters are provided / accepted sequentially. A stream is an entity where a program can either...

C++operations. All we need to know is that streams are a source/destination of<br>characters, and that these characters are provided / accepted sequentially.<br>A stream is an entity where a program can either insert or extract characters<br>to/from the program.<br>o cin:standard input stream<br>o cout : standard output stream<br>Tasks:<br>1. Construct a program where implicit conversion would have been done.<br>2. Construct a program where you declare and initialize a constant variable, now try<br>to reassign some value to that variable and notice what happens.<br>3. Construct a program where following explicit conversions would have been done:<br>o Character type (char) to integer type (int)<br>o Float type (float) to integer(int) type and resultant to character(char) type<br>4. Construct a program where following expressions would have been evaluated,<br>output the result:<br>• 3 * 7-6 + 2 * 5/4 + 6<br>5.4 * 2- 13.6 + 18 / 2<br>5. Construct a program which asks user to enter an integer number and output the<br>table of that number in the following format (for example user enters 2):<br>• 2*1 = 2<br>2*2 = 4 (So on.)<br>6. Construct a program where you input different type of data, output each of them.<br>7. Construct a program where you input character data and integer data, explicitly<br>convert their types, and output the result.<br>Output will be like this:<br>• If you entered integer value, its equivalent ASCI| character will be<br>the output<br>• If you entered character value, its equivalent ASCII Integer will be<br>the output.<br>

Extracted text: operations. All we need to know is that streams are a source/destination of characters, and that these characters are provided / accepted sequentially. A stream is an entity where a program can either insert or extract characters to/from the program. o cin:standard input stream o cout : standard output stream Tasks: 1. Construct a program where implicit conversion would have been done. 2. Construct a program where you declare and initialize a constant variable, now try to reassign some value to that variable and notice what happens. 3. Construct a program where following explicit conversions would have been done: o Character type (char) to integer type (int) o Float type (float) to integer(int) type and resultant to character(char) type 4. Construct a program where following expressions would have been evaluated, output the result: • 3 * 7-6 + 2 * 5/4 + 6 5.4 * 2- 13.6 + 18 / 2 5. Construct a program which asks user to enter an integer number and output the table of that number in the following format (for example user enters 2): • 2*1 = 2 2*2 = 4 (So on.) 6. Construct a program where you input different type of data, output each of them. 7. Construct a program where you input character data and integer data, explicitly convert their types, and output the result. Output will be like this: • If you entered integer value, its equivalent ASCI| character will be the output • If you entered character value, its equivalent ASCII Integer will be the output.

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here