Question

1) declare and initialize two variables of double type 2) calculate and display the square of them separatly

          1) declare and initialize two variables of double
type
2) calculate and display the square of them
separatly
        
1) declare and initialize two variables of double
type
2) calculate and display the square of them
separatly

Added by Wayne O.

Close

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
1) Declare and initialize two variables of double type. 2) Calculate and display the square of them separately.
Close icon
Play audio
Feedback
Powered by NumerAI
Kathleen Carty Danielle Fairburn
Jennifer Stoner verified

Wei Yang and 82 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
write-a-c-program-to-declare-two-integers-one-float-variables-and-assign-1015and-126-to-them-respectively-it-then-print-these-values-on-the-screen-98723

Write a C++ program to declare two integer and one float variables and assign 10, 15, and 12.6 to them respectively. It then prints these values on the screen.

Wei Y.

write-a-c-program-to-define-a-class-for-calculator-with-data-members-as-number1-and-number2-both-as-double-and-methods-as-add-sub-mul-div-create-an-array-of-5-objects-of-calculator-use-param-21272

Write a C++ program to define a class for calculator with data members as number1 and number2 (both as double) and methods as add(), sub(), mul(), div(). Create an array of 5 objects of calculator. Use parameterized constructor to initialize the values. Display output of all four arithmetic operations

Christian O.

give-a-c-definition-of-a-struct-called-pair-that-consists-of-two-members-the-first-is-an-integer-called-first-and-the-second-is-a-double-called-second

Give a C++ definition of a struct called Pair that consists of two members. The first is an integer called first, and the second is a double called second.

Patricia H.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,199 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,146 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,759 solutions

*

Transcript

-
00:01 So this question is going to be testing on how you assign variables and initiate them in c++.
00:09 So in c++, the way that you would assign variables and initiate is you would need the type name, followed by the variable name, followed by the equal sign, and then the value of the variable.
00:32 So here we're going to try to assign two integers.
00:41 And that's going to be using the keyword int.
00:47 So the time name will be int and end.
00:54 And let's say the first integer is going to be called x, and we're going to assign the value 10.
01:01 So this is one way of initiating the value.
01:05 It's initiation at an assignment...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever