1. Give the output:
a=3
a=a+1
if a>5:
print(a)
else:
print(a+5)
Write a program that print the third last digit of the given number. The third last digit is being referred to the digit in the hundreds place in the given number.
For example, if the given number is 3197, the third last digit is 1.
Note 1 - The third last digit should be printed as a positive number. i.e. if the given number is -197, the third last digit is 1.
Note 2 - If the given number is a single-digit or double-digit number, then the third last digit does not exist. In such cases, the program should print -1. i.e. if the given number is 5, the third last digit should be print as
-1.
Draw a realistic but complex office network setup showing its main components and devices (firewall, routers,switches, wireless access points, PC etc). You must consider that these days many companies use cloud services,
rather than buying and maintaining their own HW servers. Implement cloud service in your diagram.
Give a detailed description of the process followed to define this realistic complex network setup.
Give an excellent summary of the network characteristics, types (e.g. LAN, WAN), and purpose (e.g., LAN, WAN, etc.), its purpose (e.g., home network,
SME network with only company devices or both company and BYOD devices, campus network,
hospital network, etc.).
Develop a C++ program to get the temperature and print the following status according to the given temperature by using else if ladder statement.
1. T<=0 "Its very very cold"
2. 0 < T <=10 "Its cold"
3. 10 < T < =20 "Its cool out"
4. 20 < T < =30 "Its warm"
5. T>30 "Its hot"
Create a class Armstrong and include startnumber and endnumber as data member and aslo include member function findArmstrongNumbers() to find all the Armstrong numbers between startnumber and endnumber. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number
Part 2
Provide your own examples of the following using Python lists. Create your own examples. Do not copy them from another source.
Provide the Python code and output for your program and all your examples.
Part 1
Write a Python program that does the following.
Describe the difference between objects and values using the terms “equivalent” and “identical”. Illustrate the difference using your own examples with Python lists and the “is” operator.
Describe the relationship between objects, references, and aliasing. Again, create your own examples with Python lists.
Finally, create your own example of a function that modifies a list passed in as an argument. Describe what your function does in terms of arguments, parameters, objects, and references.
Create your own unique examples for this assignment. Do not copy them from the textbook or any other source.
Cite a situation where you can apply the knowledge of creating crossover cable. In three to five sentences. Thank you so much!
The list of random numbers stored in an integer and float array. Perform search operation to find the search number is present or not from an array using templates concept.
* Print - Element Found or Element Not Found