PART 1: SOLUTION
Under the provisions of the Contract Act, 1872 this is a valid contract. Because according to the Scope of Contract under sec. 2(h) and the Proposal or Offer base on the following.The offer must be communicated to the other party. According to section 4 of the Act, the communication of a proposal is complete when it comes to the knowledge of the person to whom it is made. 1. The terms of the offer must be definite and clear 2. The offer must be capable of creating legal relationships. 3. The offer must be made to obtain acceptance. An invitation to receive an offer is not an offer. Yes, Aftab would be able to claim the amount of reward under the circumstances because he has evidence in the newspapers form and he can easily claim about Badar so this contract imposed by enforceable by law.
PART 2: SOLUTION
As we know that according to the contract act of 1872 a promise and Consideration section 2 (g), All of the agreements are not contracts, meaning thereby that all agreements are not enforceable at law. Such agreements are called void agreements. So this is Void Agreement and this agreement not enforceable by law is said to be void agreement.Yes, it is possible and enforceable by law in this situation if this agreement with a written form or registered so than Aftab can claim and imposed this agreement by law if Mohsin breach this contract or Promise.
PART 3: SOLUTION
The contract should not be performed because the horse died through a natural death so the contract should over. If this contract in written and register from so according to act 1872 B can claim about Mr. A and then this contract would enforceable by law and called to be Valid contract. So an agreement made by the parties which are not legally competent to enter into the contract is not enforceable at law that is void. Here are a Scope of Promise –Sec. 2 (b)
• Promise under the Act stands for an accepted proposal • Acceptance of a conditional offer leads to acceptance of the proposal. • Communication of offer is necessarily leading to acceptance or otherwise. • If the accepted offer requires that terms of the contract are to be reduced into writing, in such circumstances writing of a contract would only constitute the completion of the formalities and shall not have any effect on the validity of acceptance.
PART 4: SOLUTION
No this is not a valid contract because for the contract both parties must be agreed, the promisee and promisor and that contract did without forcefully. If Y doesn’t want to sell his house and X threaten him forcefully to sold his house so in this situation the second party is not agreed so the proposal not be accepted by 2nd party and without acceptable proposal and consideration promises and the contract could not be made.
PART 5: SOLUTION
Yes, this contract is valid because one party Asif is giving offers or proposals to second party Basit and Basit accept this proposal without forcefully and as we know that without proposal and consideration promise or contract could not be made.
Here are the following essentials of Valid Contract:1. These are outlined below:2. Offer and acceptance3. Legal relationship4. Legal consideration5. Competent parties6. Free consent of the parties7. Lawful Object8. Terms of an agreement to be complete and certain9. Possibility of performance10. Contract to be got registered & in writing, wherever required
CS311 Assignment 2 Solution and Discussion
-
Assignment No. 02
Semester: Fall 2019
Introduction to Web Services Development – CS311
Total Marks: 20Due Date: 4/12/2019
Objectives:
Understand and get hands on experience of
• XML schema
• Generating XML schema (XSD) of a given XML
• Generate XML using PHP
Instructions:
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if: The assignment is submitted after due date.
The assignment is submitted via email.
The assignment is copied from Internet or from any other student.
The submitted assignment does not open or file is corrupt.
It is in some format other than .doc/.docx.Note: All types of plagiarism are strictly prohibited.
For any query about the assignment, contact at [email protected]
Consider the well-formed XML given below. You are required to:
- Write XML Schema (.xsd) code for the given XML
- Generate the following XML on a server as output using PHP
<?xml version="1.0"?> <BookStore> <Book> <Title>Introduction to Computing</Title> <Course>CS101</Course> <Year>2016</Year> <Publisher>Virtual University of Pakistan</Publisher> <Author>Dr Tanveer Ahmad</Author> </Book> <Book> <Title>Object Oriented Programming</Title> <Course>CS304</Course> <Year>2017</Year> <Publisher>Virtual University of Pakistan</Publisher> <Author>Dr Shafeeq</Author> </Book> </BookStore>
Assignment Uploading Instructions:
• You need to upload your assignment in .doc/.docx file format.
• Copy your code for both the questions and paste it in word file(.doc/.docx) and then upload your assignmentPlease note that due date of assignment will not extend, so do not wait for last date and submit your solution as quickly as possible.
-
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
Recent Topics
-
SOLVED CS508 Quiz No. 1 Solution and Discussion
CS508 - Modern Programming Languages12 -
SOLVED CS432 Assignment 2 Solution and Discussion
CS432 - Network Modeling and Simulation8 -
SOLVED CS605 Assignment 2 Solution and Discussion
CS605 - Software EngineeringII8 -
UNSOLVED MTH404 Assignment 2 Solution and Discussion
MTH404 - Dynamics5 -
SOLVED CS411 Assignment 2 Solution and Discussion
CS411 - Visual Programming4 -
SOLVED CS432 Assignment 1 Solution and Discussion
CS432 - Network Modeling and Simulation4 -
SOLVED CS703 Assignment 2 Solution and Discussion
CS703 - Advanced Operating Systems4 -
SOLVED CS625 Assignment 2 Solution and Discussion
CS625 - Professional Practices4 -
SOLVED CS001 Assignment 2 Solution and Discussion
CS001- Computer Proficiency License3 -
STAT408 Assignment 1 Solution and Discussion
STAT408 - Experimental Design Analysis3 -
SOLVED CS202 Assignment 2 Solution and Discussion
CS202 - Fundamentals of Front End Development3 -
SOLVED CS310 Assignment 2 Solution and Discussion
CS310 - Open Source Web Application Development (PHP, PERL, CGI, Mysql)3 -
SOLVED EDU508 Assignment 1 Solution and Discussion
EDU508 - Teaching of English Language3 -
SOLVED CS314 Assignment 2 Solution and Discussion
CS314 - Introduction to Cellular Networks3 -
SOLVED CS606 Assignment 1 Solution and Discussion
CS606 - Compiler Construction3 -
SOLVED EDU304 Assignment 1 Solution and Discussion
EDU304 - Introduction to Guidance and Counseling3 -
SOLVED ACC311 Quiz 2 Solution and Discussion
ACC311- Fundamentals of Auditing3 -
SOLVED BNK611 Quiz 2 Solution and Discussion
BNK611 - Economic Ideology in Islam3 -
SOLVED FIN725 GDB 1 Solution and Discussion
FIN725 - Credit & Risk Management3 -
SOLVED MGT713 GDB 1 Solution and Discussion
MGT713 - Production / Operations Management3