Make the following changes to the program in


#include
#include
using namespace std;
int main()
{
bool response = 234;
char character = 68;
int integer = 123.456789;
float single_precision_number = 1234.567890123456789;
double double_precision_number = 1234.567890123456789;
cout<<"response = "<< response < cout<<"character = "<< character < cout<<"integer = "<< integer < cout<<"single_precision_number = "<< setprecision (17)
< cout<<"double_precision_number = "<< setprecision (17)
< return 0;
}

Question 1: Please explain each line of output.

Question 2: Make the following changes to the program in Step 2 (simpleTypeDecls2.cpp) and explain the output you get.

change the value of "response" to 0 (zero).

change the value of "character" to ‘A'

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Make the following changes to the program in
Reference No:- TGS01044917

Expected delivery within 24 Hours