.CPP File Code
using namespace std; #include <stdlib.h> #include <iostream> struct StudentDetail{ string name; string vuid; }; //class Node* head; class Node{ struct StudentDetail newStd; class Node* next; class Node* prev; void Set(string name,string vuid) { newStd.name=name; newStd.vuid=vuid; } Node Get() { } void setNext(string name,string vuid){ if(next==NULL) { } else { class Node* newNode= new Node(); newStd.name=name; newStd.vuid=vuid; newNode>next= newNode; } } string getNext() { next; } void setPrev(string name,string vuid){ if(next==NULL) { } else { class Node* newNode= new Node(); newStd.name=name; newStd.vuid=vuid; newNode>next= newNode; } } string getPrev() { prev; } }; class DoublyLinkedList{ public: struct StudentDetail newStd; class DoublyLinkedList* headPtr; class DoublyLinkedList* curPtr; class DoublyLinkedList* nextPtr; int size; //dfdf class DoublyLinkedList* headDlinkList=NULL; void addAtBegining(string vuid, string name) { class DoublyLinkedList* dNode= new DoublyLinkedList(); dNode>newStd.vuid=vuid; dNode>newStd.name=name; dNode>nextPtr=headDlinkList; headDlinkList= dNode; dNode>curPtr=dNode; } void addAtEnd(string vuid, string name) { class DoublyLinkedList* dNode= new DoublyLinkedList(); dNode>newStd.vuid=vuid; dNode>newStd.name=name; dNode>nextPtr=headDlinkList; headDlinkList= dNode; dNode>curPtr=dNode; } void delNode() { class DoublyLinkedList* temp1=curPtr; class DoublyLinkedList* temp2= temp1; temp1>nextPtr= temp2>nextPtr; free(temp2); } void print() { class DoublyLinkedList* temp= headDlinkList; while(temp!=NULL) { cout<<temp>newStd.vuid<<" "<<temp>newStd.name<<endl; temp= temp>nextPtr; } } }; int main() { string vuid,name; cout<<"Add your vuID and Name at First Position "<<endl; cout<<"_ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _"<<endl; DoublyLinkedList dlist1; cin>>vuid; cin>>name; dlist1.addAtBegining(vuid,name); dlist1.print(); cout<<"Insertion At Beginning in doubly Link List "<<endl; cout<<"_ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _"<<endl; cin>>vuid; cin>>name; dlist1.addAtBegining(vuid,name); dlist1.print(); cout<<"Insertion At End in doubly Link List "<<endl; cout<<"_ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _"<<endl; cin>>vuid; cin>>name; dlist1.addAtEnd(vuid,name); dlist1.print(); cout<<"Deletion of Current Node (Last Node) "<<endl; cout<<"_ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ __ _ _"<<endl; dlist1.delNode(); dlist1.print(); }SOLVED MTH302 Assignment 1 Solution and Discussion

Assignment # 1 MTH302 (Fall 2019)
Total Marks: 20
Due Date: November 20, 2019.DON’T MISS THESE: Important instructions before attempting the solution of this assignment:
• To solve this assignment, you should have good command over 019 lectures.
• Upload assignments properly through LMS, No Assignment will be accepted through email.
• Write your ID on the top of your solution file.
• Don’t use colorful back grounds in your solution files.
• Use Math Type or Equation Editor etc for mathematical symbols if needed.
• You should remember that if we found the solution files of some students are same then we will reward zero marks to all those students.
• Make solution by yourself and protect your work from other students, otherwise you and the student who send same solution file as you will be given zero marks.
• Also remember that you are supposed to submit your assignment in Word format any other like scan images etc will not be accepted and we will give zero marks correspond to these assignments.Q1: Payments of $ 670 are being made at the end of each month for 5 years at an interest of 8% compounded monthly. Calculate the Present Value.
Q2 : Suppose Mr. Arslan’s basic salary is Rs 12000. Calculate the allowances (House rent, utility bills, conveyance allowance). Also, find the provident fund and gratuity.

Sameer took a loan of Rs 10,000 at the interest rate of 12% per annum for 5 years. Show that the compound interest is greater than simple interest on the given amount plz send me solution

@MuhammadZubair said in MTH302 Assignment 1 Solution and Discussion:
Q2 : Suppose Mr. Arslan’s basic salary is Rs 12000. Calculate the allowances (House rent, utility bills, conveyance allowance). Also, find the provident fund and gratuity.


@MuhammadZubair
Check video post 
@zareen said in MTH302 Assignment 1 Solution and Discussion:
Assignment # 1 MTH302 (Fall 2019)
Total Marks: 20
Due Date: November 20, 2019.DON’T MISS THESE: Important instructions before attempting the solution of this assignment:
• To solve this assignment, you should have good command over 019 lectures.
• Upload assignments properly through LMS, No Assignment will be accepted through email.
• Write your ID on the top of your solution file.
• Don’t use colorful back grounds in your solution files.
• Use Math Type or Equation Editor etc for mathematical symbols if needed.
• You should remember that if we found the solution files of some students are same then we will reward zero marks to all those students.
• Make solution by yourself and protect your work from other students, otherwise you and the student who send same solution file as you will be given zero marks.
• Also remember that you are supposed to submit your assignment in Word format any other like scan images etc will not be accepted and we will give zero marks correspond to these assignments.Q1: Payments of $ 670 are being made at the end of each month for 5 years at an interest of 8% compounded monthly. Calculate the Present Value.
Q2 : Suppose Mr. Arslan’s basic salary is Rs 12000. Calculate the allowances (House rent, utility bills, conveyance allowance). Also, find the provident fund and gratuity.

Q2 : Suppose Mr. Arslan’s basic salary is Rs 12000. Calculate the allowances (House rent, utility bills, conveyance allowance). Also, find the provident fund and gratuity.
konsa formula use karen gay samajh ni a rahi sath allowances ki value bhe ni di hai


video Link

Basic Salary of an employee is Rs. 18,000 and Allowances are Rs. 9000. According to the company’s policy casual leaves are 12 days per year and earned leaves are 24 days per year and normal working days are 22 per month. Answer : 10800 according to my calculation ... whats urs ?

@zareen said in MTH302 Assignment 1 Solution and Discussion:
If an employee deposits Rs. 2,000 at the end of each year into his company’s plan which pays 7% interest compounded quarterly, how much will he have in the account at the end of 5 years?
Answer :
Employee will earn 8400 at the end of 5 years.
Waiting comments relating to question …!i think correct. Do we need to show the calculation as well or simple answer. and answer of q#1 is?

If an employee deposits Rs. 2,000 at the end of each year into his company’s plan which pays 7% interest compounded quarterly, how much will he have in the account at the end of 5 years?
Answer :
Employee will earn 8400 at the end of 5 years.
Waiting comments relating to question …!