Recent content by clook

  1. 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...
  2. 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...
  3. 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 {...
  4. 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 {...
  5. C

    Comp Sci Java Project Calculator for Shipping Costs

    how can i put it within displayoutput?
  6. 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...
  7. 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.
  8. 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...
  9. 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 //...
  10. 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.
  11. C

    Finding Air and Ground Speed Using Trigonometry: A Pilot's Navigation Problem

    http://savemyfile.net//files/6/book.jpg something similar to this
  12. 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...
  13. 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"...
Back
Top