Win a copy of Head First Android this week in the Android forum!

Addie Mustapha

Greenhorn
+ Follow
since Jun 01, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Addie Mustapha

No, I wrote all this out, I just don't know how I would make it into java
10 years ago
How would I convert this into a program. It's actually for my sixth grade science class but I want to have a program to go along with my model. My dad said I should use JOptionpane but I don't know what that is. thanks for any help. Please don't answer if you aren't going to help thank you.

Environment: In an environment where it snows frequently during the winter, and rains frequently during the spring. Most people are going to work or school during 6:00am to 10:00am, and coming home during 4:00pm to 6:00pm. At noon there is a lunch rush.

Season:
Spring = 3
Summer=1
Fall=1
Winter=5

Time:
6:00am to 10:00am: 5
9:00am to 11:00am: 2
12:00pm: 4
12:00pm to 3:00pm: 1
3:00pm to 6:00pm: 5
6:00pm to 9:00pm: 2
9:00pm to 12:00pm: 2
Make a program that adds up the numbers of both the season and time. If the output is
2, 3, or 4: Print Traffic is Low
5, 6, 7: Print Traffic is Medium
8, 9, 10: Print Traffic High
10 years ago
okay so i know a little bit of java, and thought I would do a project using jsp, to combine html and java. I also know how to use basic html. I'm doing a program that simulates traffic. I made a table using html that contains two rows and 20 columns. Each cell contains one image of a car(all of the cars are different colors). With the images of the cars on two rows it appears as a street. My question is how would i use java to simulate the moving of the cars. Aka, how do I make a program that assigns the "car images" to different cells, in a loop, oh and how would I change the speed that it does this thank you . Oh and how would I put it on a server.

here's a little clip of the html I did. thank you. Sorry if I seem a bit clueless.
<table style = "background-color:#5C5858;">
<tr>
<td id = "a1" style= "border-left:solid;border-right:solid;"><img alt="" src="C:\Users\All\Desktop\faceup\u1.jpg"></td>
<td id = "b1" style= "border-left:solid;border-right:solid;"><img alt="" src="C:\Users\All\Desktop\facedown\d1.jpg"></td>
</tr>
10 years ago
JSP
okay so i know a little bit of java, and thought I would do a project using jsp, to combine html and java. I also know how to use basic html. I'm doing a program that simulates traffic. I made a table using html that contains two rows and 20 columns. Each cell contains one image of a car(all of the cars are different colors). With the images of the cars on two rows it appears as a street. My question is how would i use java to simulate the moving of the cars. Aka, how do I make a program that assigns the "car images" to different cells, in a loop, oh and how would I change the speed that it does this thank you . Oh and how would I put it on a server.

here's a little clip of the html I did. thank you. Sorry if I seem a bit clueless.
<table style = "background-color:#5C5858;">
<tr>
<td id = "a1" style= "border-left:solid;border-right:solid;"><img alt="" src="C:\Users\All\Desktop\faceup\u1.jpg"></td>
<td id = "b1" style= "border-left:solid;border-right:solid;"><img alt="" src="C:\Users\All\Desktop\facedown\d1.jpg"></td>
</tr>
10 years ago
JSP