1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
PIT_PIT [208]
2 years ago
13

Does anyone know how to write this right? This is for a coding class and I’m super confused on it.

Computers and Technology
1 answer:
vovangra [49]2 years ago
4 0

Answer:

This is using c++ syntax, you might need to make slight adjustment for other languages.

First activity:

string firstSnack = "chips";

string secondSnack = "pizza";

string thirdSnack = "apples";

string bestSnack =  firstSnack;

bestSnack = secondSnack;

Second activity:

double apple = 0.5;

double banana = 0.75;

double orange = 1.43;

double total = apple + banana + orange;

Explanation:

When first declaring a variable, you want to specify the type (such as int, double, string, bool, etc.) and then the name. You can set the variable value in the declaration, or you can set it to a value later in the program by not having the equals sign and whatever comes next.

You might be interested in
True or False
OverLord2011 [107]

Answer:False

Explanation:

7 0
3 years ago
How to use function in python
Semmy [17]

Answer:

Use the keyword def to declare the function and follow this up with the function name.

Add parameters to the function: they should be within the parentheses of the function. ...

Add statements that the functions should execute.

5 0
3 years ago
How can investors receive compounding returns
ANTONII [103]
If you’ve ever had a savings account, you likely know that a few cents in interest every month barely adds up. The goal is “compounding returns,” which simply means that the interest you earn each month earns additional interest, which then earns even more interest. But although a savings account will help with that, you may be lucky enough to be able to afford a cup of coffee every 10 years or so at that rate. Instead, it’s important to find a way to invest your money in a high-interest account that will earn compounding returns.

I hope this helps you out ;)
3 0
3 years ago
Sarah has to pick images that display camera care. Which images would she pick to show camera care?
bixtya [17]

Answer:

  • <u><em>See the two pictures attached with the images she would pick.</em></u>

Explanation:

A case or bag are essential to prevent damage to the lenses, the housing or the internal components of the camera.

Rain, dust, liquid spills or blows with other objects could cause scratches to the lenses or damage to the internal components and a padded and waterproof bag or a hard case could save your camera from these common situations.

Thus, the two attached images whould show a good <em>care</em> for the camera, while other images are showing the camera unattended.

The image with the camera around the neck is also a good example of care, because the camera is protected with a hoodie that protects the lens from scratches, dust, water, and impacts.

6 0
3 years ago
What are creative commons?
Olenka [21]

Answer:

c

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • Walt needs to ensure that messages from a colleague in another organization are never incorrectly identified as spam. What shoul
    14·2 answers
  • In an email, above subject, what does cc mean?
    13·1 answer
  • On an Android device, where can a user find the correct app to use to sync contacts and apps among devices?
    10·1 answer
  • One way to avoid carbon monoxide poisoning is to:<br><br> B. Open a rear window in your car
    9·1 answer
  • Create a view named ItemOrder view. It consists of the TaskID, description, price, order number, order date, and quoted price fo
    8·1 answer
  • The memory locations listed in a procedure header's parameterList have procedure scope and are removed from the computer's main
    9·1 answer
  • Studies show people remember at least ___more information when the document they are seeing or reading contains visual elements
    9·1 answer
  • Body paragraphs in a report have a first-line indent of _____ inch. *
    9·1 answer
  • Computing is the provision of IT services on demand.
    9·1 answer
  • Here you guys go im back didnt die or any thing gg for who ever gets this
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!