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
miskamm [114]
3 years ago
9

Which of the following is an advantage of using variables?

Computers and Technology
1 answer:
GaryK [48]3 years ago
7 0

Answer:

D. It makes it less likely that an error will be introduced into the code.

Explanation:

You might be interested in
Define a class named Money that stores a monetary amount. The class should have two private integer variables, one to store the
WINSTONCH [101]

Answer:

#include<iostream>

using namespace std;

class Money{

    private:

        int dollars;  

       int cents;

   public:

       Money(int d=0, int c=0){

          setDollar(d);

          setCent(c);

       }

       void setDollar(int d){

           dollars = d;

       }

       void setCent(int c){

           cents = c

       }

       int getDollar() {

           return dollars;

       }

       int getCent() {

           return cents;

       }

       double getMoney(){

          return (dollars + (cents/100));

       }

};

// testing the program.

int main(){

  Money Acc1(3,50);

  cout << M.getMoney() << endl;

  Money Acc2;

  Acc2.setDollars(20);

  Acc2.setCents(30);

  cout <<"$" << Acc2.getDollars() << "." << Acc2.getCents() << endl;

  return 0;

}

Explanation:

The C++ source code defines the Money class and its methods, the class is used in the main function as a test to create the instances of the money class Acc1 and Acc2.

The object Acc2 is mutated and displayed with the "setDollar and setCent" and "getDollar and getCent" methods respectively.

6 0
3 years ago
Please help! Why is my windows homepage like this with no desktop pictures for apps? It has like a mail logo for everything. How
Artist 52 [7]

Answer: Did you try to go to settings and fix the app icon?

Explanation: Try to press different buttons suck as Apps and More you will eventually be able to fix it but the sooner the better

5 0
3 years ago
The picture that graphically represents the items you use in windows is called a/an
Marizza181 [45]
The picture that represents the items or programs is called a icon, you can change the icon or delete it
4 0
3 years ago
Read 2 more answers
Can someone urgently help me with my java code? Ive been working on it for hours and its not working.
ki77a [65]

Answer:

hi

Explanation:

3 0
3 years ago
La sección de lectores de un diario de la ciudad impone como única restricción para la publicación de las cartas, que el texto d
kap26 [50]

Answer:

El tamaño de un archivo .txt que contenga esa cantidad de texto será de 1.46 KB.

Explanation:

Se entiende que todo caracter informático posee un tamaño de 1 byte, con lo cual en total el texto no puede superar los 1,500 bytes de tamaño.

Ahora bien, un kilobyte es una unidad de medida informática superior, que se compone de 1,024. Por lo tanto, dado que 1,500 - 1,024 es igual a 474, el tamaño del archivo será de 1 KB y 474 bytes. Así, para calcular el tamaño total del archivo en KB, se debe realizar el siguiente cálculo:

1,024 = 1

474 = X

((474 x 1) / 1,024) = X

0.46 = X

Así, el tamaño de un archivo .txt que contenga esa cantidad de texto será de 1.46 KB.

4 0
3 years ago
Other questions:
  • In three to five sentences, describe how you can organize written information logically and sequentially
    8·1 answer
  • True or false.
    15·1 answer
  • A built-in tool that enables you to use text to type in commands for the operating system is called the _____ prompt.
    10·2 answers
  • Discuss your theory on why the light bulbs in the combination circuit have different brightness.
    6·1 answer
  • The design activity key question, "how will this system interact with other systems..." is part of which design activity?​
    7·1 answer
  • Which of the following savings vehicles usually requires a high minimum balance? ASimple savings account BCertificate of Deposit
    7·1 answer
  • Microwaves are used
    8·1 answer
  • When Creating a FPS game what basic rules would you add?
    12·1 answer
  • Pls Help need it before 1pm PLS.
    15·2 answers
  • Microsoft Publisher - Assignment #1
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!