Answer:
class WeatherForecast(object):
skies = ""
min = 0
max = 0
def get_skies(self):
return self.skies
def set_skies(self, value):
self.skies = value
def get_max(self):
return self.max
def set_max(self, value):
self.max = value
def get_min(self):
return self.min
def set_min(self, value):
self.min = value
def main():
obj1 = WeatherForecast()
obj1.set_skies("Skies1")
obj1.set_max(2)
obj1.set_min(0)
print("Calling get_skies(): ", obj1.get_skies())
print("Calling get_max(): ", obj1.get_max())
print("Calling get_min(): ", obj1.get_min())
main()
Explanation:
- Inside the WeatherForecast class, initialize variables for skies, minimum and maximum.
- Define the getter and setter method for the necessary variables inside the WeatherForecast class.
- Create an object of the class WeatherForecast.
- Call the getter functions of the class and display the results.
- Finally call the main function to test the program.
Answer:
num1 = int(input("Numerator: "))
num2 = int(input("Denominator: "))
if num1 < 1 or num2<1:
print("Input must be greater than 1")
else:
print("Quotient: "+str(num1//num2))
print("Remainder: "+str(num1%num2))
Explanation
The next two lines prompts the user for two numbers
<em>num1 = int(input("Numerator: "))</em>
<em>num2 = int(input("Denominator: "))</em>
The following if statement checks if one or both of the inputs is not positive
<em>if num1 < 1 or num2<1:</em>
<em> print("Input must be greater than 1")-> If yes, the print statement is executed</em>
If otherwise, the quotient and remainder is printed
<em>else:</em>
<em> print("Quotient: "+str(num1//num2))</em>
<em> print("Remainder: "+str(num1%num2))</em>
<em />
Different types of connections are..
-A network is two or more devices connected through links.
-There are two possible types of connections: point-to-point and multipoint.
-A point-to-point connection provides a dedicated link between two devices.
Explain the different types of topologies
-Star network…
In star topology each device in the network is connected to a central device called hub. Unlike Mesh topology, star topology doesn't allow direct communication.
-Ring network…
A number of repeaters are used for Ring topology with large number of nodes, because if someone wants to send some data to the last node in the ring topology
-Bus network…
In bus topology there is a main cable and all the devices are connected to this main cable through drop lines. There is a device called tap that connects the drop
-tree topology…
Tree topologies have a root node, and all other nodes are connected which form a hierarchy. So it is also known as hierarchical topology. This topology integrates
-Computer network…
Ring Topology; Star Topology; Mesh Topology; Tree Topology; Hybrid Topology; How to select a Network Topology? Types of Networking Topologies.
-Mesh networking…
Ring Topology; Star Topology; Mesh Topology; Tree Topology; Hybrid Topology; How to select a Network Topology? Types of Networking Topologies.
Different type of networks
-Computer network…
Virtual Private Network (VPN). By extending a private network across the Internet, a VPN lets its users send and receive data.
-LAN…
Using routers, LANs can connect to wide area networks (WANs, explained below) to rapidly and safely transfer data. 3. Wireless Local Area Network (WLAN).
-Wide area network…
Wide area network, or WAN. In terms of purpose, many networks can be considered general purpose, which means they are used for everything from sending files etc.
-Metropolitan area network…
MAN or Metropolitan area Network covers a larger area than that of a LAN and smaller area as compared to WAN. It connects two or more computers that are apart.
-Wireless LAN…
WLAN (Wireless Local Area Network) helps you to link single or multiple devices using wireless communication within a limited area like home, school, or office
-Wireless network…
A Wireless Local Area Network or WLAN is a network that is used to connect different devices without using wires etc.
-Storage area network…
Storage Area Network is a type of network which allows consolidated, block-level data storage. It is mainly used to make storage last longer etc.
-Personal area network…
PAN can be used for establishing communication among these personal devices for connecting to a digital network and the internet.
-Campus area network…
A Metropolitan Area Network or MAN is consisting of a computer network across an entire city, college campus, or a small region. This type of network is large.
Explain your own understand about protocol and standards
A protocol defines a set of rules used by two or more parties to interact between themselves. A standard is a formalized protocol accepted by most of the parties that implement it.
explain layers in OSI model
Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Explain layers in tcp/ip model
Four layers of TCP/IP model are 1) Application Layer 2) Transport Layer 3) Internet Layer 4) Network Interface. ... It is also known as a network layer. Transport layer builds on the network layer in order to provide data transport from a process on a source system machine to a process on a destination system.
what are the peer to peer processing
In peer-to-peer (P2P) networking, a group of computers are linked together with equal permissions and responsibilities for processing data. Unlike traditional client-server networking, no devices in a P2P network are designated solely to serve or to receive data
Answer:
Tab: Home Tab
Command Group: Paragraph
Icon: Justify Icon
<em>The icon has no name; rather it is represented by 4 horizontal lines that are aligned on both edges</em>
<em />
Explanation:
To answer this question, I'll make use of the following attachment
<em>Where</em>
<em>1- represents the home tab</em>
<em>2 - represents the paragraph</em>
<em>3 - represents the justify icon</em>
<em />
GPS stands for Global Positioning System