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

please review it and correct it 

#include <iostream>

using namespace std;


main()
{
int typ;
int unit;
int cus_nub;
int days,bill;

cout "1-----------Domectice User:";
cout "2-----------Commercial User:\n";
cout "Please Choose your chpice From the Above menu:\n";
cin>> typ;

switch (typ)

{
case (typ == 1):


cout "Please enter the customer number:";
cin>>cus_nub;
cout "Please enter unit consumed:";
cin>>uint;
cout "Please enter number of days:";
cin>>days;
if ( uint 100=<, )
{
bill=uint * 5 }
else if (unit 101=> && =>300)
{ bill = ((uint*8)+100)
}
else if (uint 301=> && =>500)
{ bill = ((unit * 10) + 230)}
}
break;
case (typ == 2)
cout t "Please enter the customer number:";
cin>>cus_nub;
cout "Please enter unit consumed:";
cin>>uint;
cout "Please enter number of days:";
cin>>days;
bill = uint*15
}}

if (days 11=>)
{ bill = bill +200 }
cout " Aount to be paid by te custoer No."cus_nub "is" bill n/;


break;
default:

cout "invalid entry\n";
break;}

}
)

+ 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: 2398

.

+ 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

qaiser abbas gud & thanks 

cs201..solution

Attachments:

this is above corrected assignment

this is completely correct

#include <iostream.h>
float dom_user(int,int,int);
float com_user(int,int,int);
main()
{
int typ;
int unit;
int cus_nub;
int days;
cout"1-----------Domectice User:\n";
cout"2-----------Commercial User:\n";
cout"Please Choose your choice From the Above menu:";
cin>> typ;
while(typ<1000)
{
cout"Please enter the customer number:";
cin>>cus_nub;
cout"Please enter unit consumed:";
cin>>unit;
cout"Please enter number of days:";
cin>>days;

switch(typ)
{
case 1:
dom_user(cus_nub,unit,days);
break;

case 2:
com_user(cus_nub,unit,days);
break;

default:
cout"invalid entry\n";
}
system("pause");
}
}
float dom_user(int cus_nub,int unit,int days)
{
float bill;
if(unit<101)
{
bill=unit * 5;
}
else if(unit>101 && unit<301)
{
bill = ((unit*8)+100);
}
else if(unit>301 && unit<501)
{
bill = ((unit * 10) + 230);
}
cout" Amount to be paid by te custoer No."cus_nub"is" bill"\n";
}
float com_user(int cus_nub,int unit,int days)
{
float bill;
bill = unit*15;
if(days>10)
{
bill = bill +200;
}
cout" Amount to be paid by te custoer No."cus_nub"is" bill"\n";
}

 ash gud & thanks 

Note @ All: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

its coreect

It's wrong as you didn't use the functions

Thanks 

it is not completly correct, program do not exit if we enter any other number except 1 or 2 (user type). it is compulsory .though default : "pause" , is set but i chked it , its realy dont exit .plz look into this matter. i tried to find out the problem but still not,  thanks ash.

i diidnt notice about that no i have changed the above file with correct file

RSS

Latest Activity

+ Iuuoɔǝut + added a discussion to the group MGT101 Financial Accounting
2 minutes ago
Rameesha left a comment for Safdar rehman
2 minutes ago
+++ Little ChAmp=== updated their profile
4 minutes ago
stylo liked stylo's discussion entazar
5 minutes ago
Babar ali updated their profile
7 minutes ago
+ ! ! ! ! ! AaiMa AnsaRi liked + M.Tariq Malik's group MGT211 Introduction To Business
12 minutes ago
Purple Work replied to + M.Tariq Malik's discussion MGT503 Assignment No 01 Fall 2019 Solution & Discussion in the group MGT503 Principles of Management
23 minutes ago
Rameesha joined + M.Tariq Malik's group
24 minutes ago
Rameesha replied to + M.Tariq Malik's discussion MGT211 GDB Fall 2019 Solution & Discussion in the group MGT211 Introduction To Business
25 minutes ago
Rameesha joined + M.Tariq Malik's group
26 minutes ago
ghazni replied to + M.Tariq Malik's discussion CS311 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 15-11-2019 in the group CS311 Introduction to Web Services Development
28 minutes ago
ghazni joined + M.Tariq Malik's group
28 minutes ago
Rameesha posted a status
"Plz moje b reply kar do koi"
35 minutes ago
ghazni left a comment for Nabeel Ahmed
36 minutes ago
Sana fatima replied to + M.Tariq Malik's discussion CS304 Assignment No 01 Fall 2019 Solution & Discussion in the group CS304 Object Oriented Programming
37 minutes ago
Rameesha replied to + M.Tariq Malik's discussion Criteria Required for Award Badges, Featured Members & Moderators
41 minutes ago
Rameesha posted a status
"Plz send me solution of assignment no 1 of mth202"
48 minutes ago
Rameesha commented on + M.Tariq Malik's page Past Papers
49 minutes ago
Hamza - BCS (6th) and Saleem Maheen are now friends
53 minutes ago
Rameesha liked Ayaat's profile
53 minutes ago

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

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