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
Tasya [4]
3 years ago
8

A programmer must add 1 to the value stored in the int variable sum. One way is given to get you started. Write two more distinc

t ways to add 1 to the value stored in sum.
Computers and Technology
1 answer:
olganol [36]3 years ago
4 0

Answer:

option 1: sum++

option 2: ++sum

Explanation:

In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.

To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.

You might be interested in
Give your definition of a stored procedure. Based on the Academic Database, identify and describe a scenario where it would be n
Tems11 [23]

, identify and describe a scenario where it would be

8 0
3 years ago
Donna often travels around the world. When she travels, she needs to access her emails from different locations. However, to kee
Tju [1.3M]

Answer:

Yahoo! mail

Explanation:

In the context, Dona travels most often around the world. While traveling, she has to access her emails from different location and at different times. But in order to keep her luggage light, she never carries the laptop with her. Therefore, Donna uses Yahoo! mail to access her emails.

Donna uses Yahoo mail because she can install the Yahoo! mail app in her phone or tablets which is small in size and of light weight. She is able to organize her Outlooks,  Google mails and  Yahoo accounts. In Yahoo! mail, Donna is also able to sign in with her any of the non yahoo accounts and it also provides free cloud storage space.

8 0
3 years ago
Read 2 more answers
Suppose you find a magic $1.00 coin. Its magic power is as follows: as each day passes, you get an additional dollar plus half o
AfilCa [17]

Answer:

See explaination

Explanation:

public class QuickRich {

static void getRichQuick() {

double amount = 1;

int day = 1;

System.out.println("Day 1: $1");

while (amount < 1000000) {

day++;

if(amount + 1 + (amount/2) < 1000000)

System.out.printf("Day %d: $%.2f + ($1 + %.2f) = $%.2f\n", day, amount, amount/2, amount+(amount/2)+1);

else

System.out.printf("Day %d: $%.2f + ($1 + %.2f) >= $1000000\n", day, amount, amount/2);

amount += (1 + (amount/2));

}

}

public static void main(String[] args) {

getRichQuick();

}

}

7 0
4 years ago
Which below best describes JavaScript? *
marysya [2.9K]

Answer:

it is a programing languwage that is useualy used to program visual or text based applications

Explanation:

6 0
3 years ago
Read 2 more answers
What aspect do you need to keep in mind when you add images in a Word document?
MrRissso [65]
Hey there!

You would have to keep in mind that you would have first, use the correct format and make sure that the format matches the requirements for the Microsoft word doc.

I believe that they would be the following:

PDF, JPDE,TIFF, and many more that would have to be able to except the images of the files.

I hope this helps you!
6 0
3 years ago
Other questions:
  • His function starts a new session.
    12·1 answer
  • What type of scientists studies tree rings to determine the history of an area?
    9·2 answers
  • A claim that is printed and mailed to the carrier site is called a _______copy?
    13·1 answer
  • Can you think of a shortcut for calculating the network addresses of consecutive /30 subnets?
    9·1 answer
  • Create a script that asks for the visitor's weight in pounds and his/her height in inches. The program should then calculate the
    13·1 answer
  • What are the functions of online gaming communities?
    12·1 answer
  • Will created an entry in his calendar and marks it as an all day instance which item has he created
    9·1 answer
  • /* Write a method called fractionSum that accepts an integer parameter n and
    5·1 answer
  • What tasks should a laptop accomplish?
    15·1 answer
  • our grandmother tells you a dollar doesn’t go as far as it used to. She says the “purchasing power” of a dollar is much less tha
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!