php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs201 solution idea on 15th April 2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Do not copy the whole code. Try to make changes. Like change the variable name and also change the function name. It will be better. the Good programming practice is this give comments then it will be fine.
[Image: cplusplus.jpg]
#include<conio.h>
#include<iostream.h>
void rent(void);
main()
{

rent();

getch();
}
void rent(void)
{
char option,customer_name[15],car_no[7];
int carmodel,days,rentamount,chargamount;
cout<<"please provide customer name:"<<endl;
cin>>cus_name;
cout<<"please provide car model description\n Enter 'A' for model 2009.\nEnter 'B' for

model 2010.\nEnter 'C' for model 2011.\n"<<endl;
cin>>option;
cout<<"please provide car No:"<<endl;
cin>>car_no;
cout<<"please provide number of Day's"<<endl;
cin>>days;
if(option=='A')
{
model=2009;
charged_amount=5000;
cout<<"customer name: "<<customer_name<<endl;
cout<<"Car Model : "<<carmodel<<endl;
cout<<"Number of days: "<<days<<endl;
cout<<"Car No. : "<<carno<<endl;
rentamount=chargamount*days;
cout<<"Your Rental Amount is: "<<rentamount<<endl;

}
else if(option=='B')
{
model=2010;
charged_amount=8000;
cout<<"customer name: "<<customer_name<<endl;
cout<<"Car Model : "<<carmodel<<endl;
cout<<"Number of days: "<<days<<endl;
cout<<"Car No. : "<<carno<<endl;
rentamount=chargamount*days;
cout<<"Your Rental Amount is: "<<rentamount<<endl;
}
else if(option=='C')
{
model=2011;
charged_amount=10000;
cout<<"customer name: "<<customer_name<<endl;
cout<<"Car Model : "<<carmodel<<endl;
cout<<"Number of days: "<<days<<endl;
cout<<"Car No. : "<<carno<<endl;
rentamount=chargamount*days;
cout<<"Your Rental Amount is: "<<rentamount<<endl;
}
else
cout<<"You must be enter only A,B,C Right Now"<<endl;
}

Please make some change Otherwise U get 0 marks Confusedmileys4:


Attached Files
.zip   ass.zip (Size: 541 bytes / Downloads: 319)
Reply


Messages In This Thread
cs201 solution idea on 15th April 2011 - by allahwahid - 04-15-2011, 07:16 AM
cs201 solution idea on 15th April 2011 - by Xpert - 04-16-2011, 03:02 PM
cs201 solution idea on 15th April 2011 - by abira - 04-18-2011, 05:57 PM
cs201 solution idea on 15th April 2011 - by abira - 04-18-2011, 05:57 PM
cs201 solution idea on 15th April 2011 - by Xpert - 04-18-2011, 07:03 PM
cs201 solution idea on 15th April 2011 - by Xpert - 04-19-2011, 04:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  get your solution in 24 hours 2020 Xpert 0 8,852 10-11-2020, 10:09 PM
Last Post: Xpert
  get your solution in 24 hours 2020 Xpert 0 3,224 10-11-2020, 10:09 PM
Last Post: Xpert
  vuhelp.com forum is providing solution of virutal university students in 24 hour 2014 Xpert 3 2,525 11-17-2014, 06:11 PM
Last Post: leo861323
  GDB of FIN730 - Investment Analysis & Portfolio Management (Need Solution) Muhammad Husnain Mughal 1 1,913 05-15-2014, 08:21 PM
Last Post: hondasr8
  GDB of FIN723 - Taxation Management (Need Solution) Muhammad Husnain Mughal 1 2,964 05-07-2014, 04:09 AM
Last Post: Vuhelper
  Need ACC501 - Business Finance Assignment No 2 Solution. Umar Abbas 2 4,288 02-07-2014, 08:23 PM
Last Post: Umar Abbas
  operating assinment solution help nenanena 9 6,168 08-18-2013, 03:53 AM
Last Post: Xpert
  Need Assignments solution detailer 2 3,194 11-21-2012, 02:52 PM
Last Post: Vuhelper
  need fall 2012 mgt111 gdb solution urgently eshal ch 1 3,109 11-16-2012, 12:16 AM
Last Post: Vuhelper
  Urgent need Cs201 first assignmt solution r_traveler 4 2,303 11-07-2012, 01:47 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 2 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support