Solution:
#include <iostream> using namespace std; class Franchise{ string name; string city; public: Franchise(){ name= ""; city=""; } void setname(string n){ name= n; } void setcity(string c){ city=c; } string getfname(){ return name; } string getfcity(){ return city; } }; class League{ private: string name; string year; string country; Franchise franchiseObject; public: League(string fname,string fcity,string n,string y,string c){ franchiseObject.setname(fname); franchiseObject.setcity(fcity); name=n; year=y; country=c; } void displayInfo(){ cout << "League name : " << name<<endl; cout << "League year : " << year<<endl; cout << "League country : " << country<<endl; cout << "Franchise name : " << franchiseObject.getfname()<<endl; cout << "Franchise city : " << franchiseObject.getfcity()<<endl; } }; int main() { League lg("Islamabad United","Islamabad","PSL","2020","PAKISTAN"); lg.displayInfo(); return 0; }CS610 Assignment 3 solution and discussion
-
Assignment No. 03
Semester: Fall 2019
CS610 –Computer Networks Total Marks: 20Due Date: Jan 20, 2020
Assignment Objective:
To enhance the capabilities of students about:
• IP subnetting.
• Distribution of IP Address.Uploading Instructions:
• Your assignment must be in .doc or .docx format. Any other formats like scan images, PDF, bmp,etc. will not be accepted.
• Save your assignment with your ID (e.g. BC020200786.doc).
• No assignment will be accepted through email before or after the deadline.Rules for Marking:
It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The submitted assignment does not open or file is corrupted.
• Your assignment is copied from a web source, handouts or from any other student (Strict disciplinary action will be taken in this case).Assignment
Question # 1 [Marks: 12]
Suppose an organization has been assigned an IP address 172.30.80.0. The organization has 4 different departments (Support, HR, Academics and Admin) with 32, 46, 50 and 60 users respectively. The network administrator of the organization wants to create a separate subnet for each department. Considering the given scenario, answer the following questions.
- What will be the subnet address and broadcast address for each subnet?
- What will be the range of host addresses for each subnet?
- Support department is temporarily dissolved but IP addresses are reserved. So, in final answer you must show the Subnet address, Range of host addresses and broadcast address of HR, Academics and Admin.
You should provide your answer in the following format:
Subnet Subnet Address Range of host addresses Broadcast Address HR Academics Admin Question # 2 [Marks: 8]
What will be the Network address with respect to each of the following IP and corresponding subnet masks?
IP Address Subnet Mask Network Address 192.168.40.41 255.255.255.252 172.80.32.29 255.255.255.128 126.100.31.127 255.255.224.0 10.10.10.10 255.252.0.0 Good Luck!
Deadline: Your assignment must be uploaded/submitted on or before 16th Jan 2020. -
Q.1
Q.2 -


100% Off on Your FEE Join US! Ask Me How?


