Skip to content
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    5 Posts
    3k Views
    zaasmiZ
    @zaasmi said in CS411 Assignment 1 Solution and Discussion: [image: 6jL61Vy.png] Visual Programming (CS411) Assignment # 01 Total marks = 20 Deadline Date: 9th December, 2021 Please carefully read the following instructions before attempting assignment. RULES FOR MARKING It should be clear that your assignment would not get any credit if: • The assignment is submitted after the due date. • The submitted assignment does not open or file is corrupt. • Strict action will be taken if submitted solution is copied from any other student or from the internet. Lectures: • Lectures 1 to 6 are covered in this assignment NOTE No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date. If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard. For any query, feel free to email at: cs411@vu.edu.pk (Marks 20) Problem Statement: You are required to create a C# Console application using Visual Studio. Your code should be able to calculate price for sacrificial animals that can be goat, sheep and camel separately while using the concept of POLYMORPHISM. • Your code should work in such a way that you need to create 3 classes, one parent class i.e. Animal and other three derived classes that will be goat, sheep and camel. • The function that needs to be override would be of Price Calculation. • So, your code should work in such a way that at first you should enter the last NUMERIC character of your vu id as a number of animals you want to buy. (Note: You should also check if the last numeric character of your vu id is zero then your code should increment it with 1 so in any case your code should atleast buy one animal). After that, you should be asked for the first five numeric characters of your VUID which will be later used as a rent. Rent will be included in the price of animal that we will hard code. • Now you need to make a menu/options as shown in the screenshot below, which will ask you if you want to calculate price for the sheep then press 1, if you want to calculate price for goat press 2, if you want to calculate price for camel then press 3, OR if you want to quit simply press 0 (Note: Your Loop should break when user presses 0) • Your loop should run exactly the same number of times as you have entered for the number of animals you want to buy i.e. last numeric character of your vu id. • You can use hard-coded values for the price of sheep, goat and camel like 50,000, 80,000, 100,000 respectively. • Formula to calculate price is: Total Price = rent+price (according to the animal selected) • Your output should be exactly same as shown in the screenshot below. Required Output: [image: J89AktO.png] Note: DO REMEMBER that you must use your VUID as an input in this program. Submission details Following Files Must be submitted in a single zip or rar file. • .cs code file (file name should be your VUID) • Screenshot of your output. You are not required to submit the complete project, only copy required file from project folder. If you do not submit any of the above-mentioned file you will be awarded Marks partially. “The End” https://www.youtube.com/watch?v=3JFMvIzs8IM
  • 0 Votes
    3 Posts
    885 Views
    zaasmiZ
    @moaaz said in CS312 Assignment 1 Solution and Discussion: 2 - Functional Requirements (at least 5) [10 Marks] Solution: Task 2: Functional Requirements Admin / Owner login The admin or owner will login himself by using associated id and password. While owner would act like super Admin. Tour guide’s registration Only admin will be authorized to register the guide of the tour in the system. He will have to authenticate the detail of the tour guide in the system. Traveler/customer registration and login Traveler must register himself before booking any tour. After registration traveler would be able to login to the system and can book the desired tour plan and seats. Tour guide’s login After registration of guide, the guide will be login to the system with provided login details and wait for a tour to be assigned y Admin / owner. Create and store sites with or without activities Only admin will also create and store sites that would have activities not have activities. Create and store tours and allot a tour guide to a tour Admin will create and store the tour details and also allocate a guide for each tour. Each activity must have a name, duration and number of participants in that activity. Manage each tour seats reservations Admin has the responsibility to make sure that seats for each tour are properly filled. More than available seats for each tour can’t be booked. Travelers can view the plans for each tour Travelers or customer will be able to view the plans for each tour. They will be able to view the complete detail of each tour. Payments methods Payments for tour will be done online using Credit / Debit card. Visitor / traveler is not allowed by system to book two different tours which start, or end dates are overlapped. Visitor / traveler may apply for cancelation of tour plan to request system admin Traveler would have the opportunity to cancel the booking request for the tour. For this purpose, visitors are required to request admin for the cancelation if the cancelation requirements meet i.e. cancel tour at least one week before its start date. Otherwise he will not be able to cancel the request and claim amount would not be refunded. Admin would only allow to cancel that tour reservation that must be applied before one week of tour’s start date. Admin / Owner Admin is not authorized to supersede Owner’s decision / edit or delete or even update owner’s tour. While Owner can edit / change / delete admin’s entered information.
  • 0 Votes
    4 Posts
    1k Views
    cyberianC
    @Zara-Rana-Ilyas No its sample code not Solution
  • 0 Votes
    4 Posts
    2k Views
    cyberianC
    #include <iostream> #include <stdlib.h> using namespace std; main() { int choice = 0, salary = 0; float increment = 0.0, tax = 0.0, newsal = 0.0; cout<<"\n ********* SALARY CALCULATOR *********\n"<<endl; cout<<" *************************************\n"<<endl; cout<<" ********* Enter 1 for SPS6 *********\n"<<endl; cout<<" ********* Enter 2 for SPS7 *********\n"<<endl; cout<<" ********* Enter 3 for SPS8 *********\n"<<endl; cout<<" ********* Enter 4 for SPS9 *********\n"<<endl; cout<<" Select a pay scale from the menu: "; cin>>choice; switch(choice){ case 1: salary = 40000; increment = salary * 20/100; newsal = salary + increment; tax = newsal * 3/100; break; case 2: salary = 60000; increment = salary * 15/100; newsal = salary + increment; tax = newsal * 3/100; break; case 3: salary = 80000; increment = salary * 10/100; newsal = salary + increment; tax = newsal * 3/100; break; case 4: salary = 100000; increment = salary * 5/100; newsal = salary + increment; tax = newsal * 3/100; break; default: cout<<" Selected choice is invalid."<<endl<<endl; } if(choice >= 1 && choice <=4) { cout<<" Initial Salary: "<<salary<<endl; cout<<" Incremented Amount: "<<increment<<endl; cout<<" Increased Salary: "<<newsal<<endl; cout<<" Tax Deduction: "<<tax<<endl; cout<<" Net Salary: "<<newsal-tax<<endl<<endl; } system("pause"); }
  • 0 Votes
    2 Posts
    1k Views
    cyberianC
    Task: You have to write the HTML code to show the output as following screenshot. You have to write your own VU Id, Name; Father Name should be in text boxes. All the values in the table should be center aligned. https://youtu.be/q-COnYfOu0U <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <center> <!-- <center> --> <p align="right" ><img src="logo.png" alt=""></p> <!-- <img align="right" src="logo.png" alt=""> --> <form action="#" method="post"> <p >VU ID: <input type="text" name="vid" id="vid" value ="BC123456"> <span style="color: red;" >* BC123456</span> </p> <p>Name: <input type="text" name="sname" id="sname" value ="Aamir Latif"><span style="color: red;" >* Aamir Latif</span></p> <p>Father Name: <input type="text" name="fname" id="fname" value ="Muhammad Latif" ><span style="color: red;" >* Muhammad Latif</span></p> <table border="1" width="30%"> <tr> <th>Semester</th> <th>Degree</th> <th>Subject</th> <th>Grade</th> </tr> <tr style="text-align:center" > <td>Spring 2020</td> <td>BSCS</td> <td>IT430</td> <td>A</td> </tr> </table> </form> </center> </body> </html> [image: 25f5SIX.png]
  • 0 Votes
    1 Posts
    354 Views
    No one has replied
  • 0 Votes
    2 Posts
    464 Views
    zaasmiZ
    Q.1 Solution: Name Description Planning Fundamental management function, which involves deciding beforehand, what is to be done. Origination Process of identifying and grouping work to be performed, defining and delegating responsibilities for the purpose of enabling people to work. Staffing Select right people for the right job. Misfit people should not be inducted. Directing Output are versatile in nature. So kind of directions, guidance and training required. Monitoring Ensuring that activities are going according to the plan, within the budget limit and according to the specification. Controlling Taking appropriate measures to remove all the obstacles which are effecting the pace and progress of the project. Innovations Introducing new ideas and apply new technology. Representation Who so over are the users? What you have developed, product or facility. Make sure that is as per the requirements. Q. 2 Solution: Execution Process Group Planning Process Group Monitoring Process Group Initiating Process Group Name of Process Group Description Execution Process Group Define process groups and established authority. Who is made responsible and authorized to start the project activity. Initiating Process Group Define objectives and plans. Realize that objectives are realistic and achievable. Any value added and ease for the user and organization. Planning Process Group All the inputs, equipment, machinery and instruction set all these things to be assembled. Monitoring Process Group A process should deduct and identify the obstacles and provide best alternatives.
  • 0 Votes
    3 Posts
    772 Views
    M
    this one solution made for Windows User and anyone can help to build the same solution as mac user?
  • 0 Votes
    1 Posts
    319 Views
    No one has replied
  • 0 Votes
    1 Posts
    488 Views
    No one has replied
  • 0 Votes
    10 Posts
    3k Views
    cyberianC
    https://www.youtube.com/watch?v=iy0OGo8l4sM
  • 0 Votes
    13 Posts
    3k Views
    zaasmiZ
    @moaaz said in CS407 Assignment 1 Solution and Discussion: What access mode of command line interface will be more suitable to perform remote configurations on the router in secure manners? Network infrastructure devices often provide a range of different access mechanisms, including console and asynchronous connections, as well as remote access based on protocols such as Telnet, rlogin, HTTP, and SSH. Some mechanisms are typically enabled by default with minimal security associated with them; for example, Cisco IOS software-based platforms are shipped with console and modem access enabled by default. For this reason, each infrastructure device should be carefully reviewed and configured to ensure only supported access mechanisms are enabled and that they are properly secured. The key steps to securing both interactive and management access to an infrastructure device are: • Restrict Device Accessibility Limit the accessible ports, restrict the permitted communicators and restrict the permitted methods of access. • Present Legal Notification Display legal notice, developed in conjunction with company legal counsel, for interactive sessions. • Authenticate Access Ensure access is only granted to authenticated users, groups, and services. • Authorize Actions Restrict the actions and views permitted by any particular user, group, or service. • Ensure the Confidentiality of Data Protect locally stored sensitive data from viewing and copying. Consider the vulnerability of data in transit over a communication channel to sniffing, session hijacking and man-in-the-middle (MITM) attacks. • Log and Account for all Access Record who accessed the device, what occurred, and when for auditing purposes.
  • 0 Votes
    1 Posts
    530 Views
    No one has replied
  • 0 Votes
    2 Posts
    555 Views
    zaasmiZ
    @moaaz said in CS314 Assignment 1 Solution and Discussion: The complete channel bandwidth. Bandwidth is a fixed quantity, so it cannot be changed. Hence, the channel capacity is directly proportional to the power of the signal, as SNR = (Power of signal) / (power of noise). so for example a signal-to-noise ratio of 1000 is commonly expressed as: 10 * log10(1000) = 30 dB. Capacity = bandwidth * log2(1 + SNR) Output1 : C = 30000 * log2(1 + SNR) = 30000 * 11.62 = 348600 bps
  • 0 Votes
    3 Posts
    1k Views
    M
    @moaaz said in CS206 Assignment 1 Solution and Discussion: ask 1: Let’s assume that the network has just been powered on and there hasn’t been any flow of traffic occurred over the network yet. a) What might be in the MAC address table of the switch? b) If PC-1 sends a packet to PC-4, what action(s) will be performed by the switch? Solution: Solution: a) As the network is just switched on, so is the switch. Therefore, there will be no entry in the Address table (forwarding table) of the switch. b) Switch will perform two operations. First it will check its MAC address table which is empty, and it will populate its address table with the MAC entry of the incoming packet. Secondly, it will repeat the incoming packet on all its ports other than the source port. Task 2: Now assume that some data transfer has been occurred between the following devices: i. PC-1 and PC-4 ii. PC-7 and PC-5 iii. PC-3 and Server iv. PC-5 and PC-8 What might be in the forwarding table of the switch? Give your answer in the >following format: Solution: MAC Address Port Number 0200.1111.1111 Fa0/1 0200.1111.4444 Fa0/4 0200.1111.7777 Fa0/7 0200.1111.5555 Fa0/5 0200.1111.3333 Fa0/3 0100.1111.1111 Fa0/9 0200.1111.8888 Fa0/8 Task 3: Let’s assume that PC-1, PC-2, PC-3 and PC-4 belong to accounts department and PC-5, PC-6, PC-7 and PC-8 belong to admin department of an organization. Both departments have some concerns regarding security of their relevant departmental data, and they want to restrict unnecessary transfer of irrelevant traffic from each other. What approach can be implemented at the switch level to separate out network traffic of both the departments without changing the physical network configuration? Solution: Both networks can be separated out by creating two VLANs on the switch and registering appropriate interfaces on the VLANs. This network behaves just like it would with the two physical switches. Switch does learn all the MAC addresses, but the switch does not forward broadcasts or unicasts from one VLAN to the other. It keeps a separate address table for each VLAN. This way both departments will be separated out.
How to Build a $1,000/Month PAK VS BAN Live Live Cricket Streaming
File Sharing

0

Online

3.0k

Users

2.8k

Topics

8.2k

Posts
| |