Recent content by clook
-
C
Comp Sci Java calculations w/ conditional statements
I forgot to say, I fixed those operator errors and here's my fixed code: /* public class Calculate { private double milesDrivenDouble, summaryMilesDrivenDouble; private static double totalCostDouble, mileageCostDouble, dailyCostDouble, summaryCostDouble, fordGrandTotalDouble...- clook
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci Java calculations w/ conditional statements
I'm supposed to calculate the cost of renting a Ford, Cadillac or Toyota, and use conditional statements to calculate the different costs of each vehicle. users are supposed to enter “F” for Ford, “T” for Toyota, or “C” for Cadillac users enter “F” for Ford, “T” for Toyota, or “C” for Cadillac...- clook
- Thread
- Calculations Conditional Java
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci Solve Java JLabel Problem: Display Output on mainPanel
i am trying to display the output in a jlabel. I have created individual jlabels for the package ID, weight, and shipping cost and tried to display them with the mainPanel: import javax.swing.*; import java.awt.event.*; public class shippingCharge extends JFrame implements ActionListener {...- clook
- Thread
- Java
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci Java Project Calculator for Shipping Costs
i am trying to display the output in a jlabel. I have created individual jlabels for the package ID, weight, and shipping cost and tried to display them with the mainPanel: import javax.swing.*; import java.awt.event.*; public class shippingCharge extends JFrame implements ActionListener {...- clook
- Post #6
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci Java Project Calculator for Shipping Costs
thanks.. works now.- clook
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci Java Project Calculator for Shipping Costs
how can i put it within displayoutput?- clook
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci Java Project Calculator for Shipping Costs
i'm supposed to create a GUI project that will display a package ID and calculate its shipping cost. the shipping cost is calculated per ounce, and i must convert the pounds to ounces for the shipping cost. everything seems to be working fine except for the calculation. the shipping cost is...- clook
- Thread
- Calculation Java Project
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci How to Structure a UML Diagram for a Basic Java Program?
yeah, but i only need to do a diagram for this class. kind of unsure how to do it.- clook
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci How to Structure a UML Diagram for a Basic Java Program?
So I have to create a UML diagram for my program: import java.util.*; import java.text.*; public class NameDate { public static void main(String[] args) { // Input the first, middle, and last name // Display the name and the date. String firstNameString, middleNameString...- clook
- Thread
- Diagram Java
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci How do I fix a java.lang.NoClassDefFoundError in my Java program?
Ahh, thanks. That fixed the problem.- clook
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci How do I fix a java.lang.NoClassDefFoundError in my Java program?
Supposed to make a program that displays an entered name and date, etc, but it won't run. import java.util.*; import java.text.*; import javax.swing.*; public class ch2NameAndDate { public static void main(String[] args) { // Input the first, middle, and last name //...- clook
- Thread
- Java Program
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
C
Finding Air and Ground Speed Using Trigonometry: A Pilot's Navigation Problem
argh.. it would bea right triangle? man, is there a way you could provide me some type of diagram for this? edit: nvm, got it.- clook
- Post #5
- Forum: Precalculus Mathematics Homework Help
-
C
Finding Air and Ground Speed Using Trigonometry: A Pilot's Navigation Problem
http://savemyfile.net//files/6/book.jpg something similar to this- clook
- Post #3
- Forum: Precalculus Mathematics Homework Help
-
C
Finding Air and Ground Speed Using Trigonometry: A Pilot's Navigation Problem
Homework Statement A pilot wants to fly on a bearing of 68.2 degrees. By flying due east, he finds that 38 MPH, blowing from the south, puts him on the course. Find the air speed and ground speed.Homework Equations using law of sines/cosines, ambiguous case.The Attempt at a Solution Tried...- clook
- Thread
- Trig
- Replies: 4
- Forum: Precalculus Mathematics Homework Help
-
C
C program (string - binary to decimal conversion)
here's what i have: #include<stdio.h> #include<string.h> main() { char string[32]; int sum = 0; int a = 1; int i; printf("Please enter numbers:\n"); gets(string); for (i=32;i<0;i--) { if(string[i] ==1) { sum = sum + a; } a = a * 2; printf("The converted string is: %s \n"...- clook
- Thread
- Binary Program String
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help