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

  Describe the necessary formulas and sample calculations

Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input. Also, include your variable names and definitions. Be sure ..

  Strayer oracle server

The Strayer Oracle Server may be used to test and compile the SQL Queries developed for this assignment. Your instructor will provide you with login credentials to a Strayer University maintained Oracle server.

  Write down macro definitions for adding and subtracting

Write down macro definitions for adding and subtracting two arguments.

  Description of the new system-description its component

A full description of the new system, a description of its components, and the benefit it will provide to Riordan

  Discuss the legal theories used by the plaintiff to recover

products liability research paper due week 10 and worth 250 points select a company that has been the subject of a

  Write a select statement that returns four columns

Write a Select statement that returns four columns from the Invoices table, named Number, Total, Credits, and Balance

  How many units of each component ordered from each supplier

If the Edwards production plan for the next period includes 1000 units of component 1 and 800 units of component 2, how many units of each component (C1, C2) should be ordered from each supplier (S1, S2, S3)?

  Write a program to randomly select the numbers of 4 finalist

You have four identical prizes to give away and a pool of 25 finalists. The finalists are assigned numbers from 1 to 25. Write a program to randomly select the numbers of 4 finalists to receive a prize.

  Which of the following describes a technology

Which of the following describes a technology that delivers electrical power via Ethernet ports? Please select all that apply.

  Evaluate following integrals using simpson rule

Evaluate following integrals using simpson's rule and corrected simpson's rule (or richardson extrapolation in case the corrected simpson's is not applicable). In each case, use n = 2,4,8,16,32.

  Main elements of data breach

Discuss the importance of breach notification for credit card information, as it relates to PCI-DSS.

  Use the description above to determine entities

The cars that ECI sells come from multiple sources: some are shipped directly from the factories, other purchased from the private collectors, and yet some other cars are traded-in by the customers of ECI.

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