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
10 sentences about computer parts.
Ahat [919]
One computer part is the CPU, it’s a piece of hardware the last allows your computer to access and interact all the applications and programs. The first ever CPU chip was invented around 4 decades ago. The keyboard is another computer part and it allows the user to type letters and numbers. There are about 104 keys on a keyboard and there are different parts in it. Some of the parts include, control keys, function keys, navigation keys, numeric keypad, and so on. A mouse is another device used with the keyboard to position the cursor. It’s a hand held device that detects two-dimensional motion relative to a surface. This motion is typically translated Into the motion of a pointer on a display, which allows a smooth control of the graphical user. Memory is a device to store all of your information and saved data. The motherboard is the backbone that tied together the computers components at one spot.
6 0
3 years ago
Students can use eNotes to type notes directly on screen and
zalisa [80]
A. review or print them later
6 0
4 years ago
Read 2 more answers
I NEED HELP!!! BRAINLIEST!!!
Trava [24]

Answer:

DHCP Dynamic Host Configuration Protocol:

Is a network service that automatically assigns IP addresses and other TCP/IP configuration information on network nodes configured as DHCP clients. Server allocates IP addresses to DHCP clients dynamically. Should be configured with at least one DHCP scope. Scope contains a range of IP addresses and a subnet mask, and can contain other options, such as a default gateway and Domain Name System. Scope also needs to specify the duration of the lease and usage of an IP affects after which the node needs to renew the lease with the SHCP server. Determines the duration, which can be set for a defined time period or for an unlimited length of time.

DNS Domain Name Service: Is a TCP/IP name resolution service that translates FQDNs into IP addresses. System of hierarchical databases that are stored on separate DNS servers on all networks that connect to the Internet. DNS servers store, maintains and update databases, they respond to DNS client name resolution requests to translate host names into IP addresses.

DNS Components

DNS database is divided logically into a heieratchical grouping of domains. Physically into files called zones. Zone files contain the actual IP-to-host name mapping for one or more domains. Zone files is stored on the DNS server that is responsible for resolving hot names for the domains contained in the zone. Each network node in that domain will have a host record within the domain's zone files. Includes the node's host name, FQDN, and assigned IP address.

DNS Servers

*If you are configuring static IP addresses, including the IP address of the default DNS servers as you configure each client.

*If you are using DHCP, use the DHCP scope options to specify the IP Explanation:

3 0
3 years ago
Read 2 more answers
Trying to make the baseplate red and turn off can collide then the game waits 5 seconds and turns on can collide, making the bas
kenny6666 [7]

Answer:

Explanation:

yes

but dont forget to call makeBasePlateGreen

maybe you would call it at the end of the program?

by the way you have a typo at the end

make the O lowercase

myBlasePlate.BrickColor = BrickColor.Green()

and then add this to the end

makeBasePlateGreen()

so you call the function and actually use it.

4 0
3 years ago
Define an organizational unit in your own words.
Musya8 [376]

Explanation:

An organizational unit (OU) is a subdivision within an Active Directory (hierarchical collection of network resources that can contain users, computers, printers, and other Active Directories) into which you can place users, groups, computers, and other organizational units. Each domain can implement its own organizational unit hierarchy, typically used either to differentiate between objects with the same name, or to parcel out authority to create and manage objects.

I hope you find this information useful and interesting! Good luck!

3 0
4 years ago
Other questions:
  • If you wanted to only view the sales of $200,000+ in the table above, which number filter would you select?
    7·1 answer
  • How can you best utilize CSS for Web Development?
    6·1 answer
  • In the Word 2016 window, where is the Status bar located?
    11·2 answers
  • When protecting a worksheet all cells are locked by default.?
    10·1 answer
  • What are some good websites i can use to test my knowledge?
    11·2 answers
  • An element in an array is 4 bytes long and there are 10 elements in the array. How big is the array?
    6·2 answers
  • How can a smartphone's gyroscope and accelerometer be used in product marketing? A. to locate the user's geographical position B
    5·1 answer
  • How are keyboards applied in the real world
    13·1 answer
  • Write a program using LinkedList class and ListIterator interface to demonstrate the following activities:
    6·1 answer
  • in the future, mobile technologies are expected to be used more than desktop computers today. what other improvements are helpin
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!