Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  India NewsIndia News  
Keywords
computer 10th sample Icse programs result CHEMISTRY 2008 Exam SYLLABUS time 2009 class question english Results timetable TEST table java practical 2011 maths board PAPERS MODEL
Latest topics
» optical fibre????
Fri May 18, 2012 8:54 pm by mahnoorbloch

» physics............
Fri May 18, 2012 8:43 pm by mahnoorbloch

» magnetism...........chapter
Fri May 18, 2012 8:33 pm by mahnoorbloch

» ac generator
Fri May 18, 2012 7:46 pm by mahnoorbloch

» Great website for maths
Sun May 06, 2012 9:39 am by mahnoorbloch

» BlueJ prog
Tue Apr 24, 2012 11:53 am by arryaan

» GBTU SEE 2012 22 April
Sat Apr 21, 2012 11:17 am by shreya94

» GBTU SEE or UPTU SEE 2012 Expected cutoff marks
Sat Apr 21, 2012 11:16 am by shreya94

» GBTU SEE 2012 UPTU SEE 2012 Solutions Answer key discussion
Sat Apr 21, 2012 11:15 am by shreya94

Top posters
abhas
 
Anu..i luv icse...:)
 
G-7
 
siya
 
Candy
 
jOhNy
 
Apurva
 
WinRrule
 
ambili
 
saif
 



Search if you can't find it here

computer project HELP needed in writing IF ELSE programs????

View previous topic View next topic Go down
AuthorMessage
princess33




PostSubject: computer project HELP needed in writing IF ELSE programs???? Sun Dec 27, 2009 1:17 am

i need a program having the following details--
to make an electricity bill
-accept from user .....name ,consumer no.,no.of.units consumed,meter no. ,address,bill--------------------
HOW TO ACCEPT NAME...BLA BLA .....FROM USER???????????? PLZ EXPLAIN ME HOW TO START

- USE IF ELSE /SWITCH CASE

UNITS RATE
50 UNITS Rs 1.45 per unit
NEXT 50 UNITS Rs 2.80 ''
next 100units rs. 3.05 ''
next 100 units rs.4.75 "


Last edited by princess33 on Sun Dec 27, 2009 4:38 pm; edited 1 time in total
Back to top Go down
View user profile
princess33




PostSubject: Re: computer project HELP needed in writing IF ELSE programs???? Sun Dec 27, 2009 1:23 am

//////////////////////
Back to top Go down
View user profile
abhas
Active member
Active member



PostSubject: Re: computer project HELP needed in writing IF ELSE programs???? Sun Dec 27, 2009 12:20 pm

//input name ,consumer no.,no.of.units consumed,meter no. ,address,bill consumed in //variable n,c,u,mn,ad of proper data type

if(u<=50)
bill=(double)1.45*u;
else if(u<=100)
bill=(double)(1.45*50+ (u-50)*2.80);
....
....


use this logic to make the whole prog. take variable bill as double data type....

Make the complete program and if there is any error then post ur code here...
Back to top Go down
View user profile
sahilsweetypie




PostSubject: Re: computer project HELP needed in writing IF ELSE programs???? Tue Nov 09, 2010 11:40 am

listen, first start from all the inputs then continue throughout with the if statement n then use else if n at last place an else________
u r done ____
jst compile n enjoy__________Smile
Back to top Go down
View user profile

computer project HELP needed in writing IF ELSE programs????

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: Computer :: Computer Question answers-