VUsolutions Transferred to AchiKhasi.com

From December 2011, this blog www.VUsolutions.blogspot.com is transferred to http://achikhasi.com/vu/ . So, you may visit http://achikhasi.com/vu/ for latest study related help.

Back to home VUsolutions

VUsolutions Fans Club [join us for MORE solutions]

VUsolutions on Facebook

CS610 Assignment No. 1 Solution

Saturday, April 16, 2011 Posted In Edit This
Q1. In which situation multiplexing is used? Explain with the help of working structure. mulitplexing is used for sharing of resources

1) Which cable is suitable for networking? Give reasons
twisted pair 100baseT or 1000baseT

2) Which network Topology will be used with in the office and why?
star shaped bus

3) Which network Topology will be used for connecting two offices and why?
WAN 
1) Which cable is suitable for networking? Give reasons LAN 
4)Which network device will be used to connect two offices?
Fiber modem
for detail plz concerns hands out

:::::::::::::::::::::::


Under the simplest conditions, a medium can carry only one signal at any moment in time.

For multiple signals to share one medium, the medium must somehow be divided, giving each signal a portion of the total bandwidth.

Multiplexor (MUX)
Demultiplexor (DEMUX)
Sometimes just called a MUX
• Two or more simultaneous transmissions on a single circuit.
– Transparent to end user.
• Multiplexing costs less.

Frequency Division Multiplexing
Assignment of non-overlapping frequency ranges to each “user” or signal on a medium. Thus, all signals are transmitted at the same time, each using different frequencies.

A multiplexor accepts inputs and assigns frequencies to each device. 

The multiplexor is attached to a high-speed communications line.
A corresponding multiplexor, or demultiplexor, is on the end of the high-speed line and separates the multiplexed signals

Time Division Multiplexing
Sharing of the signal is accomplished by dividing available transmission time on a medium among users.

Digital signaling is used exclusively.
Time division multiplexing comes in two basic forms:
1. Synchronous time division multiplexing, and
2. Statistical, or asynchronous time division multiplexing.
Synchronous Time Division Multiplexing
The original time division multiplexing.
The multiplexor accepts input from attached devices in a round-robin fashion and transmit the data in a never ending pattern.
T-1 and ISDN telephone lines are common examples of synchronous time division multiplexing
• Very popular
• Line will require as much bandwidth as all the bandwidths of the sources

BNK603 GDB No. 1

Saturday, April 16, 2011 Posted In Edit This

Opening Date and Time
April 15,2011 At 12:01 A.M(Mid-Night)

Closing Date and Time
April 18,2011 At 11:59 A.M(Mid-Night)

Note: No extra or bonus/grace period is available for attempting GBD.

Discussion Question:

What you think that “UBL  
Silah Mila Campaign” is related to consumer banking and what will be the impact of that campaign on UBL profit?

CS615 Assignment No. 1

Saturday, April 16, 2011 Posted In Edit This
Software Project Management
Assignment # 01
Spring 2011
Marks: 20
Due Date Your assignment must be uploaded before or on 18th April 2011.

Uploading instructions: Please view the Assignment Submission Process document provided to you by the Virtual University for uploading assignments.
  • Assignment should be in .doc format.
  • Save your assignment with your ID (e.g. bx020200786.doc).
  • Assignment submission through email is highly discouraged.

Rules for Marking: It should be clear that your assignment will not get any credit if: · The assignment is submitted after due date. · The submitted assignment file is corrupted. · The assignment is copied. Note: Your answer must follow the below given specifications. You will be assigned zero marks if you do not follow these instructions. · Font style: “Times New Roman” · Font color: “Black” · Font size: “12” · Bold for heading only. ·Font in Italic is not allowed at all. · No formatting or bullets are allowed to use.

Assignment: Q.NO.1 
Read the given scenario you have to analyze the situation and suggest a suitable process model. Justify your answer with suitable reasons. 

Mughal brothers Pvt. Ltd. is the distributor of the Qarshi products in Pakistan. The company wants to automate different process like sale purchase and inventory systems. Previously the company has no experience of information technology. They have no idea of what will be the size, cost and duration of the project.

CyberSoft is the company which will develop this product. As the client has no idea of the product, company should get the requirements from the client then develop the product accordingly. The client also wants to involve in the system development to make sure that product should be according to his needs.

Q.NO.2 
Differentiate between Software Process Vs Software Engineering. 

CS201 Assignment No. 1 solution

Saturday, April 16, 2011 Posted In Edit This
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 submitted assignment does not open or file is corrupt.
§ All types of plagiarism are strictly prohibited.

Note:You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted. If you will submit code in .doc (Word document) you will get zero marks.

Objective
The objective of this assignment is to provide hands on experience of using
§Basic concepts of C++ language and Programming
§Conditional statements of C language §Dealing with Data types §Function in c language
§Writing and editing a C program
§Saving a C program
§Compiling a C program
§Executing the program

Guidelines
§Code should be properly aligned and well commented.
§Follow c/c++ rules while writing variables names, function names etc
§Use only dev-C++ for this assignment.
§Use appropriate c/c++ structure i.e. if-else, switch statement etc to get inputs from user.(Marks will be deducted if inappropriate structure will be used).
Assi
Problem Statement: Rent A CAR
You are required to write a program for RENT A CAR SYSTEM. The basic idea is that user will provide customer information, Car Model, and number of days. Upon this information your program will calculate the Amount for the Car. Rent Amount will be calculated on the Basis of Type of Model he / she is going to take on Rent and of Days on Rent. There are Types of Models available “2009”, “2010” and “2011”. ForModel 2009 Minimum Rent per day is Rs. 5000/- for Model “2010” Amount is Rs. 8000/- and for “2011” Amount is Rs. 10,000/- Per Day. 



Detailed Description:
1.The program should display Please provide customer Name: Please provide Car Model.Enter ‘A’ for Model 2009. Enter ‘B’ for Model 2010. Enter ‘C’ for Model 2011. Then your program should take these inputs, 2.Depending upon the choices that user has entered, your program will further display the prompt 3.If user has entered Car Model, then your program should prompt the user to enter the Car Number and No. of Days for which car is required. 

-----------------------------------------------------------------
Model Name :
Number of Days:
-----------------------------------------------------------------
4.After getting all this information, now write a function which will calculate rental/charged amount on the basis of this information. 

To calculate rental/charged amount we will use this formula: Rental Amount = charged amount * number of days Charged amount will be different for different Car Models as described above. 

After calculating Rent Amount for Car display it on the screen.

Sample Output
Please provide customer Name: Ahsan Please provide Car Model Description. Enter ‘A’ for Model 2009. Enter ‘B’ for Model 2010. Enter ‘C’ for Model 2011 
Please provide following information:
Car No. : LWQ234
Number of day’s: 3
Final output should be like this:
-----------------------------------------------------------------
Customer Name: Ahsan
Car Model : 2009
Car No. : LWQ234
Number of days: 03
Your Rental Amount is: 15000
-----------------------------------------------------------------
Note:
Your assignment must be uploaded/submitted on or before April 18, 2011. Make it sure to submit only Cpp file of your Assignment. Assignment in notepad format or MS Word format will not be accepted.

SOLUTION:

#include <iostream.h>
#include <conio.h>

double TotalPayAbleRent(int,int);
main()
{
char name[20], choice,vehicle_number[20];
int total_days,amount_of_day1,amount_of_day2,amount_of_day3,model1,model2,model3;
model1 = 2009;
model2 = 2010;
model3 = 2011;
amount_of_day1 = 5000;
amount_of_day2 = 8000;
amount_of_day3 = 10000;
cout<<"=======CODDED BY: ALIMS(for those who are not much familiar with C++)=======";
cout<<"\n"<<"provide customer name :";
cin>>name;
cout<<"Please provide Car Description";
cout<<"\n"<<"Enter 'A' for model 2009";
cout<<"\n"<<"Enter 'B' for model 2010";
cout<<"\n"<<"Enter 'C' for model 2011";
cin>>choice;
cout<<"Please enter car number :";
cin>>vehicle_number;
cout<<"Please enter number of days :" ;
cin>>total_days;


if(choice=='a')
{

cout<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
cout<<"Customer Name :" <<name;
cout<<"\n"<<"Car Model :" <<model1 ;
cout<<"\n"<<"Number of days :" <<total_days;
cout<<"\n"<<"Your Rental Amount is :" <<TotalPayAbleRent(amount_of_day1,total_days);
cout<<"\n"<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
}
else if(choice=='A')
{

cout<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
cout<<"Customer Name :" <<name;
cout<<"\n"<<"Car Model :" <<model1 ;
cout<<"\n"<<"Number of days :" <<total_days;
cout<<"\n"<<"Your Rental Amount is :" <<TotalPayAbleRent(amount_of_day1,total_days);
cout<<"\n"<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
}
else if(choice=='B')
{

cout<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
cout<<"Customer Name :" <<name;
cout<<"\n"<<"Car Model :" <<model2 ;
cout<<"\n"<<"Number of days :" <<total_days;
cout<<"\n"<<"Your Rental Amount is :" <<TotalPayAbleRent(amount_of_day2,total_days);
cout<<"\n"<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
}
else if(choice=='b')
{

cout<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
cout<<"Customer Name :" <<name;
cout<<"\n"<<"Car Model :" <<model2 ;
cout<<"\n"<<"Number of days :" <<total_days;
cout<<"\n"<<"Your Rental Amount is :" <<TotalPayAbleRent(amount_of_day2,total_days);
cout<<"\n"<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
}
else if(choice=='C')
{

cout<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
cout<<"Customer Name :" <<name;
cout<<"\n"<<"Car Model :" <<model3 ;
cout<<"\n"<<"Number of days :" <<total_days;
cout<<"\n"<<"Your Rental Amount is :" <<TotalPayAbleRent(amount_of_day3,total_days);
cout<<"\n"<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
}
else if(choice=='c')
{

cout<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
cout<<"Customer Name :" <<name;
cout<<"\n"<<"Car Model :" <<model3 ;
cout<<"\n"<<"Number of days :" <<total_days;
cout<<"\n"<<"Your Rental Amount is :" <<TotalPayAbleRent(amount_of_day3,total_days);
cout<<"\n"<<"~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*.~*." <<endl;
}
else
{
cout<<"insaan ban kar sahi input do";
}

getch();
}
double TotalPayAbleRent(int rentofday,int tdays)
{
return rentofday*tdays;
}

ANOTHER SOLUTION:

#include<iostream.h>
#include<conio.h>
int Rent(int d, int m);
int main()

{
int days;
char cName[15],mName[7];
char cModel;
cout<<"Please provide customer Name: ";
cin>>cName;
cout<<"\n Please provide Car Model."<<endl;
cout<<"|..........................................|"<<endl;
cout<<"| Enter 'A' for Model 2009. |"<<endl;
cout<<"| Enter 'B' for Model 2010. |"<<endl;
cout<<"| Enter 'C' for Model 2011. |"<<endl;
cout<<"|..........................................|"<<endl;
cin>>cModel;

cout<<"\n please provide the car Number that you want to take on Rent: ";
cin>>mName;
cout<<"\n For how many days you want take car on rent? : ";
cin>>days;
cout<<" customer information and total rent"<<endl;
switch (cModel)
{
case 'A':
{
cout<<"|---------------------------------"<<endl;
cout<<"| customer Name: "<<cName<<endl;
cout<<"|Car Model :2009"<<endl;
cout<<"|car Number :"<<mName<<endl;
cout<<"|days :"<<days<<endl;
cout<<"|total Rent :"<<Rent(days,5000)<<endl;
cout<<"|---------------------------------"<<endl;
}
break;
case 'B':
{
cout<<"|---------------------------------"<<endl;
cout<<"| customer Name: "<<cName<<endl;
cout<<"|Car Model :2010"<<endl;
cout<<"|car Number :"<<mName<<endl;
cout<<"|days :"<<days<<endl;
cout<<"|total Rent :"<<Rent(days,8000)<<endl;
cout<<"|---------------------------------"<<endl;
}
break;
case 'C':
{
cout<<"|---------------------------------"<<endl;
cout<<"| customer Name: "<<cName<<endl;
cout<<"|Car Model :2011"<<endl;
cout<<"|car Number :"<<mName<<endl;
cout<<"|days :"<<days<<endl;
cout<<"|total Rent :"<<Rent(days,10000)<<endl;
cout<<"|---------------------------------"<<endl;
}
break;
default:
{
cout<<"sorry you entered ivalid car model";
}
}

getch();

}
int Rent(int d, int m)
{
int total_rent;
total_rent=d*m;
return total_rent;
}

Another Idea Solution:

#include<iostream>
#include<conio.h>
#include <string.h>
using namespace std;
int main()
...{
char Model;

string Name;

string CarNo;

int Day, Amount, flag=0, CarMod;

cout <<"Please provide customer name: ";

cin >>Name;

cout <<"\n\nPlease provide car model description:"<<endl <<endl;

cout <<" Enter 'A' for Model 2009" <<endl;

cout <<" Enter 'B' for Model 2010" <<endl;

cout <<" Enter 'C' for Model 2011" <<endl;

cout <<"\nCar Model: ";

cin >>Model;

while (flag!=1)
{
if (Model=='A' || Model=='a')
{
Amount=5000;
CarMod=2009;
flag=1;
}
else if (Model=='B' || Model=='b')
{
Amount=8000;
CarMod=2010;
flag=1;
}
else if (Model=='C' || Model=='c')
{
Amount=10000;
CarMod=2011;
flag=1;
}
else
{
cout <<"\nPlease Enter 'A', 'B' or 'C' only" <<endl;
cout <<"\nCar Model: ";
cin >>Model;
}
}
cout <<"Please provide following information:"<<endl;

cout <<"\nCar No. : ";

cin >>CarNo;

cout <<"Number of days: ";

cin >>Day;

cout <<"\n-------------------------------------------"<<endl;

cout <<"Customer Name : " <<Name <<endl;

cout <<"Car Model : " <<CarMod <<endl;

cout <<"Car No. : " <<CarNo <<endl;

cout <<"Number of days : "<<Day <<endl;

cout <<"Your rental amount is : "<<Amount*Day;

cout <<"\n-------------------------------------------";
getche();
}

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

#include<iostream.h>

int amount(char, int);

main()

{
int days;
int rent;
char model;
char name[20];
char carNo[10];

cout << "Please provide cumstomer Name\t";
cin >> name;

cout << "\nPlease provide Car Model Description" << endl << endl;
cout << "\tEnter 'A' for Model 2009.\n";
cout << "\tEnter 'B' for Model 2010.\n";
cout << "\tEnter 'C' for Model 2011.\n";
cin >> model;

cout << "\nplease provide following information:" << endl << endl;
cout << "Car No:\t\t";
cin >> carNo;

cout << "Number of days\t";
cin >> days;
cout << endl << endl;

switch(model)
{
case 'A':
case 'a':
cout << "Customer Name:\t" << name << endl;
cout << "Car Model:\t2009" << endl;
cout << "Car No:\t\t" << carNo << endl;
cout << "Number of days:\t" << days << endl;
rent = amount(model, days);
cout << "Your Rental Amaount is:\t" << rent << endl;
break;

case 'B':
case 'b':
cout << "Customer Name:\t" << name << endl;
cout << "Car Model:\t2010" << endl;
cout << "Car No:\t\t" << carNo << endl;
cout << "Number of days:\t" << days << endl;
rent = amount(model, days);
cout << "Your Rental Amaount is:\t" << rent << endl;
break;

case 'C':
case 'c':
cout << "Customer Name:\t" << name << endl;
cout << "Car Model:\t2011" << endl;
cout << "Car No:\t\t" << carNo << endl;
cout << "Number of days:\t" << days << endl;
rent = amount(model, days);
cout << "Your Rental Amaount is:\t" << rent << endl;
break;

default:
cout << "please select only 2009, 2010, 2011 car models";

}
system("pause");
}

int amount(char m, int d){
if(m == 'A' || m == 'a')
return (5000 * d);

else if(m == 'B' || m == 'b')
return (8000 * d);

else if(m == 'C' || m == 'c')
return (10000 * d);
}

Back to home VUsolutions

Shaadi.com: Just create ur account & find ur partner or EARN money, its reall & EASY

VUsolutions Followers (Join NOW and Get Extra Benefits)

Install LATEST toolbar having lot of features - GET solutions on Desktop

toolbar powered by Conduit
Caliplus 300x250 NoFlam VitoLiv 468x60 GlucoLo