2016

Subjects that shall be updated by the University in (BSSE)
this picture is taken from a social website and i think university shall offer these soon in the said program.














Note: If you found this misunderstanding or kind of joke kindly contact us. As we are not 100% sure on this or if you know about this said thing is correct comment on this post.  
MTH302

Assignment -1

Question: 1
If the Basic salary of an employee is Rs. 55000 and Allowances are Rs. 6000.
  • What is the cost of the company on account of leaves? If casual leaves are 24 and sick leaves are12 per year and normal working days per month are 22.  
Solution
Gross salary = Basic salary + Allowances
Gross salary = 55000 + 6000 = 61000 Rs
Per day cost = Gross salary / working days per month
Per day cost = 61000/22 = 2772.73 Rs
Casual leaves = 2772.73 * 24 = 66545.5 Rs
Sick Leaves = 2772.73 * 12 = 33272.7
Total cost of leaves = Casual leaves + Sick Leaves
Total cost of leaves = 66542.5 + 33272.7
Total cost of leaves = 99815.2 Rs

Question: 2

 If you want to get a loan but can only afford to pay Rs.13, 000 per month. How much can you borrow (loan amount) if the interest rate is 5% annually for 30 years?

Solution

PV = C * [1 - (1+i)-n / i ]
i = 5% per year = 0.05
i = 0.05/12 per month = 0.004167
n = Total no of installment = 30 * 12 =360
C = 13000
PV = C * [1 - (1+i)-n / i ]
PV = 13000 * [1 - (1+0.004167)-360 / 0.004167 ]
PV = 13000 * [(1 – 0.2238) / 0.004167]
PV = 13000 * 186.27
PV = 2421550.27

you can borrow (loan amount) 2421550 Rs


Question: 3                                                                                                     
Suppose you invest Rs. 5000 at the end of each year for 8 years in an account that pay interest at 8%, compounded annually. How much money would you have in the account at the end of the eight years?


Solution
FV = C * [(1+i)n - 1 / i ]
C = 5000
i = 8% = 0.08
n = 8
FV = C * [(1+i)n - 1 / i ]
FV = 5000 * [(1+0.08)8 - 1 / 0.08 ]
FV = 5000 * [1.851 - 1 / 0.08 ]
FV = 5000 * [0.851 / 0.08 ]
FV = 5000 * 10.6375
FV = 53187.5
you have in the account at the end of the eight years 53187 Rs




"Learn what is (GDB) and (MDB) in Virtual University LMS"

This topic is important and asked mostly my new students
watch the video carefully to get all of it.





















Virtual University EXAM SOFTWARE


This video will provide you complete tutorial that how to use Online Exam System

to understand it watch it carefully 




















HOW TO INSTALL AND REGISTER MATHTYPE












Video Tutorial




RAR file Password

Computermastia.blogspot.com

Download Link

Click here to download Mathtype

Latest Mathtype Product Keys

MTWE671-007029-8MF6R
MTWE671-001114-WGSHY

Also check






#include <iostream>
#include <string>
using namespace std;

/* Assignment solution cs304 by Blu ( fb.com/92blu ) */

class Parcel{
                protected:  // changed from private to protected
                                int Id;
                                string senderName;
                                string senderAddress;
                                string receiverName;
                                string receiverAddress;
                                int weight;
                                int fee;
                public:
                                Parcel(){
                                                Id = 0;
                                                senderName = "";
                                                senderAddress = "";
                                                receiverName = "";
                                                receiverAddress = "";
                                                weight = 0;
                                                fee = 0;
                                }
                                void setId(int id){
                                                Id = id;
                                }
                                int getId(){
                                                return Id;
                                }
                               
                                void setSenderName(string sname){
                                                senderName = sname;
                                }
                                string getSenderName(){
                                                return senderName;
                                }
                               
                                void setSenderAddress(string saddress){
                                                senderAddress = saddress;
                                }
                                string getSenderAddress(){
                                                return senderAddress;
                                }
                               
                                void setReceiverName(string rname){
                                                receiverName = rname;
                                }
                                string getReceiverName(){
                                                return receiverName;
                                }
                               
                                void setReceiverAddress(string raddress){
                                                receiverAddress = raddress;
                                }
                                string getReceiverAddress(){
                                                return receiverAddress;
                                }
                               
                                void setWeight(int w){
                                                weight = w;
                                }
                                int getWeight(){
                                                return weight;
                                }
                               
                                void setFee(int f){
                                                fee = f;
                                }
                                int getFee(){
                                                return fee;
                                }
                               
};

class normalParcel: public Parcel{
                protected:
                                int chargesPerGram;
                                int basicCharges;
                                string shipmentType = "Normal";
                public:
                                void setChargePerGram(int charges){
                                                chargesPerGram = charges;
                                }
                                int getChargesPerGram(){
                                                return chargesPerGram;
                                }
                                void setBasicCharges(int charges){
                                                basicCharges = charges;
                                }
                                int getBasicCharges(){
                                                return basicCharges;
                                }
                                string getShipmentType(){
                                                return shipmentType;
                                }
};

class urgentParcel: public Parcel{
                protected:
                                int chargesPerGram;
                                int basicCharges;
                                string shipmentType = "Urgent";
                                int additionalFee;
                public:
                                void setChargePerGram(int charges){
                                                chargesPerGram = charges;
                                }
                                int getChargesPerGram(){
                                                return chargesPerGram;
                                }
                                void setBasicCharges(int charges){
                                                basicCharges = charges;
                                }
                                int getBasicCharges(){
                                                return basicCharges;
                                }
                                string getShipmentType(){
                                                return shipmentType;
                                }
                                void setAdditionalFee(int fee){
                                                additionalFee = fee;
                                }
                                int getAdditionalFee(){
                                                return additionalFee;
                                }
};
int main(int argc, char** argv) {
                cout<<"Assignment solution cs304 by Blu ( fb.com/92blu )"<<endl<<endl;
                int selection;
                while(1){
                                cout<<"Enter 1 for normal and 2 for urgent services.\n\nSelect type of service: ";
                                cin>>selection;
                                if(selection==1){
                                                int id, weight, charges, fee, overWeightCharges;
                                                string senderName, receiverName, senderAdd, receiverAdd, overWeight;
                                                cout<<"Normal service selected.\n";
                                                normalParcel p;
                                                cout<<"Enter receipt number: ";
                                                cin>>id;
                                                p.setId(id);
                                                cout<<"Enter sender name: ";
                                                cin>>senderName;
                                                p.setSenderName(senderName);
                                                cout<<"Enter sender Address: ";
                                                cin>>senderAdd;
                                                p.setSenderAddress(senderAdd);
                                                cout<<"Enter receiver name: ";
                                                cin>>receiverName;
                                                p.setReceiverName(receiverName);
                                                cout<<"Enter receiver address: ";
                                                cin>>receiverAdd;
                                                p.setReceiverAddress(receiverAdd);
                                                cout<<"Enter weight of parcel in grams: ";
                                                cin>>weight;
                                                p.setWeight(weight);
                                                cout<<"Enter basic charges for the parcel: ";
                                                cin>>charges;
                                                p.setBasicCharges(charges);
                                                cout<<"Enter fee per gram: ";
                                                cin>>fee;
                                                p.setFee(fee);
                                                cout<<"\n\n\nShipment Receipt\n-------------------\n";
                                                cout<<"Receipt No: "<<p.getId()<<endl;
                                                cout<<"Sender Name: "<<p.getSenderName()<<endl;
                                                cout<<"Sender Address: "<<p.getSenderAddress()<<endl;
                                                cout<<"Receiver Name: "<<p.getReceiverName()<<endl;
                                                cout<<"Receiver Address: "<<p.getReceiverAddress()<<endl;
                                                cout<<"Parcel Weight: "<<p.getWeight()<<endl;
                                                if(p.getWeight()>900){
                                                                overWeight = "Yes";
                                                } else {
                                                                overWeight = "No";
                                                }
                                                cout<<"Over Weight: "<<overWeight<<endl;
                                                cout<<"Basic Charges: "<<p.getBasicCharges()<<endl;
                                                if(overWeight=="Yes"){
                                                                overWeightCharges = (p.getWeight() - 900) * p.getFee();
                                                } else {
                                                                overWeightCharges = 0;
                                                }
                                                cout<<"Over Weight Charges: "<<overWeightCharges<<endl;
                                                cout<<"Shipment Total Charges: "<<p.getBasicCharges() + overWeightCharges<<endl;
                                                cout<<"Shipment type: "<<p.getShipmentType()<<endl;
                                                return 0;
                                } else if(selection==2){
                                                int id, weight, charges, fee, overWeightCharges, additionalfee;
                                                string senderName, receiverName, senderAdd, receiverAdd, overWeight;
                                                cout<<"Urgent service selected.\n";
                                                urgentParcel p;
                                                cout<<"Enter receipt number: ";
                                                cin>>id;
                                                p.setId(id);
                                                cout<<"Enter sender name: ";
                                                cin>>senderName;
                                                p.setSenderName(senderName);
                                                cout<<"Enter sender Address: ";
                                                cin>>senderAdd;
                                                p.setSenderAddress(senderAdd);
                                                cout<<"Enter receiver name: ";
                                                cin>>receiverName;
                                                p.setReceiverName(receiverName);
                                                cout<<"Enter receiver address: ";
                                                cin>>receiverAdd;
                                                p.setReceiverAddress(receiverAdd);
                                                cout<<"Enter weight of parcel in grams: ";
                                                cin>>weight;
                                                p.setWeight(weight);
                                                cout<<"Enter basic charges for the parcel: ";
                                                cin>>charges;
                                                p.setBasicCharges(charges);
                                                cout<<"Enter fee per gram: ";
                                                cin>>fee;
                                                p.setFee(fee);
                                                cout<<"Enter additional fee par gram: ";
                                                cin>>additionalfee;
                                                p.setAdditionalFee(additionalfee);
                                                cout<<"\n\n\nShipment Receipt\n-------------------\n";
                                                cout<<"Receipt No: "<<p.getId()<<endl;
                                                cout<<"Sender Name: "<<p.getSenderName()<<endl;
                                                cout<<"Sender Address: "<<p.getSenderAddress()<<endl;
                                                cout<<"Receiver Name: "<<p.getReceiverName()<<endl;
                                                cout<<"Receiver Address: "<<p.getReceiverAddress()<<endl;
                                                cout<<"Parcel Weight: "<<p.getWeight()<<endl;
                                                if(p.getWeight()>900){
                                                                overWeight = "Yes";
                                                } else {
                                                                overWeight = "No";
                                                }
                                                cout<<"Over Weight: "<<overWeight<<"g"<<endl;
                                                cout<<"Basic Charges: "<<p.getBasicCharges()+(p.getBasicCharges()/2)<<endl;
                                                if(overWeight=="Yes"){
                                                                overWeightCharges = (p.getWeight() - 900) * (p.getFee()+p.getAdditionalFee());
                                                } else {
                                                                overWeightCharges = 0;
                                                }
                                                cout<<"Over Weight Charges: "<<overWeightCharges<<endl;
                                                cout<<"Shipment Total Charges: "<<p.getBasicCharges() + (p.getBasicCharges()/2) + overWeightCharges<<endl;
                                                cout<<"Shipment type: "<<p.getShipmentType()<<endl;
                                                return 0;
                                } else {
                                                cout<<"Selected type of service is incorrect.\n\n";
                                }
                }
                return 0;

}