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
Finger [1]
3 years ago
10

34. The variable j starts with the value 10. The variable k starts with the value 2. The variable l starts with the value 4. Sto

re the value of j times k in j . Store the value of k times l in l . Add j and l , and store the result in k . Display the value in k on the screen. program
Computers and Technology
1 answer:
larisa86 [58]3 years ago
3 0

Answer:

Following is the program in C++ language :

#include <iostream> // header file

using namespace std; // namespace

int main() // main function

{

  int j=10; // initialized j to 10

  int k=2;// initialized k to 2

  int i=4;// initialized i to 4

cout<<"old value of j:"<<j<<endl<<"old value of i:"<<i<<endl<<"old value of k:"<<k<<endl;

  j=j*k;//Store the value of k times j in j.

  i=k*i;//Store the value of k times i in i .

  k=j+i;//add the value of j in i and store in k

  cout<<"new value of j:"<<j<<endl<<"new value of i:"<<i<<endl<<"new value of k:"<<k;

   return 0;

}

Output:

old value of j:10

old value of i:4

old value of k:2

new value of j:20

new value of i:8

new value of k:28

Explanation:

Following is the explanation of program:

  • Declared the variable "j" and initialized 10 to them.
  • Declared the variable "k" and initialized 2 to them.
  • Declared the variable "i" and initialized 4 to them.
  • Print the old value of "j","k" and "i" by using the cout statement.
  • Stored the value of "j" variable in the "k" times of "j" variable.
  • Stored the value of "i" variable in the "k" times of "i" variable.
  • Add the value of "j" variable into "i" variable and store in "k" variable.
  • Finally display the new value of i,j and k variable.

You might be interested in
When should students practice netiquette in an online course? Check all that apply.
ser-zykov [4K]

Answer:

The answer to this question is given below in the explanation section. However, the correct answer is: student should practice netiquette in an online course when they are participating in online discussion board.

Explanation:

It is important for you as a student to recognize that the online classroom is in fact a classroom, and certain behaviors are expected when you communicate with both your peers and your instructors. These guidelines for online behavior and interaction are known as “netiquette”.

So, the correct option of this question is: students should practice netiquette in an online course when they are participating in an online discussion board. Because the discussion board is opened by the instructor/tutor, he constantly looking for student behavior throughout the discussion. so, students should use netiquette practice during the discussion in the online class.

However, other options are not correct because, in these options, there is not the presence of teacher/instructor. And, also noted that netiquette is practiced in online class by the student.  

8 0
3 years ago
Read 2 more answers
Differences between analog computer and hybrid computer​
aleksandrvk [35]

Answer:

Analog computers only work with continuous numerical data in analog quantities, digital computers can process both non-numerical and numerical data and a hybrid computer is a combination of both analog and digital. A hybrid computer has the accuracy of a digital computer paired with speed of an analog one.

5 0
3 years ago
Read 2 more answers
What value will the color variable have after these lines of code run?
hoa [83]

Answer:

red

Explanation:

color is set to red in the last line of being defined.

5 0
3 years ago
If the algorithm does not have instructions for unanticipated results, the computer program will a. solve a problem b. start ove
MrMuchimi

Answer: halt, just did the question

6 0
3 years ago
What special identity group is typically used when a user accesses an FTP server that doesn't require user account logon?
Rainbow [258]

Answer:

The correct answer to the following question will be "​Anonymous logon".

Explanation:

  • Windows would never let anyone sign in interactively with an anonymous logon to the device, a person who has linked to the device without a login and password being given.
  • So they won't have to verify to an account of the user just whether you are running any shares.r document, let everyone log into the machine collaboratively with such a logon.

Therefore, Anonymous logon is the right answer.

4 0
4 years ago
Other questions:
  • What type of media can be edited and published by anyone?
    6·2 answers
  • Jordan has been asked to help his company find a way to allow all the workers to log on to computers securely but without using
    6·1 answer
  • What prefix describes a mass that is 1000 times smaller than a gram
    5·2 answers
  • Although “dog.jpg” and “dog.JPG” and “Dog.jpg” and “DOG.JPG” all appear to be the same file, they are not considered the same wh
    7·1 answer
  • Indicate the order that the three files will be processed <br><br> Please answer
    15·1 answer
  • It is ok to sell services on Xbox in exchange for real-world money
    10·2 answers
  • What includes two or more private, public, or community clouds, but each cloud remains separate and is only linked by technology
    11·1 answer
  • In terms of Technology software is defined as?
    11·2 answers
  • Your customer then asks you if it would be worth the investment for him to have Ethernet cabling installed to reach each of his
    7·2 answers
  • Which of these is an application to control
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!