Preferred utilities, frameworks:
- laravel 8
- isc-dhcp-server
- bind9
- hostapd
- apache
- mysql
- expressjs
- tailwindcss
- ubuntu server
Sample scenarios:
1. Client 1 connect to Open WiFi in the public name “Affordable WiFi” using smart phone.
2. Then he open the browser, visit youtube and a captive portal appeared.
3. Captive portal shows some options like:
1. 1 USD = 15 minutes of internet access
2. 2 USD = 40 minutes of internet access
4. Client 1 tap the first option (1 USD = 15 minutes of internet access)
5. Admin 1 will receive the request and saw the option Client 1 chose
6. Admin 1 will wait for Client 1 to pay 1 USD
7. Once Admin 1 received 1 USD physically over the counter, Admin 1 will tap allow on his
smart phone
8. Client 1 will try again to visit youtube and is successful in doing so
9. 15 minutes had passed and then Client 1 was redirected again to the captive portal
Tabulate a Distance Vector Routing Table with the following headings; Destination, Route, Least Cost and Next Hop using the table below.
Destination
Route
Least Cost
Next Hop
Customer 1
Customer 2
Customer 3
Customer 4
Customer 5
Customer 7
Customer 8
Customer 9
Customer 10
Below is a nested MPLS network by MTN. With the assumption that Customer 6 (C6) is connected to Router 6 (R6), execute a Dijkstra Algorithm on a Link State routing to determine the shortest path for Customer 6 to transmit packets to every other Customer/Destination connected to the rest of the Routers on the network.
a. Tabulate the executed iteration for the Dijkstra Algorithm using the table below.
#loop through displayList
for i in range(0,len(displayList)):
#Test if the fist item in the current sub-list contains the text "Price Level
#Tip: Remeber that each sub-list is a (displayList). So you have
# to access its items via displayList followed by TWO indexes.
if i[0] == 'priceLevel':
#Extract the second item from the current sub-list into variable called priceLevel
priceLevel = i[1]
#Test if priceLevel is between pPrice and cPrice OR
#priceLevel == pPrice OR
# priceLevel == cPrice
if priceLevel >= self.__previousPrice and priceLevel <= self.__currentPrice or priceLevel == self.__previousPrice or priceLevel == self.__currentPrice:
#Sound the alarm. Pass in the frequency and duration.
if self.__currentPrice > self.__previousPrice:
frequency = 800
duration = 700
else:
frequency = 400
duration = 700
winsound.Beep(frequency, duration)
#Print the text 'Alarm' with a green background color, so that the user
#can go back and check when the alarm was sounded.
print(Back.GREEN + "Alarm" + Style.RESET_ALL)define a class length with feet (int type )and (float type) data members.define do-nothing constructor
1. Define abstract class Shape with only one virtual method CalculateSurface() and fields width and height. Define two new classes Triangle and Rectangle that implement the virtual method and return the surface of the figure (height*width for rectangle and height*width/2 for triangle). Define class Circle and suitable constructor so that on initialization height must be kept equal to width and implement the CalculateSurface() method. Write a program that tests the behavior of the CalculateSurface() method for different shapes (Circle, Rectangle, Triangle) stored in an array.
Create a C++ Program that will identify the Discount Rate of a shopper based on issued loyalty card, take the following conditions:
Loyalty Card TypeDiscount (%)(1) Frequent Buyer10%(2) One Time Buyer0%(3) Senior Citizen15%
This should be the outcome if ever we run the program
Example:
Total Purchase Cost: Php 3000.00
Loyalty Card Type: 1
Discounted Cost: Php 2700.00
An ecommerce company plans to given their customer special discount .sum of all prime digits of total bill
Explain the following variables with example
1, static variable
2, object variable
3, instance variable