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
schepotkina [342]
3 years ago
5

Write a program to find the sum of given series: (a) S = 1 + (1/2) + (1/3) + ...... + (1/20)

Computers and Technology
1 answer:
Snowcat [4.5K]3 years ago
3 0

total = 0

numerator = 1

denominator = 1

while denominator != 20:

   total += numerator/denominator

   denominator+=1

print(total)

I wrote my code in python 3.8. I hope this helps.

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
When the atmosphere has too much carbon dioxide in it, the oceans absorb some of it to achieve a new balance. This is an example
horsena [70]
The answer is B. 
A geochemical cycle. 
8 0
4 years ago
Read 2 more answers
1.What is aperture priority mode? When might you use this mode on a camera?
miss Akunina [59]

The answers are too long. I have compiled them in Word and attached them below.

Download docx
8 0
3 years ago
Which line of code will only allow a non-decimal point to be stored in a variable? candyCost = float(input("How much is the cand
ad-work [718]

Answer:

candyCost = int(input("How much is the candy?"))

Explanation:

candyCost = input("How much is the candy?") → By default, this how you get input and store the value. And it is stored as a string

candyCost = str(input("How much is the candy?")) → This also gives you a string to store

candyCost = float(input("How much is the candy?")) → This gives you a float number, decimal number, to store

candyCost = int(input("How much is the candy?")) → This gives you an integer number, a non-decimal

4 0
3 years ago
Read 2 more answers
Why is transmitting information through computers cheap and fast
Novay_Z [31]

<em>Hey there!</em>

Just to be corny, what does a spider use to navigate the internet? <em>The World Wide Web!  </em>Did you catch that? Hopefully you did...

Anyway, enough with my jokes, here's your answer.

Transmitting information through computers are cheap and fast because of multiple things. The first reason is because they don't require a deliverer or shipping. They can literally be sent from anywhere and be delivered within 10 seconds-5 minutes, way faster than any mailman or delivery. How does it move that fast? Smaller files tend to move quicker among the invisible online delivery lines, most commonly known as cell towers. To get online info from your phone/computer to someone else's device, the file bounces from tower to tower to finally reach the destination.

<em>I'm always open to any question or comment!</em>

<em>God Bless!</em>

<em>-X8lue83rryX</em>

5 0
3 years ago
Other questions:
  • Type the correct answer in the box. Spell all words correctly.
    9·1 answer
  • List five types of system information that can be obtained from the windows task manager. how can you use this information to co
    5·1 answer
  • To edit the text in a SmartArt graphic, what must be done first?
    5·1 answer
  • If a = 3 and b = a+3 find value of b.
    14·2 answers
  • What cable should i be using to connect my android tablet to the pc?
    13·2 answers
  • Please fill these out. I really need this done.
    5·1 answer
  • Desirable workplace habits and skills include:
    14·1 answer
  • If anyone has the answer for this that would be really helpful!!
    8·2 answers
  • Hlo plss help.<br>.....,, ​
    7·2 answers
  • Which of the following describes all illustrations created by freehand?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!