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
In a bubble sort for a list of length n >= 2, in each iteration, the first step is to compare_______.
Hunter-Best [27]

Answer:

the consecutive two elements and swap them based on the value which is larger if we go for ascending order

Explanation:

bubble sort compares 2 consecutive elements of the list and swap them. in one iteration one value will be placed correctly depending on the sorting order either ascending or descending

7 0
2 years ago
What does UAS stand for
dezoksy [38]

Answer: Unmanned Aircraft Systems

Explanation:

8 0
2 years ago
Read 2 more answers
Which way is the quickest to access the Find and Replace dialog box?
Elena L [17]

Answer:

The quickest way I'd say is using the keyboard combination keys Ctrl + H

Explanation:

The Find and Replace feature in Word is used to quickly make revisions. This feature is best used when you have repeatedly made mistakes in your document or you need to exchange a particular word for another. This feature can also be used in other situations like when you need to search for a specific word or number. Holding down the Ctrl + H is the quickest way to fire this feature up .

3 0
2 years ago
HELP ME PLEASE PLEASE PLEASE!!!! IM BEGING YOU!!!!
lora16 [44]

Answer:

Photo metadata is a set of data describing and providing information about rights and administration of an image. It allows information to be transported with an image file, in a way that can be understood by other software and human users.

Explanation:

4 0
2 years ago
Write the advantage of magnetic storage over sequential storage device.​Write in points.​
Nikolay [14]

Answer:

External storage devices

  • External HDDs and SSDs. ...
  • Flash memory devices. ...
  • Optical Storage Devices. ...
  • Floppy Disks. ...
  • Primary Storage: Random Access Memory (RAM) ...
  • Secondary Storage: Hard Disk Drives (HDD) & Solid-State Drives (SSD) ...
  • Hard Disk Drives (HDD) ...
  • Solid-State Drives (SSD)

5 0
3 years ago
Other questions:
  • Your colleague received an E-mail from a bank that is requesting credit card and PIN number information. Which of the following
    6·1 answer
  • Define the method object inc_num_kids() for personinfo. inc_num_kids increments the member data num_kids. sample output for the
    11·1 answer
  • An effectively distributed resume will get an interview
    12·2 answers
  • Science is a body of knowledge that extends back to Select one: a. the time of Galileo. b. Italy in the 16th century. c. Greece
    6·1 answer
  • How do individuals differ in terms of their ability to process information?
    15·1 answer
  • A user is trying to delete a file located on an ntfs volume on his windows 8 computer but is unable to do so. Why is this.
    5·1 answer
  • How does outlets generate electricity???
    15·1 answer
  • Anyone know how to delete it in my laptop
    10·1 answer
  • What types of information should have their sources cited to avoid plagiarism? List at least 3
    10·1 answer
  • What is an example of a recent development in technology
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!