Saturday, April 16, 2011

Re: [discussion_vu] CS 2O1 First Assignment Solution

Assalam mu Alikum brother!
 
                                         nice work I just want to know the following only for my sake.
                                         I want to what is the function the number char name[20];
      char carNo[10];
inside the braces like (20) and (10) cant we jsut declare the variables without these number,,, and other thing what is that "\t" you have used in character string, why u have used that.


On Sat, Apr 16, 2011 at 7:17 PM, CoooL <asad.coool786@gmail.com> wrote:


---------- Forwarded message ----------
From: Talha



CS 2O1 First Assignment Solution

#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);
    }
 




--
Yon Ghalat B Nai Hota chehron Ka Ta'asur Lakin.
Log Waise Hote B Nai Jiasay Nazar Ayte Hain
                       <<<<<<< sAd pAncHi >>>>>>>


             

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

Re: [discussion_vu] project query

lakin unviversity list kb provide karay gi,,, SRS doc ki submission ki last date tu 25th april hian,,, aur us se pehlay tu university ko project list day dini chayee thi,,,, this the main confusion,,, mujhy smjh nahi aa rahi kaya karo


On Sat, Apr 16, 2011 at 9:21 PM, mc080400777 Mariam Masood <mc080400777@vu.edu.pk> wrote:
ap khud bi apni mrzi se topic select kr skte ho or university bi list provide kare gi

On Sat, Apr 16, 2011 at 10:39 AM, mc070401955 Waqar Hassan Khan <mc070401955@vu.edu.pk> wrote:
assalam mu alikum!
                              yar kaya ho gya hain sb ko,,, ya mari 3rd mail hain koi tu batao it,s urgent,,,, project select karnay ka laye university koi list provide karay gi ya it is totaly upto a student, k jo student ka dil karay wo project select kr lay.


thnx
--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

Re: [discussion_vu] Cs 507 Assignment # 01 complete solution

bhai sahab bagair registration k assignment solution send karain plzzzzzzzz

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

Re: [discussion_vu] project query

ap khud bi apni mrzi se topic select kr skte ho or university bi list provide kare gi

On Sat, Apr 16, 2011 at 10:39 AM, mc070401955 Waqar Hassan Khan <mc070401955@vu.edu.pk> wrote:
assalam mu alikum!
                              yar kaya ho gya hain sb ko,,, ya mari 3rd mail hain koi tu batao it,s urgent,,,, project select karnay ka laye university koi list provide karay gi ya it is totaly upto a student, k jo student ka dil karay wo project select kr lay.


thnx
--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

Re: [discussion_vu] fin 619 presentation

yaar u said right mara viva pass ho gyaaa gradebook main p laga howa hay


On 4/16/11, mc080400080 Zafar Ali <mc080400080@vu.edu.pk> wrote:
> lmha fikriya nai. lmha khushi hai. ap grad buk check krein ap pass ho gye
> hongy. mairy lms sy b internship ka subject ghayb hai. or grad buk mein agya
> hai usky agy P likha hua hai. i m pass. mairi presentation 13 april ko
> islamabad mein hui thi.
>
> On Sat, Apr 16, 2011 at 8:11 PM, Usman Ali Shah
> <mc070401764@vu.edu.pk>wrote:
>
>> Allah karay jasa keh rahay ho wasa he ho app kay mu main gee shakar
>>
>> On 4/16/11, Usman Ali Shah <mc070401764@vu.edu.pk> wrote:
>> > umer agar clear ho gya to mare tarf say treat paki
>> >
>> > On 4/16/11, M. UmEr MaJeEd <mc080402898@vu.edu.pk> wrote:
>> >> ni dear congratulation its indicate ap ka clear hu gya hy IA kal ya
>> >> parson
>> >> tk ap P likha aa jay ga
>> >> congrats treat tu banti hy na boss ???:)
>> >>
>> >> On Sat, Apr 16, 2011 at 6:22 PM, Usman Ali Shah
>> >> <mc070401764@vu.edu.pk>wrote:
>> >>
>> >>> umer muj say to quick ratio aur marker ratio ke fisrt dividend wale
>> >>> ratio poche the well dono he bata de aur yaar inhon nay mayray lms
>> >>> main intership ka icon ko elimnate ker diya hay ??? lamha fiqriya
>> >>>
>> >>> On 4/16/11, mc090410036 Naima Atique <mc090410036@vu.edu.pk> wrote:
>> >>> > plz send cs502, cs614, cs615, ideal solution urgent
>> >>> >
>> >>> > On 16 April 2011 14:37, M. UmEr MaJeEd <mc080402898@vu.edu.pk>
>> wrote:
>> >>> >
>> >>> >> @usman yaar one week tk aa jay ga most possible monday ko aay ap ka
>> >>> >> wish
>> >>> u
>> >>> >> best ov luck main wait kr raha tha k ap batao gy k ap ka viva k sa
>> >>> >> hua
>> >>> >> zyada
>> >>> >> tension mat lo IA pass hu jao gy
>> >>> >> and jis ny abi presentation dyni hy just one thing wahan confuse na
>> >>> >> hu
>> >>> >> apny
>> >>> >> trainning prog achi tayar kro k ap ko apata hu ap ny wahan kia kya
>> hy
>> >>> aur
>> >>> >> kaam k sy huta hy and pahly 10 ratios ko dakh jao IA clear hu jay
>> >>> >> ga
>> >>> >> dnt
>> >>> >> worry abt that
>> >>> >>
>> >>> >> On Sat, Apr 16, 2011 at 12:35 PM, mc080403302 Muhamamd Imran <
>> >>> >> mc080403302@vu.edu.pk> wrote:
>> >>> >>
>> >>> >>> yeah
>> >>> >>> my dear
>> >>> >>>
>> >>> >>>
>> >>> >>>
>> >>> >>> On 4/16/11, mc080400729 Naveed Abbas <mc080400729@vu.edu.pk>
>> wrote:
>> >>> >>> > meri presentation lahore mai thi koi masla nai hota just wo log
>> >>> >>> > aap
>> >>> ka
>> >>> >>> > confidence daikhty hai aap ko question ki samaj nai aati to un
>> >>> >>> > ko
>> >>> >>> > keh
>> >>> >>> day k
>> >>> >>> > rapeat kr day
>> >>> >>> >
>> >>> >>> > On 16 April 2011 11:58, mc080402871 Muhammad Nadeem Khan <
>> >>> >>> > mc080402871@vu.edu.pk> wrote:
>> >>> >>> >
>> >>> >>> >> aur ap ki cgpa kitni thi?
>> >>> >>> >>
>> >>> >>> >> --
>> >>> >>> >> You received this message because you are subscribed to the
>> >>> >>> >> Google
>> >>> >>> Groups
>> >>> >>> >> "Virtual University of Pakistan" group.
>> >>> >>> >> To post to this group, send email to
>> >>> >>> >> discussion_vu@googlegroups.com
>> >>> .
>> >>> >>> >> To unsubscribe from this group, send email to
>> >>> >>> >> discussion_vu+unsubscribe@googlegroups.com.
>> >>> >>> >> For more options, visit this group at
>> >>> >>> >> http://groups.google.com/group/discussion_vu?hl=en.
>> >>> >>> >>
>> >>> >>> >
>> >>> >>> > --
>> >>> >>> > You received this message because you are subscribed to the
>> Google
>> >>> >>> Groups
>> >>> >>> > "Virtual University of Pakistan" group.
>> >>> >>> > To post to this group, send email to
>> >>> >>> > discussion_vu@googlegroups.com.
>> >>> >>> > To unsubscribe from this group, send email to
>> >>> >>> > discussion_vu+unsubscribe@googlegroups.com.
>> >>> >>> > For more options, visit this group at
>> >>> >>> > http://groups.google.com/group/discussion_vu?hl=en.
>> >>> >>> >
>> >>> >>> >
>> >>> >>>
>> >>> >>> --
>> >>> >>> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> >>> "Virtual University of Pakistan" group.
>> >>> >>> To post to this group, send email to
>> discussion_vu@googlegroups.com.
>> >>> >>> To unsubscribe from this group, send email to
>> >>> >>> discussion_vu+unsubscribe@googlegroups.com.
>> >>> >>> For more options, visit this group at
>> >>> >>> http://groups.google.com/group/discussion_vu?hl=en.
>> >>> >>>
>> >>> >>>
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> Muhammad Umer Majeed
>> >>> >> MBA(Finance)6thSemester
>> >>> >> Faisalabad.
>> >>> >>
>> >>> >> --
>> >>> >> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> >> "Virtual University of Pakistan" group.
>> >>> >> To post to this group, send email to discussion_vu@googlegroups.com
>> .
>> >>> >> To unsubscribe from this group, send email to
>> >>> >> discussion_vu+unsubscribe@googlegroups.com.
>> >>> >> For more options, visit this group at
>> >>> >> http://groups.google.com/group/discussion_vu?hl=en.
>> >>> >>
>> >>> >
>> >>> > --
>> >>> > You received this message because you are subscribed to the Google
>> >>> > Groups
>> >>> > "Virtual University of Pakistan" group.
>> >>> > To post to this group, send email to discussion_vu@googlegroups.com.
>> >>> > To unsubscribe from this group, send email to
>> >>> > discussion_vu+unsubscribe@googlegroups.com.
>> >>> > For more options, visit this group at
>> >>> > http://groups.google.com/group/discussion_vu?hl=en.
>> >>> >
>> >>> >
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> "Virtual University of Pakistan" group.
>> >>> To post to this group, send email to discussion_vu@googlegroups.com.
>> >>> To unsubscribe from this group, send email to
>> >>> discussion_vu+unsubscribe@googlegroups.com.
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/discussion_vu?hl=en.
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> Muhammad Umer Majeed
>> >> MBA(Finance)6thSemester
>> >> Faisalabad.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> Groups
>> >> "Virtual University of Pakistan" group.
>> >> To post to this group, send email to discussion_vu@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> discussion_vu+unsubscribe@googlegroups.com.
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/discussion_vu?hl=en.
>> >>
>> >>
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Virtual University of Pakistan" group.
>> To post to this group, send email to discussion_vu@googlegroups.com.
>> To unsubscribe from this group, send email to
>> discussion_vu+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/discussion_vu?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Virtual University of Pakistan" group.
> To post to this group, send email to discussion_vu@googlegroups.com.
> To unsubscribe from this group, send email to
> discussion_vu+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/discussion_vu?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

PAID CONTENT