All help me to find this program its really import...
i've nokia 6500 slide
u know its s40 i searched on a program to make my cam into a webcam but i just found .sis programs for symbian 60 so pls help me all to find a program for that
The only one that i've seen that's compatible with series 40 is this this one.
Message Edited by psychomania on 12-Jun-2008 08:32 AM
Similar Messages
-
Can anyone help me to find this program?
I bought E90 yesterday,the first thing that i did was update the firmware.
But i noticed one program that i love has gone.
I cannot remember its name,but the icon and features can.
The icons looks like a globe and from behind the globe plane coming out.
The feautures are:
Weather for 3 days (sometimes shows 2):
Currency:
World map with time:
And some more,total of 6
To use other 3 you have to buy the software
The weather,currency and world map is free for use
nokia 8210->3310->3330->8890->6800->3220->6680->n72->E-90->5310XM->5610Xm->n82->n95 8gb->5800XM 8gb->2630
Solved!
Go to Solution.Yes!
Thank you very much!
Message Edited by dimauae on 27-Apr-2008 08:42 PM
nokia 8210->3310->3330->8890->6800->3220->6680->n72->E-90->5310XM->5610Xm->n82->n95 8gb->5800XM 8gb->2630 -
I make a backup of the iPhone and after that worked Ri Storr lost version reserve two MacBook Air and thus lost all contacts and pictures in my phone I hope help me to recover because of its great importance knowing that Alitonz Copies old from backup from Prepare other iPod does notretains only a new version of the iPhone after the irrigation Store
TS2529 I make a backup for my iPhone and after that I worked Re Storeto it than when i select re stor backup I lost version reserve from MacBook Air and lost all contacts and pictures in my phone I hope help me to recover my last backup because of its great importance
note ihave 2 Copies old backup in ituns from my ipad i dont losat
plz help my myenglish langauge is baaaad -
HT3680 where can i find this program after reading the whole story?
where can i find this program after reading the whole story?
could this knowledge base article be what your looking for?:
HT3680 -
Hi, in my IMac I, have not install a softwear call Motrorola and is asking for update, so my queestion is how do i find this program and delete and other that I have not install in my IMac. And how do I, maintenance on my computer running good and keep it free from any virus.
Thank You.rkaufmann87 wrote:
Regarding "install a softwear call Motrorola" please provide additional information such as where you got this app and why you want to install it. It sounds like it's for some type of Motorola device so please provide additional information.
The quote was "I have not install a softwear call Motrorola" (my emphasis).
But something with that name is asking to update.
gabrielneron
As Motorola's primary product line is mobile phones, could you have put some 'phone syncing software on your Mac? -
hi all, my cisco router linksys E2000 stop working need to up date Mac OS 10.5.8 later or 10.5.8 or later or 10.6.1 or later where do i find this up date im new on mac computer please help
I just visited the Linksys e2000 page, I think you need 10.6. You can buy it here:
http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard -
Can some one help me to execute this program
Curve is not displayed when this program is executed
Write an applet to draw a red curve on a blue back ground which follows your mouse pointer.
Use anonymous inner classes.
import java.applet.*;
import java.awt.event.*;
import java.awt.*;
<applet code="Curve" width=200 height=100>
</applet>
public class Curve extends Applet {
int x, y;
String msg = " ";
public void init() {
setBackground(Color.blue);
setForeground(Color.red);
addMouseMotionListener(new MouseMotionAdapter(){
public void mouseMoved(MouseEvent me) {
msg = "*";
x = me.getX();
y = me.getY();
showStatus("x="+x+" "+"y="+y);
repaint(x, y, 1, 1);
public void paint(Graphics g) {
g.drawString(msg,x, y);
}I buffered it then it started working but problem is buffer size is
limited. When the buffer is full then we have to start fresh again.You have made a buffer with two arrays of ints - and that allows you to
paint the last 300 mouse positions. This is OK if you want the curve to
have a fixed length: a bit like a snake following the pointer around.
To avoid losing the whole curve you can initialise the x[] and y[] arrays
to something "offscreen". For example fill both arrays with -100. Then
in your paint() method you should draw all 300 positions.
If you want the complete curve from the start with nothing lost then you
are going to have to use a different sort of buffer. What you do is to
create a BufferedImage the same size as your applet. When you create
it you fill the buffered image with the background colour of your applet.
In the mouseMoved() method you draw the * at the appropriate place into
the buffered image. (There are other drawing strategies at this point:
you could draw a line connecting this point to the previous one.)
Finally in paint() you simply draw the whole buffered image into the
applet's window.
There is a discussion and example of using images as buffers this way
in Sun's Tutorial here: http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html
repaint (int x, int y, int width, int height) - How this method works.This method says that a part of the applet's window should be
repainted as soon as possible. repaint() without any arguments is
used to signal that all of the window should be repainted.
I would not worry about the 4 argument form at this stage - get
something working first. Later you might find the 4 argument form is
more effecient.
Is there any reason why you're using Applet and not JApplet? If not,
I would use the newer classes. In that case you'll get the best help in
the Swing forum. -
CAn Someone Please Help me? Turn this program in a algorithm
DECLARE SUB RentCar ()
DECLARE SUB PayBill ()
DECLARE SUB Main ()
DECLARE SUB ReadCarData ()
DECLARE SUB FindCar ()
TYPE Car ' User made Type To hold Car Data
CarNumber AS INTEGER
License AS STRING * 8
Year AS INTEGER
CarMaker AS STRING * 16
CarName AS STRING * 16
Description AS STRING * 20
ColorOfCar AS STRING * 10
NumberOfDoors AS INTEGER
Price AS DOUBLE
Rented AS INTEGER
Customer AS INTEGER
END TYPE
TYPE Customer ' User made Type to hold Customer data
CustomerNumber AS INTEGER
CustName AS STRING * 50
Bill AS DOUBLE
END TYPE
DIM SHARED Cars(1 TO 26) AS Car ' Global Variables
DIM SHARED p(4) AS Customer
DIM CustName AS STRING * 50
p(0).CustName = "Kevin" ' Assign Customers who need to pay bills
p(0).Bill = 0
p(1).CustName = "Eljah"
p(1).Bill = 100
p(2).CustName = "Jared"
p(2).Bill = 55
p(3).CustName = "Claudwin"
p(3).Bill = 60
p(4).CustName = "Isaac"
p(4).Bill = 1500
CALL ReadCarData ' This reads the data statements into the Cars() array.
WIDTH 80, 50 ' Formats screen and call the main part of the program
CALL Main
' CAR DATA STATEMENTS
' LICENSE YEAR MAKER MODEL DESCRIPTION COLOR DOORS PRICE
DATA "X-5687", 2007, "DODGE", "CALIBER", "FAMILY CAR", "DARK RED", 4, 89.99
DATA "X-9681", 2006, "DODGE", "CHARGER", "SPORT", "GREY", 4, 47.99
DATA "X-9684", 2006, "DODGE", "RAM 2500", "PICKUP", "BLACK", 4, 101.99
DATA "X-9437", 2004, "FORD", "MUSTANG", "SPORT", "RED", 2, 45.99
DATA "X-2562", 2002, "FORD", "TAURUS", "SEDAN", "LIGHT GREY", 4, 67.99
DATA "X-3856", 2003, "FORD", "CONTOUR", "SMALL", "LIGHT BLUE", 2, 45.99
DATA "X-2724", 2001, "FORD", "BRONCO", "JEEP", "BLACK", 4, 63.99
DATA "X-2724", 2001, "FORD", "BRONCO", "JEEP", "DARK GREEN", 4, 63.99
DATA "X-8568", 1998, "FORD", "ESCORT", "COMPACT", "BROWN", 2, 35.99
DATA "X-4724", 2004, "FORD", "PROBE", "SPORT", "BLACK", 2, 58.99
DATA "X-4724", 2004, "FORD", "PROBE", "SPORT", "RED", 2, 58.99
DATA "X-4724", 2004, "FORD", "PROBE", "SPORT", "YELLOW", 2, 58.99
DATA "X-4724", 2003, "FORD", "AEROSTAR", "S.U.V.", "DARK GREEN", 4, 87.99
DATA "X-2727", 1999, "PONTIAC", "GRAND AM", "SPORT CAR", "BLACK", 2, 45.99
DATA "X-2327", 1999, "PONTIAC", "GRAND AM", "SPORT CAR", "RED", 2, 45.99
DATA "X-2767", 1999, "PONTIAC", "GRAND AM", "SPORT CAR", "GREY", 2, 45.99
DATA "X-2723", 1999, "PONTIAC", "GRAND AM", "SPORT CAR", "PURPLE", 2, 45.99
DATA "X-8486", 2005, "PONTIAC", "TRANSPORT", "S.U.V.", "WHITE", 2, 96.99
DATA "X-3261", 2005, "PONTIAC", "AZTEC", "S.U.V.", "YELLOW", 4, 93.99
DATA "X-1864", 2006, "PONTIAC", "TORRENT", "S.U.V.", "RED", 4, 98.99
DATA "X-8521", 2006, "MERCURY", "COUGAR", "SPORT", "BLACK", 2, 69.99
DATA "X-8471", 2006, "LINCOLN", "TOWN CAR", "LUXURY", "BLACK", 4, 149.99
DATA "X-8635", 2001, "LINCOLN", "CONTINENTAL", "LUXURY", "GOLD", 4, 139.99
DATA "X-2643", 2006, "CHEVROLET", "F-150", "PICKUP", "GREY", 2, 95.99
DATA "X-7143", 2006, "CHEVROLET", "CORVETTE", "SPORT", "YELLOW", 2, 131.99
DATA "X-7378", 2006, "CHEVROLET", "MALIBU", "SEDAN", "BLACK", 4, 81.99
SUB FindCar ' This sub goes through the data to search for a car
DIM Counter AS INTEGER 'variables need for sub
DIM TempMaker AS STRING
DIM TempModel AS STRING
DIM TempColor AS STRING
DIM TempCarType AS STRING
DIM TempRangeFrom AS DOUBLE
DIM TempRangeTo AS DOUBLE
DIM TempMax AS DOUBLE
DIM TempMin AS DOUBLE
DIM LeaveFindCar AS INTEGER
DIM MoreCar AS STRING
DIM CanDisplay AS INTEGER
DO WHILE LeaveFindCar = 0 ' Main loop to find type of car
' Initialize the variables
Counter = 0
TempMaker = ""
TempModel = ""
TempColor = ""
TempRangeFrom = 0
TempRangeTo = 0
CLS ' Draw the screen with the search fields"
COLOR 15
PRINT "FIND IDEAL CAR: (Enter one or more of these items)"
PRINT STRING$(80, CHR$(196))
COLOR 11
PRINT "Car Builder:"
PRINT "Car Model:"
PRINT "Car Color:"
PRINT "Price Range: From: To:"
COLOR 10 ' GetsUser can enter any search fields he wants
LOCATE 3, 19
INPUT TempMaker
LOCATE 4, 19
INPUT TempModel
LOCATE 5, 19
INPUT TempColor
LOCATE 6, 19
INPUT TempRangeFrom
LOCATE 6, 36
INPUT TempRangeTo
COLOR 15
PRINT STRING$(80, CHR$(196))
CanDisplay = 0
FOR Counter = 1 TO 26 '' This loop does the actual search of the matching cars
'We compare all string type variables as an
'uppercase (UCASE$) and Right Trimmed (RTRIM$)
'to avoid having to compare upper and lower case
'Values, this makes the condtions here twice
'as short to perform.
IF RTRIM$(TempMaker) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).CarMaker)) = UCASE$(RTRIM$(TempMaker)) THEN
IF RTRIM$(TempModel) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).CarName)) = UCASE$(RTRIM$(TempModel)) THEN
IF RTRIM$(TempColor) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).ColorOfCar)) = UCASE$(RTRIM$(TempColor)) THEN
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
' If Price of car is in between Mininum and Maximum Price
'Allows to display the record.
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
END IF
ELSE
CanDisplay = 0
END IF
ELSE
' The IF is to set Min to the smallest of
' the range vales and TempMax to the biggest.
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
END IF
END IF
ELSE
CanDisplay = 0
END IF
ELSE
IF RTRIM$(TempColor) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).ColorOfCar)) = UCASE$(RTRIM$(TempColor)) THEN
' This IF is to set Min to the smallest of
' the range values and Max to the biggest.
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
END IF
ELSE
CanDisplay = 0
END IF
ELSE
' The IF is to set Min to the smallest of
' the range vales and Max to the biggest.
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSEIF TempRangeFrom = 0 AND TempRangeTo > 0 THEN ' The IF one of the range to be 0
TempMin = TempRangeFrom
TempMax = TempRangeTo
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSEIF TempRangeFrom > 0 AND TempRangeTo = 0 THEN ' This IF one of the range to be 0
TempMin = TempRangeTo
TempMax = TempRangeFrom
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSE
CanDisplay = 1
END IF
END IF
END IF
END IF
ELSE
'Same as previously, all string variables are UCASEd and
'RTRIMmed to shorten the comparison lenghts.
IF RTRIM$(TempModel) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).CarName)) = UCASE$(RTRIM$(TempModel)) THEN
IF RTRIM$(TempColor) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).ColorOfCar)) = UCASE$(RTRIM$(TempColor)) THEN
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
' This IF is to setMin to the smallest of
' the range vales and Max to the biggest
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
END IF
ELSE
CanDisplay = 0
END IF
ELSE
' This IF is to setMin to the smallest of
' the range vales and Max to the biggest
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
END IF
END IF
ELSE
CanDisplay = 0
END IF
ELSE
IF RTRIM$(TempColor) <> "" THEN
IF UCASE$(RTRIM$(Cars(Counter).ColorOfCar)) = UCASE$(RTRIM$(TempColor)) THEN
' This IF is to setMin to the smallest of
' the range vales and Max to the biggest
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSE
CanDisplay = 1
END IF
ELSE
CanDisplay = 0
END IF
ELSE
' This IF is to setMin to the smallest of
' the range vales and Max to the biggest
IF TempRangeFrom > 0 AND TempRangeTo > 0 THEN
IF TempRangeFrom > TempRangeTo THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
ELSE
TempMin = TempRangeFrom
TempMax = TempRangeTo
END IF
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSEIF TempRangeFrom = 0 AND TempRangeTo > 0 THEN
TempMin = TempRangeFrom
TempMax = TempRangeTo
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSEIF TempRangeFrom > 0 AND TempRangeTo = 0 THEN
TempMin = TempRangeTo
TempMax = TempRangeFrom
IF Cars(Counter).Price >= TempMin AND Cars(Counter).Price <= TempMax THEN
CanDisplay = 1
ELSE
CanDisplay = 0
END IF
ELSE
CanDisplay = 1
END IF
END IF
END IF
END IF
IF CanDisplay = 1 THEN ' If car match fields entered it is displayed
COLOR 11
PRINT Cars(Counter).CarNumber;
PRINT " " + RTRIM$(Cars(Counter).License);
PRINT " - " + RTRIM$(Cars(Counter).CarMaker);
PRINT " " + RTRIM$(Cars(Counter).CarName);
PRINT " " + RTRIM$(Cars(Counter).Description);
PRINT " " + RTRIM$(Cars(Counter).ColorOfCar);
PRINT TAB(60); USING " $###.##"; Cars(Counter).Price
CanDisplay = 0
END IF
NEXT Counter ' displays line after listing cars
COLOR 15
PRINT STRING$(80, CHR$(196))
DO WHILE UCASE$(MoreCar) <> "Y" AND UCASE$(MoreCar) <> "N"
LOCATE CSRLIN, 1 ' This loop ask useers if they want another car search
PRINT "Find Another Car (Y/N)"
INPUT MoreCar
LOOP
IF UCASE$(MoreCar) = "N" THEN ' If user entered "n" the loop is exited
LeaveFindCar = 1
END IF
MoreCar = ""
LOOP
END SUB
SUB Main
' This SUB is the main part of the program. It displays
' the menu and accepts the choices from the user, when the
' user picks a valid value, it executes the proper choice
DO
CLS
COLOR 15
'print the menu on the screen
LOCATE 1, 33
PRINT "RENT CARS PLUS"
LOCATE 2, 1
PRINT STRING$(80, CHR$(196))
COLOR 11
PRINT " 1 - Pay Bill"
PRINT " 2 - Rent Car"
PRINT " 3 - Find Ideal Car"
PRINT " 999 - Exit"
COLOR 15
PRINT STRING$(80, CHR$(196))
INPUT "Choice: ", Choice ' The user enters his/her choice
IF Choice = 999 THEN END
IF Choice <> 999 AND Choice <> 1 AND Choice <> 2 AND Choice <> 3 THEN
PRINT " Error Please Enter Correct Choice! " ' If not valid answer user is asked to enter correct choice
END IF
SELECT CASE Choice ' This Select Case executes the subprograms options
CASE 1
CALL PayBill
CASE 2
CALL RentCar
CASE 3
CALL FindCar
CASE 5
END SELECT
LOOP UNTIL Choice = 999
END SUB
SUB PayBill' This sub does the bill paying process.
' it asks a few question to the user to get the right
' information and be able to pay the given bill.
DIM CustName AS STRING
DIM MoreBill AS INTEGER
DIM Answer AS STRING
DIM Flag AS INTEGER
COLOR 15
MoreBill = 0 ' To start loop variable
DO WHILE MoreBill = 0 ' Loop to start the Bill Paying Process
StartBill:
' Displays screen to user
CLS
COLOR 15
PRINT "PAY A BILL"
PRINT STRING$(80, CHR$(196))
INPUT "Customer Name: ", CustName ' user enters customer name
Flag = 0
FOR Q = 0 TO 4 ' Loops to search for customer name in array
IF UCASE$(RTRIM$(p(Q).CustName)) = UCASE$(RTRIM$(CustName)) THEN
Flag = 1
PRINT p(Q).CustName; p(Q).Bill
EXIT FOR
END IF
NEXT Q
'' If customer name invalid error message displayed
IF Flag = 0 THEN
PRINT "Invalid name. Press a key to try again."
DO WHILE INKEY$ <> "": LOOP
GOTO StartBill
END IF
MethodInput:
DO
LOCATE 4, 1 ' Display Payment methods and wait for user to pick one
COLOR 11
PRINT "We only use Visa or American Express. How do you wish to pay?"
PRINT "1 - Visa"
PRINT "2 - American Express"
PRINT "3 - Check"
PRINT "4 - Cash"
INPUT "Select 1, 2, 3, or 4: ", howtopay$ ' User enters way to pay
IF howtopay$ = "1" OR howtopay$ = "2" THEN ' CArd number asked for If american or visa
INPUT "Enter account number: ", cardnum$
ELSEIF howtopay$ <> "3" AND howtopay$ <> "4" THEN
PRINT "You must select method of payment."
END IF
LOOP WHILE howtopay$ < "1" OR howtopay$ > "4"
PaymentInput:
'' users enters payment amount
INPUT "Payment Amount (0 to cancel the transaction): ", PayAmount
IF PayAmount <> 0 THEN
IF PayAmount > p(Q).Bill THEN
'' If payment bigger than amount owed message displayed
PRINT "Payment is bigger than amount due. Press key to enter payment."
DO WHILE INKEY$ = "": LOOP
GOTO PaymentInput
ELSE
' If amount valid , payment subtracted from amount owed
p(Q).Bill = p(Q).Bill - PayAmount
PRINT "New balance is "; USING "$#####.##"; p(Q).Bill
END IF
END IF
'' Loop ask if user wishes to pay another bill
DO WHILE UCASE$(RTRIM$(Answer)) <> "Y" AND UCASE$(RTRIM$(Answer)) <> "N"
COLOR 15
LOCATE 48, 1
PRINT "Pay Another Bill (Y/N) ";
INPUT Answer
LOOP
IF UCASE$(RTRIM$(Answer)) = "N" THEN ' If answer is "N" then loop exited
MoreBill = 1
END IF
LOOP
END SUB
SUB ReadCarData
' This sub reads all data from the DATA statements
' And puts them in the Cars array
DIM Counter AS INTEGER
FOR Counter = 1 TO 26
Cars(Counter).CarNumber = Counter
READ Cars(Counter).License
READ Cars(Counter).Year
READ Cars(Counter).CarMaker
READ Cars(Counter).CarName
READ Cars(Counter).Description
READ Cars(Counter).ColorOfCar
READ Cars(Counter).NumberOfDoors
READ Cars(Counter).Price
NEXT Counter
END SUB
SUB RentCar
' This sub does the renting of a car
' to a customer. This ask several questions
' in order to get the right customer and the right
' car to rent then it rents it.
DIM MoreRent AS INTEGER
DIM TempCustomer AS INTEGER
DIM TempBill AS DOUBLE
DIM Answer AS STRING
DIM TempPrice AS DOUBLE
DIM TempInsurance AS DOUBLE
DIM CustName AS STRING
DIM Number AS STRING
DIM CarNumber AS INTEGER
DIM Days AS INTEGER
DIM Q AS INTEGER
MoreRent = 0 ' Loop for rental process
DO WHILE MoreRent = 0
InputName:
CLS ' Display screen to user
COLOR 15
PRINT "RENT A CAR"
PRINT STRING$(80, CHR$(196))
COLOR 11
LOCATE 3, 1
INPUT " Full Name: ", CustName ' user enters his name
IF RTRIM$(CustName) = "" THEN
PRINT "You Must Enter Your Name. Press a key to retry." ' User is told he must enter a name
DO WHILE INKEY$ = "": LOOP
GOTO InputName
ELSE
FOR Q = 0 TO 4
IF UCASE$(RTRIM$(p(Q).CustName)) = UCASE$(RTRIM$(CustName)) THEN
Flag = 1
PRINT p(Q).CustName; p(Q).Bill
TempCustomer = Q
EXIT FOR
END IF
NEXT Q
END IF
InputNumber:
LOCATE 5, 1
INPUT " Phone Number: ", Number ' User enters phone number
IF RTRIM$(Number) = "" THEN
PRINT "You Must a phone number. Press a key to retry." ' User is warned he must enter a number
DO WHILE INKEY$ = "": LOOP
GOTO InputNumber
END IF
CarInput:
LOCATE 7, 2
COLOR 11
INPUT "Car Number: ", CarNumber
' This awaits a car number from the user.
IF CarNumber < 1 AND CarNumber > 26 THEN ' If the car number is out of range, we warn and start again
PRINT "Car Number must be between 1 and 26. Press a key to retry."
DO WHILE INKEY$ = "": LOOP
GOTO CarInput
ELSE
' No need to search, we just display the car information
COLOR 14
PRINT RTRIM$(Cars(CarNumber).License) + " - ";
PRINT Cars(CarNumber).Year;
PRINT RTRIM$(Cars(CarNumber).CarMaker) + " " + RTRIM$(Cars(CarNumber).CarName) + " ";
PRINT RTRIM$(Cars(CarNumber).ColorOfCar)
PRINT "PRICE: "; USING "$####.##"; Cars(CarNumber).Price
END IF
DaysInput:
LOCATE 10, 1
COLOR 11
INPUT " Number of Days to rent: ", Days
' This awaits for a number of days to rent the car for.
IF Days < 1 AND Days > 31 THEN
PRINT "Days are 1 to 31. Press a key to retry."
' Can't have less than 1 day or more than a month or we warn.
DO WHILE INKEY$ = "": LOOP
GOTO DaysInput
END IF
TempPrice = Days * Cars(CarNumber).Price
' Calculate the Price of the rental
InsuranceInput:
LOCATE 13, 1
COLOR 11
DO WHILE UCASE$(RTRIM$(Answer)) <> "Y" AND UCASE$(RTRIM$(Answer)) <> "N"
COLOR 11
LOCATE 13, 1
PRINT "Add Insurance (Y/N)";
' the customer has the option to purchase insurance here.
INPUT Answer
LOOP
IF UCASE$(Answer) = "Y" THEN
COLOR 11
DO WHILE UCASE$(RTRIM$(Answer)) <> "F" AND UCASE$(RTRIM$(Answer)) <> "D"
'we loop until the users enters y or n
COLOR 11
LOCATE 14, 1
PRINT "(F)ixed Or (D)aily Amount";
' If the user selected yes, we ask for fixed or daily insurance amount.
INPUT Answer
LOOP
' if Fixed amount was picked we ask for that amount
IF UCASE$(RTRIM$(Answer)) = "F" THEN
INPUT "Fixed Insurance: ", TempInsurance
ELSE
TempInsurance = 15 * Days ' If Daily was picked we multiply 15 by the number of days rented
END IF
END IF
DO ' this loop asks for a payment method.
LOCATE 17, 1
PRINT "We only use Visa or American Express. How do you wish to pay?"
PRINT "1 - Visa"
PRINT "2 - American Express"
PRINT "3 - Check"
PRINT "4 - Cash"
INPUT "Select 1, 2, 3, or 4: ", howtopay$
IF howtopay$ = "1" OR howtopay$ = "2" THEN
INPUT "Enter account number: ", cardnum$
ELSEIF howtopay$ <> "3" AND howtopay$ <> "4" THEN
PRINT "You must select method of payment."
END IF
LOOP WHILE howtopay$ < "1" OR howtopay$ > "4"
COLOR 14
PRINT
' This part displays some totals to the user.
PRINT "Rental Price = "; USING "$##,###.##"; TempPrice
PRINT "Insurance Amount = "; USING "$##,###.##"; TempInsurance
PRINT "Total Price = "; USING "$##,###.##"; TempPrice + TempInsurance
PRINT " ----------"
TempBill = p(TempCustomer).Bill
TempBill = TempBill + (TempPrice + TempInsurance)
p(TempCustomer).Bill = TempBill
PRINT "New Balance = "; USING "$##,###.##"; TempBill
PRINT " =========="
Answer = ""
' This loop asks if the user wants to rent another car.
DO WHILE UCASE$(RTRIM$(Answer)) <> "Y" AND UCASE$(RTRIM$(Answer)) <> "N"
COLOR 15
LOCATE 48, 1
PRINT "Rent Another Car (Y/N) ";
INPUT Answer
LOOP
IF UCASE$(RTRIM$(Answer)) = "N" THEN
' If user selected N, we assign value to exit the loop
MoreRent = 1
END IF
LOOP
END SUB
Im really good at programming but really suck at algorithms can someone please please write in a algorithm form for me , i need it by friday i would greatly be thankful for uIm really good at programming but really suck at algorithms
>If your are 'really good' at programming, you will be able to solve this problem. Because, it has nothing to do with algorithm.
>>can someone please please write in a algorithm form for me , i need it by friday i would greatly be thankful for u
>Wrong person, in the wrong place. -
hi,
I am trying to make a login program that connects to an access database with table 'PASSWORD' containing the username and the password.
I have written the program but i could not continue as i am in fix with few errors which it is giving can anyone help me in doing the coding of this program..
//***************** Create a DSN named "Login" from the Control Panel ODBC ********//
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.plaf.metal.*;
import java.sql.*;
public class Screen extends JFrame implements ActionListener
JTextField txtuser;
JPasswordField txtpass;
public Screen()
JPanel contentpane=(JPanel)getContentPane();
contentpane.setLayout(new FlowLayout());
JLabel username= new JLabel("UserName:");
JTextField txtuser= new JTextField(18);
JPassword Field JLabel password= new JLabel("Password:");
txtpass = new JPasswordField(18);
txtpass.setEchoChar('*');
JButton login= new JButton("Login");
login.addActionListener(this);
login.setActionCommand("Login");
JButton cancel= new JButton("Cancel");
cancel.addActionListener(this);
cancel.setActionCommand("Cancel");
contentpane.add(username);
contentpane.add(txtuser);
contentpane.add(password);
contentpane.add(txtpass);
contentpane.add(login);
contentpane.add(cancel);
addWindowListener(new Screen.WindowEventHandler());
static public void main(String[] args)
Screen scr= new Screen();
scr.setSize(new Dimension(300,140));
scr.setTitle("Login Screen");
scr.setVisible(true);
public void actionPerformed(ActionEvent e)
Connection con = null;
String query;
String id=null,pwd=null;
ResultSet rs;
Statement stmt;
/* U Need to Get the Text Box values of ID and Password into "id" and "pwd" variables,
I tried to Do this as follows , but no success ..I havent worked on SWING class before.
so u check out the method required to get the TEXT box values into these variables...*/
id=txtuser.getText();
pwd=txtpass.getText();
query = "Select Password from user where ID='"+id+"'";
if (e.getActionCommand()=="Login")
try
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
catch( ClassNotFoundException ee)
ee.printStackTrace();
// Here i m using a DSN "Doctor" if u create other than this name then Specify the name of the DSN here in place of "Login"
String dsn = "jdbc:odbc:doctor";
try
con = DriverManager.getConnection(dsn);
catch(Exception ex)
System.out.println("Exception in Connection " + ex);
try
stmt = con.createStatement();
rs=stmt.executeQuery(query);
if(pwd==rs.getString(1))
System.out.println("This user is valid");
//** VALID USER , DO AS PER UR REQUIREMENT
else
System.out.println("This user is invalid");
//INVALID USER , DO AS PER UR REQUIREMENT
rs.close();
stmt.close();
catch(Exception ee)
ee.printStackTrace();
if (e.getActionCommand()=="Cancel")
System.out.println("Cancel is pressed");
public class WindowEventHandler extends WindowAdapter
public void windowClosing(WindowEvent e)
System.exit(0);
Can Anybody Code this for me..
Thanks in Advance........hi,
i watched your program and i have changed the code as follow as this:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.plaf.metal.*;
import java.sql.*;
public class Screen extends JFrame implements ActionListener
JTextField txtuser;
JPasswordField txtpass;
public Screen()
JPanel contentpane=(JPanel)getContentPane();
contentpane.setLayout(new FlowLayout());
JLabel username= new JLabel("UserName:");
txtuser= new JTextField(18);
JLabel password= new JLabel("Password:");
txtpass = new JPasswordField(18);
txtpass.setEchoChar('*');
JButton login= new JButton("Login");
login.addActionListener(this);
login.setActionCommand("Login");
JButton cancel= new JButton("Cancel");
cancel.addActionListener(this);
cancel.setActionCommand("Cancel");
contentpane.add(username);
contentpane.add(txtuser);
contentpane.add(password);
contentpane.add(txtpass);
contentpane.add(login);
contentpane.add(cancel);
addWindowListener(new Screen.WindowEventHandler());
static public void main(String[] args)
Screen scr= new Screen();
scr.setSize(new Dimension(300,140));
scr.setTitle("Login Screen");
scr.setVisible(true);
public void actionPerformed(ActionEvent e)
Connection con = null;
String query;
String id=null;
String pwd=null;
ResultSet rs;
Statement stmt;
String dsn = null;
String driver_connection = null;
driver_connection = "sun.jdbc.odbc.JdbcOdbcDriver";
dsn = "jdbc:odbc:Prove";
query = "SELECT * FROM user";
try
id = txtuser.getText();
pwd = txtpass.getText();
if (e.getActionCommand().equals("Login"))
Class.forName(driver_connection);
con = DriverManager.getConnection(dsn);
stmt = con.createStatement();
rs = stmt.executeQuery(query);
while(rs.next())
if(id.equals(rs.getString("ID")) && pwd.equals(rs.getString("PASSWORD")))
System.out.println("The user is valid");
return;
else
System.out.println("The user is invalid");
System.exit(0);
rs.close();
stmt.close();
else if(e.getActionCommand()=="Cancel")
System.out.println("Cancel is pressed");
WindowEventHandler w = new WindowEventHandler();
w.windowClosing();
catch(Exception exception)
System.out.println("Error: "+exception.getMessage());
public class WindowEventHandler extends WindowAdapter
public void windowClosing()
System.exit(0);
try it,
i hope this could help you!!!! -
Question
My bookmark pull down menu doesn't offer " manage bookmarks". In all the support I can find this is how to edit bookmarks. How do I find the manage link if it's not in the pull-down menu?In Firefox 4, "Organize Bookmarks" has been changed to "Show All Bookmarks" to open the Library window.
-
Hi all, where can i find this include CI_mmh1 in which table
where can i find this include CI_mmh1 in which table
Hi Murali,
It is found in BMMH1 structure.
BMMH1 - Material Master: Transfer of Main Data
Go to BMMH1 structure there you hit CLT + F and give (MMH1) and press F4. Then you will find it.
Reward points if it helps.
Cheers,
Swamy Kunche -
hey
can any one solve this code ??
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class File1 extends JFrame
public static void showgui()
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(640, 480));
frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
JButton b1= new JButton("JENIS");
add(b1);
b1.setBounds(350,220,120,20);
JSeparator jE =new JSeparator(JSeparator.HORIZONTAL);
jE.setBounds(350, 205, 120, 20);
add(jE);
add(new JSeparator(JSeparator.HORIZONTAL));
JButton b2= new JButton("MODI");
add(b2);
b2.setBounds(100,210,100,100);
frame.pack();
frame.setVisible(true);
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
showgui();
actually i want to use jseparator , so if this cant be solved , send me another code that uses jseparator and gives the vertical / horizontal line between two buttons??
Its urgent ,
waiting for reply............Hi,
Is this ok?
public class NewJFrameSep extends javax.swing.JFrame {
public NewJFrameSep() {
initComponents();
private void initComponents() {
jSeparator1 = new javax.swing.JSeparator();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
getContentPane().setLayout(null);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().add(jSeparator1);
jSeparator1.setBounds(110, 120, 170, 100);
jButton1.setText("jButton1");
getContentPane().add(jButton1);
jButton1.setBounds(160, 80, 71, 23);
jButton2.setText("jButton2");
getContentPane().add(jButton2);
jButton2.setBounds(160, 140, 71, 23);
pack();
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrameSep().setVisible(true);
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JSeparator jSeparator1;
}regards
dina -
really important. need help.
If they were on your phone when it was last backed up, restoring the backup to your phone should recover them.
-
Hi All,
Can anyone kind enought to help me to add the START and STOP button for this "bouncing ball" program that i got from the internet ? Below is the java coding.
import java.awt.*;
import java.applet.*;
class Obstacle
public Rectangle r;
Graphics g;
public Obstacle(int x,int y,int w,int h)
r=new Rectangle(x,y,w,h);
public void paint(Graphics gr)
g=gr;
g.setColor(Color.lightGray);
g.draw3DRect(r.x,r.y,r.width,r.height,true);
class CollideBall
int width, height;
public static final int diameter=20;
//coordinates and value of increment
double x, y, xinc, yinc, coll_x, coll_y;
boolean collide;
Color color;
Graphics g;
Rectangle r;
//the constructor
public CollideBall(int w, int h, int x, int y, double xinc, double yinc, Color c)
width=w;
height=h;
this.x=x;
this.y=y;
this.xinc=xinc;
this.yinc=yinc;
color=c;
r=new Rectangle(150,80,130,90);
public double getCenterX() {return x+diameter/2;}
public double getCenterY() {return y+diameter/2;}
public void alterRect(int x, int y, int w, int h)
r.move(x,y);
r.resize(w,h);
public void move()
if (collide)
double xvect=coll_x-getCenterX();
double yvect=coll_y-getCenterY();
if((xinc>0 && xvect>0) || (xinc<0 && xvect<0))
xinc=-xinc;
if((yinc>0 && yvect>0) || (yinc<0 && yvect<0))
yinc=-yinc;
collide=false;
x+=xinc;
y+=yinc;
//when the ball bumps against a boundary, it bounces off
if(x<6 || x>width-diameter)
xinc=-xinc;
x+=xinc;
if(y<6 || y>height-diameter)
yinc=-yinc;
y+=yinc;
//cast ball coordinates to integers
int x=(int)this.x;
int y=(int)this.y;
//bounce off the obstacle
//left border
if(x>r.x-diameter&&x<r.x-diameter+7&&xinc>0&&y>r.y-diameter&&y<r.y+r.height)
xinc=-xinc;
x+=xinc;
//right border
if(x<r.x+r.width&&x>r.x+r.width-7&&xinc<0&&y>r.y-diameter&&y<r.y+r.height)
xinc=-xinc;
x+=xinc;
//upper border
if(y>r.y-diameter&&y<r.y-diameter+7&&yinc>0&&x>r.x-diameter&&x<r.x+r.width)
yinc=-yinc;
y+=yinc;
//bottom border
if(y<r.y+r.height&&y>r.y+r.height-7&&yinc<0&&x>r.x-diameter&&x<r.x+r.width)
yinc=-yinc;
y+=yinc;
public void hit(CollideBall b)
if(!collide)
coll_x=b.getCenterX();
coll_y=b.getCenterY();
collide=true;
public void paint(Graphics gr)
g=gr;
g.setColor(color);
//the coordinates in fillOval have to be int, so we cast
//explicitly from double to int
g.fillOval((int)x,(int)y,diameter,diameter);
g.setColor(Color.white);
g.drawArc((int)x,(int)y,diameter,diameter,45,180);
g.setColor(Color.darkGray);
g.drawArc((int)x,(int)y,diameter,diameter,225,180);
public class BouncingBalls extends Applet implements Runnable
Thread runner;
Image Buffer;
Graphics gBuffer;
CollideBall ball[];
Obstacle o;
//how many balls?
static final int MAX=10;
boolean intro=true,drag,shiftW,shiftN,shiftE,shiftS;
boolean shiftNW,shiftSW,shiftNE,shiftSE;
int xtemp,ytemp,startx,starty;
int west, north, east, south;
public void init()
Buffer=createImage(size().width,size().height);
gBuffer=Buffer.getGraphics();
ball=new CollideBall[MAX];
int w=size().width-5;
int h=size().height-5;
//our balls have different start coordinates, increment values
//(speed, direction) and colors
ball[0]=new CollideBall(w,h,50,20,1.5,2.0,Color.orange);
ball[1]=new CollideBall(w,h,60,210,2.0,-3.0,Color.red);
ball[2]=new CollideBall(w,h,15,70,-2.0,-2.5,Color.pink);
ball[3]=new CollideBall(w,h,150,30,-2.7,-2.0,Color.cyan);
ball[4]=new CollideBall(w,h,210,30,2.2,-3.5,Color.magenta);
ball[5]=new CollideBall(w,h,360,170,2.2,-1.5,Color.yellow);
ball[6]=new CollideBall(w,h,210,180,-1.2,-2.5,Color.blue);
ball[7]=new CollideBall(w,h,330,30,-2.2,-1.8,Color.green);
ball[8]=new CollideBall(w,h,180,220,-2.2,-1.8,Color.black);
ball[9]=new CollideBall(w,h,330,130,-2.2,-1.8,Color.gray);
o=new Obstacle(150,80,130,90);
west=o.r.x;
north=o.r.y;
east=o.r.x+o.r.width;
south=o.r.y+o.r.height;
public void start()
if (runner == null)
runner = new Thread (this);
runner.start();
public void stop()
if (runner != null)
runner.stop();
runner = null;
public void run()
while(true)
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
try {runner.sleep(15);}
catch (Exception e) { }
//move our balls around
for(int i=0;i<MAX;i++)
ball.move();
handleCollision();
repaint();
boolean collide(CollideBall b1, CollideBall b2)
double wx=b1.getCenterX()-b2.getCenterX();
double wy=b1.getCenterY()-b2.getCenterY();
//we calculate the distance between the centers two
//colliding balls (theorem of Pythagoras)
double distance=Math.sqrt(wx*wx+wy*wy);
if(distance<b1.diameter)
return true;
return false;
void changeCursor(int x, int y)
Rectangle r=new Rectangle(o.r.x+1,o.r.y+1,o.r.width-1,o.r.height-1);
Frame BrowserFrame;
Component ParentComponent;
ParentComponent = getParent();
while ( ParentComponent != null &&
!(ParentComponent instanceof Frame))
ParentComponent = ParentComponent.getParent();
BrowserFrame = (Frame) ParentComponent;
if(shiftNW||shiftSE)
BrowserFrame.setCursor(Frame.SE_RESIZE_CURSOR);
else if(shiftNE||shiftSW)
BrowserFrame.setCursor(Frame.SW_RESIZE_CURSOR);
else if(shiftW)
BrowserFrame.setCursor(Frame.W_RESIZE_CURSOR);
else if(shiftN)
BrowserFrame.setCursor(Frame.N_RESIZE_CURSOR);
else if(shiftE)
BrowserFrame.setCursor(Frame.W_RESIZE_CURSOR);
else if(shiftS)
BrowserFrame.setCursor(Frame.N_RESIZE_CURSOR);
else if(r.inside(x,y))
BrowserFrame.setCursor(Frame.MOVE_CURSOR);
else
BrowserFrame.setCursor(Frame.DEFAULT_CURSOR);
public boolean mouseMove(Event evt,int x,int y)
//the corner areas of the obstacle
Rectangle nw,sw,ne,se;
nw=new Rectangle(o.r.x-2,o.r.y-2,4,4);
if(nw.inside(x,y))
shiftNW=true;
else shiftNW=false;
sw=new Rectangle(o.r.x-2,o.r.y+o.r.height-2,4,4);
if(sw.inside(x,y))
shiftSW=true;
else shiftSW=false;
ne=new Rectangle(o.r.x+o.r.width-2,o.r.y-2,4,4);
if(ne.inside(x,y))
shiftNE=true;
else shiftNE=false;
se=new Rectangle(o.r.x+o.r.width-2,o.r.y+o.r.height-2,4,4);
if(se.inside(x,y))
shiftSE=true;
else shiftSE=false;
if(x>o.r.x-2&&x<o.r.x+2&&y>o.r.y&&y<o.r.y+o.r.height)
shiftW=true;
else shiftW=false;
if(x>o.r.x+o.r.width-2&&x<o.r.x+o.r.width+2
&&y>o.r.y&&y<o.r.y+o.r.height)
shiftE=true;
else shiftE=false;
if(y<o.r.y+2&&y>o.r.y-2&&x>o.r.x&&x<o.r.x+o.r.width)
shiftN=true;
else shiftN=false;
if(y>o.r.y+o.r.height-2&&y<o.r.y+o.r.height+2
&&x<o.r.x+o.r.width)
shiftS=true;
else shiftS=false;
changeCursor(x,y);
return true;
public boolean mouseDown(Event evt,int x,int y)
Rectangle r=new Rectangle(o.r.x+2,o.r.y+2,o.r.width-4,o.r.height-4);
if(r.inside(x,y))
drag=true;
startx=x;
starty=y;
xtemp=o.r.x;
ytemp=o.r.y;
else drag=false;
changeCursor(x,y);
return true;
public boolean mouseDrag(Event evt,int x,int y)
intro=false;
Rectangle bounds=new Rectangle(5,5,size().width-5,size().height-5);
int endx, endy;
endx=x-startx;
endy=y-starty;
//disable mouse actions past boundaries
if(x<5)x=5;
if(y<5)y=5;
if(x>bounds.width)x=bounds.width;
if(y>bounds.height)y=bounds.height;
if(drag)
//disallow to move past border
int ox=endx+xtemp;
int oy=endy+ytemp;
if(ox<5)ox=5;
if(oy<5)oy=5;
if(ox>bounds.width-o.r.width)
ox=bounds.width-o.r.width;
if(oy>bounds.height-o.r.height)
oy=bounds.height-o.r.height;
o.r.move(ox,oy);
west=o.r.x;
north=o.r.y;
east=o.r.x+o.r.width;
south=o.r.y+o.r.height;
else
if(shiftNW){west=x;north=y;}
else if(shiftNE){east=x;north=y;}
else if(shiftSW){west=x;south=y;}
else if(shiftSE){east=x;south=y;}
else if(shiftW)west=x;
else if(shiftE)east=x;
else if(shiftN)north=y;
else if(shiftS)south=y;
//disallow resizing below 40*40
int MIN=40;
if(east-west<MIN)
//shiftNW=shiftNE=shiftSW=shiftSE=shiftW=shiftE=false;
if(shiftW||shiftNW||shiftSW)
west=east-MIN;
if(shiftE||shiftNE||shiftSE)
east=west+MIN;
if(south-north<MIN)
//shiftNW=shiftNE=shiftSW=shiftSE=shiftN=shiftS=false;
if(shiftN||shiftNW||shiftNE)
north=south-MIN;
if(shiftS||shiftSE||shiftSW)
south=north+MIN;
//report altering of obstacle to ball objects and obstacle
for(int i=0;i<MAX;i++)
ball[i].alterRect(o.r.x,o.r.y,o.r.width,o.r.height);
o.r.move(west,north);
o.r.resize(east-west, south-north);
changeCursor(x,y);
return true;
private void handleCollision()
//we iterate through all the balls, checking for collision
for(int i=0;i<MAX;i++)
for(int j=0;j<MAX;j++)
if(i!=j)
if(collide(ball[i], ball[j]))
ball[i].hit(ball[j]);
ball[j].hit(ball[i]);
public void update(Graphics g)
paint(g);
public void paint(Graphics g)
gBuffer.setColor(Color.lightGray);
gBuffer.fillRect(0,0,size().width,size().height);
gBuffer.draw3DRect(5,5,size().width-10,size().height-10,false);
//paint the obstacle rectangle
o.paint(gBuffer);
//paint our balls
for(int i=0;i<MAX;i++)
ball[i].paint(gBuffer);
if(intro)
gBuffer.setColor(Color.red);
gBuffer.setFont(new Font("Helvetica", Font.PLAIN, 12));
gBuffer.drawString("You can move and resize the rectangle!",20,30);
gBuffer.setFont(new Font("Helvetica", Font.PLAIN, 10));
g.drawImage (Buffer,0,0, this);Hello, please use code tags next time you post code. You can do so by adding [code] [/code] round blocks of code. So
[code]
class Code {
private static final String codeHere = "code here";
[/code]
will be rendered as
class Code {
private static final String codeHere = "code here";
We will not do your homework for you, we will however help when you are stuck and point you in the right direction. So what have you tried? What happened?
Don't know how to begin? What makes the ball move? -
Please help me I hate all this stuff I just need to be able to talk to someone I have spent hours and hours now and am so frustrated .I need to talk to a UK helpline ( I can find number for Pakistan )
my blackberry will not send emails since I put in a new sim
Vodafone can not sort it
WHO CAN I PHONE PLEASE ?What issues are you having with your BlackBerry? Could you please state your question clearly and with ALL details? There are many very knowledgeable users here who might assist you.
Are you using VodafoneUK mobile service in Pakistan? Is the new SIM a VodafoneUK card?
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code
Maybe you are looking for
-
Dear Netpros, We are having a 4E1 Cisco AS5350 Voice Gateway. Now when we run the command "sh spe voi summ" we see a lot of Payload Type Violation and Buffer Overflow errors as shown in the Output below. Any clue as to what is the source of these err
-
Hey there guys and gals, Ok here is the issue, Safari started acting weird on me , starting this morning. I have posted some screen shots here..... http://homepage.mac.com/lurka/PhotoAlbum12.html Any ideas how to fix this???? Things I have tried to s
-
Apple Aluminum Wired Keyboard: Space Bar Issues
Depending on your typing style, you may need to change how you type for this keyboard to work properly. For example, many people type quickly and simply press keys on the edge rather than in the middle or top. For this reason, some keyboards have a l
-
Is it possible to set ID 5 as default app for INDD files?
I am using Mac OS 10.6.8 (Snow Leopard), and I have upgraded to ID 5.5 for the 30-day trial. As I am not sure whether I want to keep it, I would like to keep ID 5 as the application associated with INDD files, as opposed to ID 5.5. Is this possible?
-
A lot of posters have advised using iPhoto Diet to slim down iPhoto libaries. I did this, and it took out 3gb out of our 15gb iphoto library. Great. Then we opened iPhoto, and every rotated photo had a thumbnail, but when zoomed in or in edit mode, w