Skip to content
  • 0 Votes
    2 Posts
    785 Views
    zareenZ
    Q. 1 Solution: [image: goNZlUs.png] Q. 2 Solution: [image: 7jQ4AjB.png] Q. 3 Solution: [image: RzBuWx2.png]
  • 0 Votes
    4 Posts
    1k Views
    zareenZ
    @zareen said in CS625 Assignment 2 Solution and Discussion: c) Can we protect an idea using Intellectual Property Rights? Justify your answer with valid reasoning. [image: hl7GTWU.png]
  • 0 Votes
    8 Posts
    2k Views
    zareenZ
    @zareen said in CS605 Assignment 2 Solution and Discussion: You have to write 5 functional requirements each for any two of the departments (out of four) of your choice, that must be fulfilled during the software development. [5+5 marks] There are four main activities in the requirements engineering process: Feasibility study: An estimate is made of whether the identified user needs may besatisfied using current software and hardware technologies. The study considers whether the proposed system will be cost-effective from a business point of view and if it can be developed within existing budgetary constraints. A feasibility study should be relatively cheap and quick. The result should inform the decision of whether or not to go ahead with a more The requirements engineering process detailed analysis (feasibility report). Requirements elicitation and analysis: This is the process of deriving the system requirements through observation of existing systems, discussions with potential users and buyer, task analysis. This may involve the development of one or more system models and prototypes. These help the system developer understand the system to be specified. Requirements specification: Requirements specification is the activity of translating the information gathered during the analysis activity into a document that defines a set of requirements. Two types of requirements may be included in this document. User requirements are abstract statements of the system requirements for the customer and end-user of the system; System requirements are a more detailed description of the functionality to be provided. Requirements validation: This activity checks the requirements for realism, consistency, and completeness. During this process, errors in the requirements document are inevitably discovered. It must then be modified to correct these problems.Of course, the activities in the requirements process are not simply carried out in a strict sequence. Requirements analysis continues during definition and specification and new requirements come to light throughout the process. Therefore, the activities of analysis, definition, and specification are interleaved. In agile methods,such as Extreme Programming, requirements are developed incrementally according to user priorities and the elicitation of requirements comes from users who are part of the development team.
  • 0 Votes
    1 Posts
    405 Views
    No one has replied
  • 0 Votes
    1 Posts
    483 Views
    No one has replied
  • 0 Votes
    2 Posts
    568 Views
    zareenZ
    @zareen said in CS406 Assignment 2 Solution and Discussion: Write a program in PHP using for loop and embed it in HTML. https://www.youtube.com/watch?v=Zhy7UHUwBKE
  • 0 Votes
    2 Posts
    1k Views
    zareenZ
    Q.1 Solution: [image: zzGPGn7.png][image: T6FX2Tw.png] Q.2 Solution: [image: b1LBlJY.png]
  • 0 Votes
    4 Posts
    1k Views
    zareenZ
    @zareen said in CS703 Assignment 2 Solution and Discussion: Question 1: Total Points (10) Consider performance of FCFS algorithm for three computer-bound processes. If process P1 takes 25 seconds, P2 takes 4 seconds and P3 takes 5 seconds and processes arrive in the given order P1, P2, P3. You need to calculate the following: a) Turnaround Time per process. b) Average Turnaround time of processes Ideas Solution Example Scheduling Algorithms The following subsections will explain several common scheduling strategies, looking at only a single CPU burst each for a small number of processes. Obviously real systems have to deal with a lot more simultaneous processes executing their CPU-I/O burst cycles. 6.3.1 First-Come First-Serve Scheduling, FCFS FCFS is very simple - Just a FIFO queue, like customers waiting in line at the bank or the post office or at a copying machine. Unfortunately, however, FCFS can yield some very long average wait times, particularly if the first process to get there takes a long time. For example, consider the following three processes: Process Burst Time P1 24 P2 3 P3 3 In the first Gantt chart below, process P1 arrives first. The average waiting time for the three processes is ( 0 + 24 + 27 ) / 3 = 17.0 ms. In the second Gantt chart below, the same three processes have an average wait time of ( 0 + 3 + 6 ) / 3 = 3.0 ms. The total run time for the three bursts is the same, but in the second case two of the three finish much quicker, and the other process is only delayed by a short amount. [image: TV7WiE2.png] [image: DajZZHZ.png] FCFS can also block the system in a busy dynamic system in another way, known as the convoy effect. When one CPU intensive process blocks the CPU, a number of I/O intensive processes can get backed up behind it, leaving the I/O devices idle. When the CPU hog finally relinquishes the CPU, then the I/O processes pass through the CPU quickly, leaving the CPU idle while everyone queues up for I/O, and then the cycle repeats itself when the CPU intensive process gets back to the ready queue.
  • 0 Votes
    4 Posts
    1k Views
    zaasmiZ
    @zareen said in CS603 Assignment No. 2 Solution and Discussion: Draw an ACTIVITY diagram for the above scenario. Steps to develop Activity Diagrams The steps below outline the major steps to take in creating a UML Activity Diagram. Finding system Actors, Classes and use cases Identifying key scenarios of system use cases Combining the scenarios to produce comprehensive workflows described using activity diagrams Where significant object behavior is triggered by a workflow, adding object flows to the diagrams Where workflows cross technology boundaries, using swimlanes to map the activities Refining complicated high level activities similarly, nested activity diagrams
  • 0 Votes
    9 Posts
    3k Views
    zareenZ
    Typical, approximate, values for latency that you might experience include: 800ms for satellite 120ms for 3G cellular data 60ms for 4G cellular data which is often used for 4G WAN and internet connections 20ms for an mpls network such as BT IP Connect, when using Class of Service to prioritise traffic 10ms for a modern Carrier Ethernet network such as BT Ethernet Connect or BT Wholesale Ethernet in the UK Ideas Solution provided, if you are unable to solve please contact in chat Room
  • 0 Votes
    2 Posts
    784 Views
    zareenZ
    Solution Ideas: Write XML Schema (.xsd) code for the given XML Answer XSD Code <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="BookStore"> <xs:complexType> <xs:sequence> <xs:element name="Book" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="Title" type="xs:string"/> <xs:element name="Course" type="xs:string"/> <xs:element name="Year" type="xs:unsignedShort"/> <xs:element name="Publisher" type="xs:string"/> <xs:element name="Author" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> Generate the following XML on a server as output using PHP Answer PHP CODE <?php header("Content-type: text/xml"); echo"<BookStore>"; echo"<Book>"; echo"<Title>Introduction to Computing</Title>"; echo"<Course>CS101</Course>"; echo"<Year>2016</Year>"; echo"<Publisher>Virtual University of Pakistan </Publisher>"; echo"<Author>Dr Tanveer Ahmad</Author>"; echo"</Book>"; echo"<Book>"; echo"<Title>Object Oriented Programming</Title>"; echo"<Course>CS304</Course>"; echo"<Year>2017</Year>"; echo"<Publisher>Virtual University of Pakistan</Publisher>"; echo"<Author>Dr Shafeeq</Author>"; echo"</Book>"; echo"</BookStore>"; ?> PHP OUTPUT
  • 0 Votes
    3 Posts
    904 Views
    zareenZ
    @zareen said in CS001 Assignment 2 Solution and Discussion: Question No 01 7 marks Suppose you are running an online bookstore; you are required to write a commercial sales letter to one of your customers (Letter format has been well explained through a template/figure below) using Microsoft Word. Consider the following requirements while writing the letter: • Insert the system date and time at the specified location. • Insert a hyperlink on “Fast Courier ®” of address www.fastcourier.com.pk • Insert a table stating customer’s complete order details. How to Insert today’s date and Time On the Insert tab, in the Text group, click Date & Time. In the Date and time dialog box, select the format you want and click OK. The date is inserted as text. Insert Hyperlink in MS Word Select the text or picture that you want to display as a hyperlink. On the Insert tab, click Hyperlink. You can also right-click the text or picture and click Hyperlink on the shortcut menu. In the Insert Hyperlink box, type or paste your link in the Address box. [image: VyutbSP.png]
  • 0 Votes
    1 Posts
    611 Views
    No one has replied
  • 0 Votes
    1 Posts
    448 Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    zareenZ
    Ideas Solution Q No 01 Solution: NP -> Adj NP The draw parse trees for above given grammar: [image: cR7P0Ng.png] The above given grammar have only one parse tree so it is non-ambiguous grammar. NP -> NP Conj NP The draw parse trees for above given grammar: [image: wflQD6P.png] The above grammar has two different parse trees therefore the given grammar is ambiguous. NP -> Adj N The draw parse trees for above given grammar: [image: IueNDrQ.png] The above given grammar have only one parse tree so it is non-ambiguous grammar. NP ->N The draw parse trees for above given grammar: [image: zjft37X.png] The above given grammar have only one parse tree so it is non-ambiguous grammar. Adj -> Young The draw parse trees for above given grammar: [image: zylKfdU.png] The above given grammar have only one parse tree so it is non-ambiguous grammar. Conj -> and The draw parse trees for above given grammar: [image: 4UWakYM.png] The above given grammar have only one parse tree so it is non-ambiguous grammar. N -> Boys | Girls The draw parse trees for above given grammar: [image: m7DKSyn.png] The above given grammar have only one parse tree so it is non-ambiguous grammar. Q No 02 Solution: The given grammar is S -> S + S | S / S | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 The draw parse trees for above given grammar: Parse Trees: [image: hamteDh.png] The above grammar has two different parse trees therefore the given grammar is ambiguous. THE END!
  • 0 Votes
    1 Posts
    828 Views
    No one has replied
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

1

Online

3.0k

Users

2.8k

Topics

8.6k

Posts
Popular Tags
Online User
| |