SlideShare a Scribd company logo
1 of 2
Download to read offline
Give the output generated by the statement in questions 18-20(execute these statement is c++ to
be sure):float value_1(5.78263); cout
Solution
18) output:
value_1=5.78263
19) output:
value_4=6.645832e+01
20) output:
value_5=7750
-----------------------------------------------------------------------------------------
/// complete program
using namespace std;
int main()
{
float value_I(5.78263);
double value_4(66.45832);
int value_5(7750);
cout<<"value_1"<<value_1<<endl;
cout<<scientific<<"value_4="<<value_4<<endl;
cout<<"value_5="<<fixed<<value_5<<endl;
cout << "Hello World" << endl;
return 0;
}

More Related Content

More from rtodd751

Given the following matrices and scalar values determine if the expres.docx
Given the following matrices and scalar values determine if the expres.docxGiven the following matrices and scalar values determine if the expres.docx
Given the following matrices and scalar values determine if the expres.docxrtodd751
 
Given the following list of data structures- classify each as being ei.docx
Given the following list of data structures- classify each as being ei.docxGiven the following list of data structures- classify each as being ei.docx
Given the following list of data structures- classify each as being ei.docxrtodd751
 
Given the following Queue definition- public class Queue { private cha (1).docx
Given the following Queue definition- public class Queue { private cha (1).docxGiven the following Queue definition- public class Queue { private cha (1).docx
Given the following Queue definition- public class Queue { private cha (1).docxrtodd751
 
Given the following information about a corporation-'s current year ac.docx
Given the following information about a corporation-'s current year ac.docxGiven the following information about a corporation-'s current year ac.docx
Given the following information about a corporation-'s current year ac.docxrtodd751
 
Given the following class definition that the compiler translates usin.docx
Given the following class definition that the compiler translates usin.docxGiven the following class definition that the compiler translates usin.docx
Given the following class definition that the compiler translates usin.docxrtodd751
 
Given the figures provided- calculate the GDP for the country- using t.docx
Given the figures provided- calculate the GDP for the country- using t.docxGiven the figures provided- calculate the GDP for the country- using t.docx
Given the figures provided- calculate the GDP for the country- using t.docxrtodd751
 
Given the following cost and activity observations for Taco CompanySol.docx
Given the following cost and activity observations for Taco CompanySol.docxGiven the following cost and activity observations for Taco CompanySol.docx
Given the following cost and activity observations for Taco CompanySol.docxrtodd751
 
Given the densities of the following liquids and solids- label the pic.docx
Given the densities of the following liquids and solids- label the pic.docxGiven the densities of the following liquids and solids- label the pic.docx
Given the densities of the following liquids and solids- label the pic.docxrtodd751
 
Given the following compounds and their vapor pressures (VP)- Arrange.docx
Given the following compounds and their vapor pressures (VP)- Arrange.docxGiven the following compounds and their vapor pressures (VP)- Arrange.docx
Given the following compounds and their vapor pressures (VP)- Arrange.docxrtodd751
 
Given the following class definition that the compiler translates usin (1).docx
Given the following class definition that the compiler translates usin (1).docxGiven the following class definition that the compiler translates usin (1).docx
Given the following class definition that the compiler translates usin (1).docxrtodd751
 
Given the figures provided- calculate the GDP for the country- using t (1).docx
Given the figures provided- calculate the GDP for the country- using t (1).docxGiven the figures provided- calculate the GDP for the country- using t (1).docx
Given the figures provided- calculate the GDP for the country- using t (1).docxrtodd751
 
Given the following Binary Tree- show the box trace of Depth(N)-Soluti.docx
Given the following Binary Tree- show the box trace of Depth(N)-Soluti.docxGiven the following Binary Tree- show the box trace of Depth(N)-Soluti.docx
Given the following Binary Tree- show the box trace of Depth(N)-Soluti.docxrtodd751
 
Given the following class declaration- write the code in Java for the.docx
Given the following class declaration- write the code in Java for the.docxGiven the following class declaration- write the code in Java for the.docx
Given the following class declaration- write the code in Java for the.docxrtodd751
 
Given that String -- str has been initialized- to get a copy of str -0.docx
Given that String -- str has been initialized- to get a copy of str -0.docxGiven that String -- str has been initialized- to get a copy of str -0.docx
Given that String -- str has been initialized- to get a copy of str -0.docxrtodd751
 
given f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docx
given f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docxgiven f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docx
given f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docxrtodd751
 
Given below are the costs and activity observations for Ncwin Company-.docx
Given below are the costs and activity observations for Ncwin Company-.docxGiven below are the costs and activity observations for Ncwin Company-.docx
Given below are the costs and activity observations for Ncwin Company-.docxrtodd751
 
Given the angle of rotation is small and the materials remain line a e.docx
Given the angle of rotation is small and the materials remain line a e.docxGiven the angle of rotation is small and the materials remain line a e.docx
Given the angle of rotation is small and the materials remain line a e.docxrtodd751
 
Given a list of numbers- count and return how many pairs there are- A.docx
Given a list of numbers- count and return how many pairs there are- A.docxGiven a list of numbers- count and return how many pairs there are- A.docx
Given a list of numbers- count and return how many pairs there are- A.docxrtodd751
 
Given an m-by-n matrix A and an n-by-k matrix B- the product of A and.docx
Given an m-by-n matrix A and an n-by-k matrix B- the product of A and.docxGiven an m-by-n matrix A and an n-by-k matrix B- the product of A and.docx
Given an m-by-n matrix A and an n-by-k matrix B- the product of A and.docxrtodd751
 
Given an MPC of 0-8- which of the following is not true- 1) a $10 bill.docx
Given an MPC of 0-8- which of the following is not true- 1) a $10 bill.docxGiven an MPC of 0-8- which of the following is not true- 1) a $10 bill.docx
Given an MPC of 0-8- which of the following is not true- 1) a $10 bill.docxrtodd751
 

More from rtodd751 (20)

Given the following matrices and scalar values determine if the expres.docx
Given the following matrices and scalar values determine if the expres.docxGiven the following matrices and scalar values determine if the expres.docx
Given the following matrices and scalar values determine if the expres.docx
 
Given the following list of data structures- classify each as being ei.docx
Given the following list of data structures- classify each as being ei.docxGiven the following list of data structures- classify each as being ei.docx
Given the following list of data structures- classify each as being ei.docx
 
Given the following Queue definition- public class Queue { private cha (1).docx
Given the following Queue definition- public class Queue { private cha (1).docxGiven the following Queue definition- public class Queue { private cha (1).docx
Given the following Queue definition- public class Queue { private cha (1).docx
 
Given the following information about a corporation-'s current year ac.docx
Given the following information about a corporation-'s current year ac.docxGiven the following information about a corporation-'s current year ac.docx
Given the following information about a corporation-'s current year ac.docx
 
Given the following class definition that the compiler translates usin.docx
Given the following class definition that the compiler translates usin.docxGiven the following class definition that the compiler translates usin.docx
Given the following class definition that the compiler translates usin.docx
 
Given the figures provided- calculate the GDP for the country- using t.docx
Given the figures provided- calculate the GDP for the country- using t.docxGiven the figures provided- calculate the GDP for the country- using t.docx
Given the figures provided- calculate the GDP for the country- using t.docx
 
Given the following cost and activity observations for Taco CompanySol.docx
Given the following cost and activity observations for Taco CompanySol.docxGiven the following cost and activity observations for Taco CompanySol.docx
Given the following cost and activity observations for Taco CompanySol.docx
 
Given the densities of the following liquids and solids- label the pic.docx
Given the densities of the following liquids and solids- label the pic.docxGiven the densities of the following liquids and solids- label the pic.docx
Given the densities of the following liquids and solids- label the pic.docx
 
Given the following compounds and their vapor pressures (VP)- Arrange.docx
Given the following compounds and their vapor pressures (VP)- Arrange.docxGiven the following compounds and their vapor pressures (VP)- Arrange.docx
Given the following compounds and their vapor pressures (VP)- Arrange.docx
 
Given the following class definition that the compiler translates usin (1).docx
Given the following class definition that the compiler translates usin (1).docxGiven the following class definition that the compiler translates usin (1).docx
Given the following class definition that the compiler translates usin (1).docx
 
Given the figures provided- calculate the GDP for the country- using t (1).docx
Given the figures provided- calculate the GDP for the country- using t (1).docxGiven the figures provided- calculate the GDP for the country- using t (1).docx
Given the figures provided- calculate the GDP for the country- using t (1).docx
 
Given the following Binary Tree- show the box trace of Depth(N)-Soluti.docx
Given the following Binary Tree- show the box trace of Depth(N)-Soluti.docxGiven the following Binary Tree- show the box trace of Depth(N)-Soluti.docx
Given the following Binary Tree- show the box trace of Depth(N)-Soluti.docx
 
Given the following class declaration- write the code in Java for the.docx
Given the following class declaration- write the code in Java for the.docxGiven the following class declaration- write the code in Java for the.docx
Given the following class declaration- write the code in Java for the.docx
 
Given that String -- str has been initialized- to get a copy of str -0.docx
Given that String -- str has been initialized- to get a copy of str -0.docxGiven that String -- str has been initialized- to get a copy of str -0.docx
Given that String -- str has been initialized- to get a copy of str -0.docx
 
given f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docx
given f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docxgiven f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docx
given f(x)- { 1- if -2 --- x--- 0 x^2- if 0---x---2 -x+1- if x-2 a) wh.docx
 
Given below are the costs and activity observations for Ncwin Company-.docx
Given below are the costs and activity observations for Ncwin Company-.docxGiven below are the costs and activity observations for Ncwin Company-.docx
Given below are the costs and activity observations for Ncwin Company-.docx
 
Given the angle of rotation is small and the materials remain line a e.docx
Given the angle of rotation is small and the materials remain line a e.docxGiven the angle of rotation is small and the materials remain line a e.docx
Given the angle of rotation is small and the materials remain line a e.docx
 
Given a list of numbers- count and return how many pairs there are- A.docx
Given a list of numbers- count and return how many pairs there are- A.docxGiven a list of numbers- count and return how many pairs there are- A.docx
Given a list of numbers- count and return how many pairs there are- A.docx
 
Given an m-by-n matrix A and an n-by-k matrix B- the product of A and.docx
Given an m-by-n matrix A and an n-by-k matrix B- the product of A and.docxGiven an m-by-n matrix A and an n-by-k matrix B- the product of A and.docx
Given an m-by-n matrix A and an n-by-k matrix B- the product of A and.docx
 
Given an MPC of 0-8- which of the following is not true- 1) a $10 bill.docx
Given an MPC of 0-8- which of the following is not true- 1) a $10 bill.docxGiven an MPC of 0-8- which of the following is not true- 1) a $10 bill.docx
Given an MPC of 0-8- which of the following is not true- 1) a $10 bill.docx
 

Recently uploaded

M-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptxM-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptxDr. Santhosh Kumar. N
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfMohonDas
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxraviapr7
 
Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...raviapr7
 
How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17Celine George
 
How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17Celine George
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxAditiChauhan701637
 
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxPractical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxKatherine Villaluna
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxheathfieldcps1
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...Nguyen Thanh Tu Collection
 
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptxPISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptxEduSkills OECD
 
Patterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptxPatterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptxMYDA ANGELICA SUAN
 
5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...CaraSkikne1
 
3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptxmary850239
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17Celine George
 
How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17Celine George
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesMohammad Hassany
 

Recently uploaded (20)

M-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptxM-2- General Reactions of amino acids.pptx
M-2- General Reactions of amino acids.pptx
 
Finals of Kant get Marx 2.0 : a general politics quiz
Finals of Kant get Marx 2.0 : a general politics quizFinals of Kant get Marx 2.0 : a general politics quiz
Finals of Kant get Marx 2.0 : a general politics quiz
 
Diploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdfDiploma in Nursing Admission Test Question Solution 2023.pdf
Diploma in Nursing Admission Test Question Solution 2023.pdf
 
Prescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptxPrescribed medication order and communication skills.pptx
Prescribed medication order and communication skills.pptx
 
Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...Patient Counselling. Definition of patient counseling; steps involved in pati...
Patient Counselling. Definition of patient counseling; steps involved in pati...
 
How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17How to Show Error_Warning Messages in Odoo 17
How to Show Error_Warning Messages in Odoo 17
 
Prelims of Kant get Marx 2.0: a general politics quiz
Prelims of Kant get Marx 2.0: a general politics quizPrelims of Kant get Marx 2.0: a general politics quiz
Prelims of Kant get Marx 2.0: a general politics quiz
 
How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17How to Add Existing Field in One2Many Tree View in Odoo 17
How to Add Existing Field in One2Many Tree View in Odoo 17
 
In - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptxIn - Vivo and In - Vitro Correlation.pptx
In - Vivo and In - Vitro Correlation.pptx
 
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptxPractical Research 1: Lesson 8 Writing the Thesis Statement.pptx
Practical Research 1: Lesson 8 Writing the Thesis Statement.pptx
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
 
Personal Resilience in Project Management 2 - TV Edit 1a.pdf
Personal Resilience in Project Management 2 - TV Edit 1a.pdfPersonal Resilience in Project Management 2 - TV Edit 1a.pdf
Personal Resilience in Project Management 2 - TV Edit 1a.pdf
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 11 - GLOBAL SUCCESS - NĂM HỌC 2023-2024 - HK...
 
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptxPISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
PISA-VET launch_El Iza Mohamedou_19 March 2024.pptx
 
Patterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptxPatterns of Written Texts Across Disciplines.pptx
Patterns of Written Texts Across Disciplines.pptx
 
5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...5 charts on South Africa as a source country for international student recrui...
5 charts on South Africa as a source country for international student recrui...
 
3.21.24 The Origins of Black Power.pptx
3.21.24  The Origins of Black Power.pptx3.21.24  The Origins of Black Power.pptx
3.21.24 The Origins of Black Power.pptx
 
How to Solve Singleton Error in the Odoo 17
How to Solve Singleton Error in the  Odoo 17How to Solve Singleton Error in the  Odoo 17
How to Solve Singleton Error in the Odoo 17
 
How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17How to Make a Field read-only in Odoo 17
How to Make a Field read-only in Odoo 17
 
Human-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming ClassesHuman-AI Co-Creation of Worked Examples for Programming Classes
Human-AI Co-Creation of Worked Examples for Programming Classes
 

Give the output generated by the statement in questions 18-20(execute.docx

  • 1. Give the output generated by the statement in questions 18-20(execute these statement is c++ to be sure):float value_1(5.78263); cout Solution 18) output: value_1=5.78263 19) output: value_4=6.645832e+01 20) output: value_5=7750 ----------------------------------------------------------------------------------------- /// complete program using namespace std; int main() { float value_I(5.78263); double value_4(66.45832); int value_5(7750); cout<<"value_1"<<value_1<<endl; cout<<scientific<<"value_4="<<value_4<<endl; cout<<"value_5="<<fixed<<value_5<<endl; cout << "Hello World" << endl;