Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform this in C++ Declare the following int variables: intA intB intC Declare the following double variables: doubleA doubleB doubleC Declare the following constant of

Perform this in C++ image text in transcribed

Declare the following int variables:

intA

intB

intC

Declare the following double variables:

doubleA

doubleB

doubleC

Declare the following constant of type double and assign the value of 11.11 to it:

CON_ONE

Assign 2 to intA, 3 to intB, assign the sum of intA and intB to intC (through an addition formula).

Assign 2.1 to doubleA, 3.5 to doubleB, assign the sum of doubleA and doubleB and CON_ONE to doubleC (through an addition formula).

Print the name of each variable, along with their value on a separate line (view included exe).

Include a pause at the end.

Use the attached exe to determine spacing and how your display should look.

Please make the command prompt look exactly like the picture above. Thanks!

intA - 2 intB = 3 intc = 5 doubleA 2.1 doubleB = 3.5 doubleC = 16.71 CON_ONE = 11.11 Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago