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
Brums [2.3K]
3 years ago
12

Given two variables , first_place_winner and second_place_winner, write some code that swaps their associated values. use any ad

ditional variables as necessary.
Computers and Technology
1 answer:
otez555 [7]3 years ago
4 0

Int a, b;

a=20

b=40

a=a+b

b=a-b

a=a-b

You might be interested in
The address of the last cell of a memory RAM is 3FFFFh.a total capacity of the main memory and 4M bits and the data bus can tran
marysya [2.9K]

Hey there!:

Given the address of the last cell of a memory RAM is 3FFFFh then   :

There are 8 bits in a byte  

1024 bytes in a kilobyte  

 so 8*1024= 8192  

 so 8192 bits in a kb  

 32*8192 = 262144  

there are 262144 bits in 32KB .

a) 32 bit address registers must match 2^32 byte = 4 GB of physical memory.

However, with 32 Bit you can also address more than 4 GB, like Physical Address Extension (PAE) does.

The other way is that you can access 4 GB with less than 32 bit address register.

____________________________________________________

b) Main Memory = 4M × 32Kbits, RAM chips = 32K × 4bit.

For this memory we require 4 × 2 = 8 RAM chips.

Each chip requires 18 address bits (ie. 218 = 256K).

And 1M × 8 bits requires 20 address bits (ie. 220 = 1M )

_____________________________________________________

c) The size of the storage cells is known as the word size for the computer.

In some computers, the word size is one byte while in other computers the word size is two, four, or even eight bytes. In our 4M main memory the size of cell is 4*2^20 bytes.

Each storage cell in main memory has a particular address which the computer can use for storing or retrieving data.  

______________________________________________________

d) The size of MBR is the 4M bits of main memory.

_____________________________________________________

Hope this helps!

6 0
3 years ago
Grace would like to calculate a field in a Word table and add up values from a list of regional sales data.
goblinko [34]

Answer:

she should use sum

Explanation:

cuz sum is the best

3 0
3 years ago
Write a function add_spaces(s) that takes an arbitrary string s as input and uses recursion to form and return the string formed
kvasek [131]

Answer:

The solution code is written in Python:

  1. def add_spaces(s):
  2.    if len(s) < 2:
  3.        return s  
  4.    else:
  5.        return s[0] + " " + add_spaces( s[1 : ] )

Explanation:

Recursive function is a function that will call itself within the same function.

Let create a function named add_spaces() that take one input string, s (Line 1).

Next, create an if condition to check if the length of the input string is less than 2 (this means if the string has only one character), return the current string (Line 2-3).

Otherwise, it should return the first character of string, s[0] concatenated with a single space " " and concatenated again with the return output from the recursive calling add_spaces() that take s[1: ] as input parameter (Line 4-5). Please note s[1: ] is an expression we get the substring of the current string from position 1 till the end of string.

5 0
3 years ago
Read 2 more answers
What technology was implemented on apple computer printer ports to facilitate file and printer sharing?
Shtirlitz [24]

A technology which was implemented on Apple computer printer ports to facilitate file and printer sharing is LocalTalk.

<h3>What is a printer?</h3>

A printer can be defined as an electronic output (peripheral) device that is designed and developed for printing paper documents containing texts or images on a computer system.

On Apple computer printer ports, a technology which was implemented to facilitate file and printer sharing is LocalTalk, which is typically implemented based on the physical layer of the AppleTalk networking system.

In this context, we can infer and logically deduce that a technology which was implemented on Apple computer printer ports to facilitate file and printer sharing is LocalTalk.

Read more on printer here: brainly.com/question/17100575

#SPJ1

4 0
1 year ago
In what scenario should dhcp servers also be active dhcp clients?
mrs_skeptik [129]
DHCP stands for Dynamic Host Configuration Protocol. It is protocol responsible for c<span>onfiguring the IP address and other TCP/IP settings on network computers. </span>There is no scenario in which DHCP servers also be active DHCP clients. They should never be both a DHCP server and DHCP client. The two sides (client and server) should be always separated.
4 0
3 years ago
Other questions:
  • 6 external computer parts that are input
    6·1 answer
  • Given the integer variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another integer va
    7·1 answer
  • Dany needs to fact check notes she took on 19th
    13·1 answer
  • Given that note, write a program which tells us the major scale starting at that note, using the pattern above. In the main bloc
    6·1 answer
  • What is the function of the following shape? display result to user get input from user make a decision process information
    7·1 answer
  • Visual Design includes 4 elements: shapes, texture, lines and form.
    6·1 answer
  • Which entry by the user will cause the program to halt with an error statement?
    12·2 answers
  • Examples of hybrid computer​
    9·2 answers
  • Using robots to replace workers in factories is an example of which of the following forms of information processing systems? a.
    5·1 answer
  • Sequence structure is when have a repetition of instructions. true false
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!