Answer:
Explanation:
- We declare the variable about the zoo with the owl's quantity, we could put any integer.
- We make the sum operation zooA + zooB, with the variable total_owls.
- we print the result about the two zoo.
num_owls_zooA= 3
num_owls_zooB = 4
total_owls = 0
total_owls = num_owls_zooA + num_owls_zooB
print('Number of owls:', total_owls)
Answer:
select distinct fname, lname, dname, pname, plocation
from works_on, project, employee, department
where works_on.pno = project.pnumber
and works_on.essn = employee.ssn
and project.dnum = employee.dno
and department.dnumber = employee.dno AND employee.ssn IN(
select essn
FROM works_on
GROUP BY essn
HAVING COUNT(essn)=1
)
order by lname, fname;
Explanation:
This for the algorithm of a sphere:
Define the radius of the sphere.
Define the pie and assign (22/7)
Calculate the volume of the sphere as (4/3)*pie*r3
Assign the volume of the sphere to volume_of_sphere.
Print the volume of the sphere.