Answer:
// program in Python.
#library
import math
#function to find surface area of sphere
def surf_area_sphere(rad):
# calculate area and return it
return 4*math.pi*rad**2
#read the radius of sphere
rad=float(input("Enter the radius of sphere:"))
#call the function to find the Surface area
s_area=surf_area_sphere(rad)
#print the Surface area
print("Surface area is:",s_area)
Explanation:
Read the radius of sphere from user and assign it to variable "rad".Then call the function surf_area_sphere() with parameter "rad".This function will calculate the surface area as "4*pi*r*r" and return it value.Then print the surface area of sphere.
Output:
Enter the radius of sphere:4
Surface area is: 201.06192982974676
Answer:
Linker
Explanation:
Computer Software development follows the following stages
Source Code - Compiler - (Compiled Source code + imported Libraries) Linker -Loader - Execution.
- Source code is written by the programmer in a high level language like Java.
- Next it is compiled by the compiler that checks the correctness and translates the source code to machine code. This is called the object code
- Then a linker is used to combine the object code with pre-written libraries of code that are imported.
- Next the Loader loads the executable code into main memory for execution
- Finally, execution takes place
Answer:
The number of invoices for each vendor that have a larger balance due than the average balance due for all invoices.
Explanation:
This part of the code below
WHERE InvoiceTotal - PaymentTotal - CreditTotal >
(SELECT AVG (InvoiceTotal - PaymentTotal- CreditTotal)
FROM Invoices)
gives the condition to pick the invoices with balance that are greater than the average balance for all invoice.
This part of the code below
GROUP BY VendorName
ORDER BY BalanceDue DESC;
then enables the program to group the result of the above condition by VendorName and sort the resulting rows in the order of BalanceDue. You will therefore, obtain for each row in the NumberOfInvoices column, the number of invoices for each vendor that have a larger balance due than the average balance due for all invoices.
Answer:
The Internet
Explanation:
Why? The internet has done twice if not thrice what the printing press has done. The printing press allowed for dissemination of information and knowledge to the population through its mechanical movable printing capability and speed of book publishing. However its reach was highly limited by the physical attributes of the machines and having to transfer books and papers in spreading them to certain destinations. This limitation has been eliminated by the internet as one is able to receive a book written today in seconds and not physically but through electronic means. In other words, information need not be transferred physically, also accessbility and cost of getting information has been highly improved with the internet.
"<em>A digital pen or smart pen is an input device which captures the handwriting or brush strokes of a user and converts handwritten analog information created using "pen and paper" into digital data, enabling the data to be utilized in various applications.</em>" According to Wikipedia