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
#3
i am using these cods but output is not display.

Code:
#include <iostream.h> main() { int days; int rent; char model; char name; char carNo; cout <<"Please provide customer name : \t"; cin >>name; cout <<"Please Provide the model discription:\n"; cout <<"\t Enter 'A' for Model 2009 :\n"; cout <<"\t Enter 'B' for Model 2010 :\n"; cout <<"\t Enter 'C' for Model 2011 :\n"; cin >>model; cout <<"Please Provide the following discription:"; cout <<"\nCarNo.\t\t"; cin >>carNo; cout << "Enter days."; cin >>days; cout <<"\nRent per day for 2009 is Rs. 5000. \n"; cout <<"Rent per day for 2010 is Rs. 8000. \n"; cout <<"Rent per day for 2009 is Rs. 10000. \n"; switch(model) { case 'A': case 'a': cout << "Customer Name \t" <<name; cout << "Car Model \t2009\n"; cout << "Car No.\t" <<carNo; cout << "No of days\n" << days; rent= amount(model*days); cout <<"Your rental amount is :\t" << rent; break; case 'B': case 'b': cout << "Customer Name \t" <<name; cout << "Car Model \t2010\n"; cout << "Car No.\t" <<carNo; cout << "No of days\n" << days; rent= (days*8000); cout <<"Your rental amount is :\t" << rent; break; case 'C': case 'c': cout << "Customer Name \t" <<name; cout << "Car Model \t2011\n"; cout << "Car No.\t" <<carNo ; cout << "No of days\n" << days; rent= (days*10000); cout <<"Your rental amount is :\t" << rent; break; defualt: 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); }
error code bhi tu batao also attach .cpp file please
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 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,962 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,233 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,028 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