Cout<<12-6/2; what is the reault
Write a GUI that generates a multiplication or division table. A multiplication or division table is a useful tool for learning simple multiplication and division sums.
Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.
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()
You must execute your script and paste the output produced into a document that you will submit along with your Python script.
It is very helpful if you print a placeholder between the printing of 9 lines and the printing of 25 lines. It will make your output easier to read for your peer assessors. A placeholder can be output such as “Printing nine lines” or “Calling clearScreen(
Discuss the following physical media characteristics:
1. Throughput (6 Marks)
2. Cost (6 Marks)
3. Noise immunity (6 Marks)
4. Size and scalability (6 Marks)
5. Connectors and media converters (6 Marks)
Models are useful because they help us to understand difficult concepts and complicated systems. When it comes to networking, there are several models that are used to explain the roles played by various technologies and how they interact. The most popular and commonly used of these models is the Open Systems Interconnection (OSI) Reference Model. Discuss the OSI model in terms of the functions of the various layers that it is made up of. Make use of a diagram to explain the various layers.
Call the functions in main.
Using dynamic array implement the following :
1. Create the list. The list is initialized to an empty state.
2. Determine whether the list is empty.
3. Determine whether the list is full.
4. Find the size of the list.
5. Destroy, or clear, the list.
6. Determine whether an item is the same as a given list element.
7. Insert an item in the list at the specified location.
Ask the user for a random number and assign the value to a variable named starting. Then using a for loop and write a program that asks the user for input of 5 numbers. Each of these numbers must be added to the initial value of the variable starting. The output must be the initial and final value of the variable starting. Please name the program and provide at least one code comment.
What is the datatype of the length, width, area and perimeter above?
Hint: Use Python's type(var_1) to find out.
Divide any of the variables above by any number (except 0 !), assign it to variable. What is the datatype of the resulting variable?
What did you find out?
The length of rectangle is given as 10, its width is given as 20. Calculate its area and perimeter.
Hint
So your output should look like this: "The rectangle whose length is 10 and width 20 has the area 200 and perimeter 60."
Print a sentence joining the fruit and ripeness variable. Print any sentence that uses this variables (fruit and ripeness)
For example: "That lemon is rotten" or The avocado is ready to eat
Implement this exercise using the .format() method