Answer:
In Python:
def print_volume (r):
volume = 4/3 * 3.142*r**3
print(volume)
print_volume(7)
print_volume(14)
print_volume(22)
Explanation:
This defines the function and takes radius r as the parameter
def print_volume (r):
This calculates the volume
volume = 4/3 * 3.142*r**3
This prints the volume
print(volume)
The next three lines call the function with different values
<em>print_volume(7)</em>
<em>print_volume(14)</em>
<em>print_volume(22)</em>
Answer:
The correct option of the following question is the Java applets may be contained in the files with .class extension.
Explanation:
JAVA is the Programming Language that can used to create the complete applications which may be run on the single computer or can be distributed among the servers and the clients in the network.
An applet is Internet-based programs that are written in the Java programming language, which is the programming language for Web and it can be downloaded by any of the computers. An applet is also run in the HTML. It is usually embedded in the HTML page on the Website and it can be executed from the browser.
Answer:
Allowing humans to talk to the computer
Explanation:
the operating system manages the computer hardware and software
and it also allows the ALU to perform quick calculations
Answer:
def future_worth(p,i,n):
print("n \t F")
for num in range(1, n+1):
F = round(p * ((1 + i)** num), 2)
print(f"{num}\t{F}")
future_worth(100000, .05, 10)
Explanation:
The "future_worth" function of the python program accepts three arguments namely the P (amount invested), i (the interest rate), and n (the number of years). The program runs a loop to print the rate of increase of the amount invested in n number of years.