Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.
Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function.
The function three_lines and new_line are defined below so that you can see nested function calls. Also, to make counting “blank” lines visually easier, the print command inside new_line will print a dot at the beginning of the line:
def new_line():
print('.')
def three_lines():
new_line()
new_line()
new_line()
The surface of the Sun has a temperature of about 5800 K. The radius of the Sun is 6.96 x 108 m. Calculate the total energy radiated by the Sun each second. Assume the emissivity of the Sun is 0.965
1)List which disease each bacteria are capable of causing.
2) explain three(3) ways bacteria will grow.
3) list four different types of hepatitis and note if each is airborne,blood borne or fecal/oral.
Take input of your registration number in the University using appropriate data type. Write a
programme to print all the prime number digits, each in a new line, in your registration
number
Input numbers from the user and find the product of all those input numbers until the user
inputs a negative number. In other means, the loop should end when the user enters a
negative number. Finally, display the product of all those positive numbers entered by the
user
What is transport number of an iron. How it is related to ionic mobility. Explain hittor'f method for determing transport number of an iron.
1. Use SQL commands to perform following operations: a. Display a list of available databases b. Create the database (choose any appropriate name in the format c. Select your database d. Create a table: i. Create a relation with the name DEPARTMENT ii. It has four attributes namely Dept_id, Dept_name, Building, and Budget iii. Dept_id is an integer, Dept_name is a character string of maximum length 20, Building is a character string of maximum length 15, and Budget is a number with 12 digits in total, 2 of which are after the decimal point iv. The create table command should also specify Dept_name attribute as not null and set a default value for Building to ‘A’ e. Drop the table DEPARTMENT f. Add attribute Phone to DEPARTMENT relation using Alter command g. Drop attribute Budget from a relation DEPARTMENT by using Alter command h. Modify datatype of Dept_id to varchar(25) using Alter command 2. Put all your output screenshots along with SQL commands in a single PDF file and upload in Moodle
Find the price for good Z and the quantity supply for good X (show all the calculations) if:
(i) The elasticity of supply is equal to 1 and the price increases from $40 to $50.
(ii) If the elasticity of demand is 0.5 and the quantity demanded decreases from 95.000 to 85.000.
(iii) Draw the graph and indicate the equilibrium price and quantity.
Price Per Tonne ($) Quantity Demanded Quantity Supplied
40 150 80
50 120 X
60 110 110
80 95 115
Z 85 120
110 80 140
Explain each breakdown please and watch out as some of the numbers have decimals. Thank you for the help in advance
If you are in motion with an acceleration of 2 m/s2, this means that
a. your speed increases 2 m/s every second
b. your displacement increases by 2 m every second
c. your distance increases by 2 m every second
d. your acceleration increases 2 m/s every second
A company imports a product from China at a cost of $50 per unit. The product is imported with an import tariff of 20% and it is sold for $100 per unit. The total sales revenues for the company were 85.000. If the government increases the import tariff per unit of the product to 30% and the elasticity of demand is 3 find the following:
(i) How many units of this product the company will sale if the price rises the same amount with the import tariff (20 Marks)
(ii) Calculate if the revenues of the company will increase or decrease with the increase of import tariff (20 Marks)
Explain each breakdown, please the total revenues that have 85.000 there is a decimal.