| | |
simple help
![]() |
•
•
Join Date: Aug 2006
Posts: 4
Reputation:
Solved Threads: 0
hi,
can anybody write a simple java program for the following pleasee..
coz i have loads of projects in my skool and i have to submit this within 2 days..coz i have to design an interface for this too
"there are 20 houses 15 small houses and 5 big houses.if someone enters s/S it must reserve a small house,if he enters b/B then a big house should be reserved.if all the small houses are reserved ask the user do he want to reserve a gig house,if yes make the reservation or display the message sorry...befor reservin the house ask the user do he want to reserve it for a party or for a holiday. and record the number of days the user plans to stay.
prompt the user to enter c if he wants to pay from cash or cc by credit card..all the credit card payments are liable for a 2.5% additional charge.
finally the system should calculate the total cost according to the charges as following
big house--- for a party 5000
for a holiday 10000
small house--- for a party 2000
for a holiday 6000
"
pls can some one give me the code for the above program..dont need a GUI interface justa simple command line interface is enough...please help mee to solve this
thank you
can anybody write a simple java program for the following pleasee..
coz i have loads of projects in my skool and i have to submit this within 2 days..coz i have to design an interface for this too
"there are 20 houses 15 small houses and 5 big houses.if someone enters s/S it must reserve a small house,if he enters b/B then a big house should be reserved.if all the small houses are reserved ask the user do he want to reserve a gig house,if yes make the reservation or display the message sorry...befor reservin the house ask the user do he want to reserve it for a party or for a holiday. and record the number of days the user plans to stay.
prompt the user to enter c if he wants to pay from cash or cc by credit card..all the credit card payments are liable for a 2.5% additional charge.
finally the system should calculate the total cost according to the charges as following
big house--- for a party 5000
for a holiday 10000
small house--- for a party 2000
for a holiday 6000
"
pls can some one give me the code for the above program..dont need a GUI interface justa simple command line interface is enough...please help mee to solve this
thank you
Think Scanner and a couple of loops. That's all you need, and from us, for your homework, that is all you will get until you do something yourself.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- How do i create a simple game using c++?? (C++)
- Please suggest a very simple web design app (Site Layout and Usability)
- A C++ Simple Address book (C++)
- PCI Simple Communication Controller (Windows NT / 2000 / XP)
- PCI Simple Communication Controller (Windows NT / 2000 / XP)
- need help in creating simple line editor (C++)
- Simple (I think) Code Question (PHP)
- A simple question about CMOS batteries (Motherboards, CPUs and RAM)
- Simple answer for vexing problem? (OS X)
Other Threads in the Java Forum
- Previous Thread: Making an im program
- Next Thread: Java problems
| Thread Tools | Search this Thread |
account android api applet application array arrays automation awt bidirectional binary birt bluetooth busy_handler(null) chat class classes client code columns component database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source plazmic print problem program programming project property recursion ria scanner search server set smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree webservices windows






