php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs201 assignment no 1 April 12 Spring 2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#2
plz find the code and make changes

Code:
#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; }


Attached Files
.zip   solution of CS201 by .zip (Size: 757 bytes / Downloads: 424)
Reply


Messages In This Thread
cs201 assignment no 1 April 12 Spring 2011 - by Xpert - 04-13-2011, 04:29 AM
cs201 assignment no 1 April 12 Spring 2011 - by Vuhelper - 04-14-2011, 05:55 PM
cs201 assignment no 1 April 12 Spring 2011 - by gm mughal - 04-18-2011, 03:02 AM
cs201 assignment no 1 April 12 Spring 2011 - by Xpert - 04-19-2011, 02:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,374 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,963 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,992 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,234 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,300 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,029 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,718 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,856 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,755 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,856 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


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