We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students,

The solutions of assignment # 5 that are posted here till now are not correct, The perfect solution consist of less then 100 lines of code, there are many wrong solutions of more then 300 lines of code, be careful, think before submit, as previous i must post perfect solution before grace day, wait for perfection,

keep smiling

Best of Luck 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1901

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

Dear Students,

The solutions of assignment # 5 that are posted here till now are not correct, The perfect solution consist of less then 100 lines of code, there are many wrong solutions of more then 300 lines of code, be careful, think before submit, as previous i must post perfect solution before grace day, wait for perfection,

keep smiling

Best of Luck 

 

Tahir bhai y r u delaying it on grace day???? light ki kitni prob hai & kbhi lms mein prob ajati hai..plz it could b risky..ap ne sol dena hi hai to plz aj last date hai aj de dein..it will b very kind of u...

Thank you..!!

plz correct solution aj hi upload kry.....

Tahir mere bhia,, k do jani aj he,,,, q wait krwa rahy ho hum ghribo ko

inta wait kon karta hi light chali jaye gey

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

using namespace std;

// ************************ Customer Class **************************

class Customer
{
private:      // ************* Private Data Members
        char Name[100];
        int CustomerID, Spending ;
public:      
       Customer();              // Simple Constructor
       friend ostream &operator ( ostream & , Customer & ) ; // Overloaded operator
       friend istream &operator >> (istream & , Customer & ) ; // Overloaded >> operator
};


int main()
{
         cout "\n" ;
         Customer obj ;     
         cin >> obj ;      
         cout obj ;      
 
    system ("PAUSE") ;
    return 0;
}

/* ************************ Constructor Definition */
Customer::Customer()
{
                    strcpy ( Name , "No Name" ) ;
                    CustomerID = Spending = 0 ;
}

/* ************************ operator   Definition */
ostream &operator ( ostream &out , Customer &obj )
{
        out "\n\n**************************Customer Billing Information*************************\n\n";
        out "  Name     *************** " obj.Name "\n";
        out "  ID       *************** " obj.CustomerID "\n";
        out "  Spending *************** " obj.Spending "\n";
        
        float Tax, Discount;
        
        if(obj.Spending<5000)
        {
                             Tax = obj.Spending*.05 ;
                             Discount = obj.Spending*.01 ;
        }
        
        else if(obj.Spending<10000)
        {
                             Tax = obj.Spending*.1 ;
                             Discount = obj.Spending*.02 ;
        }
        
        else 
        {
                             Tax = obj.Spending*.15 ;
                             Discount = obj.Spending*.03 ;
        }

        out "  Tax      *************** " Tax "\n" ;
        out "  Discount *************** " Discount "\n" ;
        out "  Total    *************** " obj.Spending+Tax-Discount "\n" ;
        return out;
}

/* ************************ operator >>  Definition */
istream &operator >> (istream &in, Customer &obj)
{
        cout " Enter name of the customer : " ;
        in.getline( obj.Name , 100 , '\n' ) ;        
        cout " Enter ID of the customer : " ;
        return in;
}

check this

this is not the required solution

17 errors hain..........

TAHIR PLZ AP SOL JALDI UPLOAD KR DAIN NA ..... YAHN TO CAMPUS MAI B LITE NAI HOTI ....!

hmmm

Tahir Ramzan

good keep it up

i hope tahir  u must upload the solution today...............

intahi beycar site hi

useless website

RSS

Latest Activity

BILAL Maher replied to + M.Tariq Malik's discussion CS401 Assignment No 01 Fall 2019 Solution & Discussion in the group CS401 Computer Architecture and Assembly Language Programming
3 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to Moji's discussion Assignment #1 Semester FALL 2019 Physics (PHY101)
53 minutes ago
Asmat replied to + "J ɨ y ą ⋆'s discussion CS501 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 12-11-2019 in the group CS501 Advance Computer Architecture
1 hour ago
+!!! NOOR UL JANAT !!!+ replied to Rana Ali's discussion Alfaz
1 hour ago
Rana Ali replied to Rana Ali's discussion Alfaz
2 hours ago
Rana Ali liked Rana Ali's discussion Alfaz
2 hours ago
Rana Ali liked Rana Ali's discussion Psy511 assignment no 1
2 hours ago
Rana Ali added a discussion to the group PSY511 Environmental Psychology
2 hours ago
Rana Ali liked + M.Tariq Malik's group PSY511 Environmental Psychology
2 hours ago
Rana Ali joined + M.Tariq Malik's group
2 hours ago
Rana Ali liked + M.Tariq Malik's discussion EDU302 Human Development and Learning Assignment No 01 Fall 2019 Solution & Discussion
2 hours ago
MUHAMMAD USMAN replied to MIT's discussion Operating Systems(CS604) Assignment # 01 Deadline Date 16-11-2019 in the group CS604 Operating Systems
2 hours ago
Muhammad Awais replied to Usman Mughal's discussion Assignment No. 01 Semester: Fall 2019 in the group CS101 Introduction to Computing
3 hours ago
Muhammad Awais joined + M.Tariq Malik's group
3 hours ago
Farhan Amin replied to Farhan Amin's discussion your vu email address will deleted
4 hours ago
Farhan Amin replied to Farhan Amin's discussion your vu email address will deleted
4 hours ago
+ ! ! ! ! ! AaiMa AnsaRi liked + M.Tariq Malik's discussion CS201 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019
5 hours ago
+ ! ! ! ! ! AaiMa AnsaRi replied to + M.Tariq Malik's discussion MGT211 GDB Fall 2019 Solution & Discussion in the group MGT211 Introduction To Business
5 hours ago
+ ! ! ! ! ! AaiMa AnsaRi joined + M.Tariq Malik's group
5 hours ago
+ ! ! ! ! ! AaiMa AnsaRi liked + M.Tariq Malik's discussion MGT211 GDB Fall 2019 Solution & Discussion
5 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service