Change the value of character

Assignment Help Basic Computer Science
Reference no: EM13774855

#include <iostream>
#include <iomanip>
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 <<endl;
cout<<"character = "<< character <<endl;
cout<<"integer = "<< integer <<endl;
cout<<"single_precision_number = "<< setprecision (17)
<<single_precision_number<<endl;
cout<<"double_precision_number = "<< setprecision (17)
<<double_precision_number<<endl;
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'

Reference no: EM13774855

Questions Cloud

Communicate correctivee actions clearly : Every accident should have at least 1 causal factor. Develop at least one corrective action for each causal factor
How do you know if the short is well-designed : How do you know if the short is well-designed? What kind of brand would you choose for shorts? Why? What do you know about the company ?
Discussion-fossil fuels versus renewable energy : In physics, energy is defined as the ability to do work. When most people think of energy, they think of electricity. The energy that is used to produce electricity is derived from a number of resources. Much of the energy used today is obtained f..
Proper solid and hazardous waste disposal : Introduce the thesis and provide a brief overview of the main points of the rest of your paper. Describe your issue and explain how and why the three environmental challenges/problems are associated with this issue.
Change the value of character : Make the following changes to the program in (simpleTypeDecls2.cpp) and explain the output you get.
Identify the independent and dependent variable : Identify the independent and dependent variable, and state the research hypothesis for your study. The variables must be categorical variables.
Compare online or electronically mediated relationships : Write a one page journa on How would you compare online or electronically mediated relationships to face to face e relationships? Which are more real?
Specific race or ethnicity in the areas of health and crime : Describe the effects that the statistical information on a specific race or ethnicity in the areas of health, crime, employment, or education may have in terms of being a predictor of behavior
Write a poe analysis essay on the mask of the red death : Write a Poe Analysis Essay on The Mask of the Red Death, The Raven and The Fall of the House of Usher. For this essay you will write an interpretive textual analysis of the works of Edgar Allan Poe.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd