I am so stuck-programming is hard-can anyone help me please???

My homework problem I am stuck on is this:
Write the method for calculating the volume of a cube, with the formula being
volume = a*b*c
where a is width, b is the depth and c is the height of the cube.
the method should return the result as a double value.
define the variables prior to the calculation-you do not have to read them in
I would appreciate any help--Thanks so much, Christine

beginners and I have a tutor. You shouldn't respond
to requests for help if you have to be rude.Lorraine wasn't rude. I am about to be.
Don't be such a lazy, stupid, ignorant jackass. At least show in future that you made an EFFORT at least. You didn't. We don't care what you say. You could well be lying. Probably based on the rest of the crap that you posted you are.
Lorraine made some VERY valuable suggestions to you on how you should change your behaviour to BENEFIT you on this site and anywhere else on the internet for that matter. I don't know what is wrong with the youth of today that you think the internet is just some resource you can take for granted and abuse when you doesn't meet your unreasonable expectations.
People who answer questions on this site are volunteering their time
to help people who deserve it. It is YOUR responsibility. Let me repeat that. YOUR RESPONSIBILITY to demonstrate that you indeed deserve help by showing what effort you have put forth. A few whining sentences do not demonstrate that.
So don't be such a whiny lazy suckwad. And while I am sure you don't feel you deserve this particular post let me assure you, you idiot, that you do. Lorraine did not come down as nearly harshly (or in my mind harshly at all) as many would have and further you did get your questions answered.
I will leave with one word of advice. Change your attitude ASAP if you EVER want to get help here again. If you continue to act like a jackass you will be flamed accordingly. And no I don't really give a flying fuck about your opinions on the matter... it is people like me whose opinion matters here since we are the ones answering your questions you ungrateful twit.

Similar Messages

  • My iphone 4s wont turn on,it wont even charge,when it does eventually start to charge the apple icon on the screen will appear for a few seconds then itll disappear, i have tried to do the soft/hard reset but nothing happens, can anyone help me please?

    My iphone 4s wont turn on,it wont even charge,when it does eventually start to charge the apple icon on the screen will appear for a few seconds then itll disappear, i have tried to do the soft/hard reset but nothing happens, can anyone help me please? do i have a dead iphone on my hands? isit worth me going into the apple store and seeing what they can do or isit pointless? please help!!!

    Try to backup and restore you device in itunes...restoring the device is like removing the iOS software off the device and re-add in a newer software, after you have restore you device, MAKE SURE YOU SET UP YOUR DEVICE LIKE A NEW DEVICE, DONT NOT RESTORE FROM BACKUP!!... give the device a chance to use the newer software and see if the issue still persisting, if the issue still on going then its would be a hardware issue.
    Call Apple Care and see if your device is still under warranty to get it replace

  • I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (109318)

  • Hi, a dvd got stuck in my mac mini and after looking at solutions online and attempting some not only has the dvd not ejected but my mac wont turn on properly, there is simply a white blank screen, can anyone help me please? thanks

    Hi, a dvd got stuck in my mac mini and after looking at solutions online and attempting some not only has the dvd not ejected but my mac wont turn on properly, there is simply a white blank screen, can anyone help me please? thanks

    Hi Claire, sounds dire, but some things to try...
    Have you done a PRAM reset, CMD+Option+p+r...
    http://support.apple.com/kb/HT1379
    In fact, do 3 in a row, takes a bit of time.
    Intel-based Macs: Resetting the System Management Controller (SMC)...
    http://support.apple.com/kb/HT3964

  • HT201413 I keep getting error-36 when I try and transfer my iPhoto library to my hard drive. Can anyone help me please.

    When I try and transfer my iphoto library from my computer to my harddrive, I keep getting error message "error-36". Can anyone help me please?

    Odd, it seems.  In the Finder "Get Info" display, you are seeing something like this?
    Click the "Details" triangle and then the little padlock, and you should be able to change the permissions.  Click the lock when you are done and close the Info window.

  • Accidently i have removed the disk utility can anyone help me please

    i have accidently removed the disk utility.... can anyone help me please..

    The problem with junk utilities such as MacKeeper is that they are capable of causing damage that is impossible to inflict on a Mac using normal means.
    MacKeeper is not the only such utility; it is merely the most visible due to its aggressive and highly successful marketing tactics.
    Get rid of MacKeeper by following these instructions exactly as written:
    If you used MacKeeper to encrypt any files or folders, use MacKeeper to un-encrypt them.
    Quit the MacKeeper app if it is running.
    Open your Applications folder: Using the Finder's Go menu, select Applications.
    Drag the MacKeeper icon from your Applications folder (not the Dock) to the Trash.
    You will be asked to authenticate (twice):
    You do not need to provide a reason for uninstalling it:
    Click the Uninstall MacKeeper button. You will be asked to authenticate again.
    After it uninstalls you may empty the Trash. All that will remain is an inert log file that does nothing but occupy space on your hard disk.
    Next: Test your Mac for operation. If it is still exhibiting problems, you may need to undo damage that occurred as a result of using MacKeeper. At the extreme this could include erasing your Mac and rebuilding your system from the ground up, but start by downloading and installing the OS X Combo Update I linked earlier. That may be all that is necessary to restore OS X to normal, but other programs you installed may need to be installed again.

  • Can anyone help me, please

    Hello again:
    Please run my coding first, and get some view from my coding.
    I want to add a table(it is from TableRenderDemo) to a JFrame when I click on the button(from DrawCalendar) of the numer 20, and I want the table disply under the buttons(from DrawCalendar), and the table & buttons all appear on the frame. I added some code for this problem(in the EventHander of the DrawCalendar class), but I do
    not known why it can not work.Please help me to solve this problem.
    Can anyone help me, please.
    Thanks.
    *This program for add some buttons to JPanel
    *and add listeners to each button
    *I want to display myTable under the buttons,
    *when I click on number 20, but why it doesn't
    *work, The coding for these part are indicated by ??????????????
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.GridLayout;
    public class DrawCalendar extends JPanel {
         private static DrawCalendar dC;
         private static TestMain tM;
         private static TableRenderDemo myTable;
         private static GridLayout gL;
         private static final int nlen = 35;
        private static String names[] = new String[nlen];
        private static JButton buttons[] = new JButton[nlen];
         public DrawCalendar(){
              gL=new GridLayout(5,7,0,0);
               setLayout(gL);
               assignValues();
               addJButton();
               registerListener();
        //assign values to each button
           private void assignValues(){
              names = new String[35];
             for(int i = 0; i < names.length; i++)
                names[i] = Integer.toString(i + 1);
         //create buttons and add them to Jpanel
         private void addJButton(){
              buttons=new JButton[names.length];
              for (int i=0; i<names.length; i++){
                   buttons=new JButton(names[i]);
         buttons[i].setBorder(null);
         buttons[i].setBackground(Color.white);
         buttons[i].setFont(new Font ("Palatino", 0,8));
    add(buttons[i]);
    //add listeners to each button
    private void registerListener(){
         for(int i=0; i<35; i++)
              buttons[i].addActionListener(new EventHandler());          
    //I want to display myTable under the buttons,
    //when I click on number 20, but why it doesn't
    //work
    private class EventHandler implements ActionListener{
         public void actionPerformed(ActionEvent e){
         for(int i=0; i<35; i++){
    //I want to display myTable under the buttons,
    //when I click on number 20, but why it doesn't
    //work
         if(i==20){  //???????????               
              tM=new TestMain(); //???????
              tM.c.removeAll(); //??????
              tM.c.add(dC); //???????
              tM.c.add(myTable); //????
              tM.validate();
         if(e.getSource()==buttons[i]){
         System.out.println("testing " + names[i]);
         break;
    *This program create a table with some data
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableColumn;
    import javax.swing.DefaultCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TableRenderDemo extends JScrollPane {
    private boolean DEBUG = true;
    public TableRenderDemo() {
    // super("TableRenderDemo");
    MyTableModel myModel = new MyTableModel();
    JTable table = new JTable(myModel);
    table.setPreferredScrollableViewportSize(new Dimension(700, 70));//500,70
    //Create the scroll pane and add the table to it.
    setViewportView(table);
    //Set up column sizes.
    initColumnSizes(table, myModel);
    //Fiddle with the Sport column's cell editors/renderers.
    setUpSportColumn(table.getColumnModel().getColumn(2));
    * This method picks good column sizes.
    * If all column heads are wider than the column's cells'
    * contents, then you can just use column.sizeWidthToFit().
    private void initColumnSizes(JTable table, MyTableModel model) {
    TableColumn column = null;
    Component comp = null;
    int headerWidth = 0;
    int cellWidth = 0;
    Object[] longValues = model.longValues;
    for (int i = 0; i < 5; i++) {
    column = table.getColumnModel().getColumn(i);
    try {
    comp = column.getHeaderRenderer().
    getTableCellRendererComponent(
    null, column.getHeaderValue(),
    false, false, 0, 0);
    headerWidth = comp.getPreferredSize().width;
    } catch (NullPointerException e) {
    System.err.println("Null pointer exception!");
    System.err.println(" getHeaderRenderer returns null in 1.3.");
    System.err.println(" The replacement is getDefaultRenderer.");
    comp = table.getDefaultRenderer(model.getColumnClass(i)).
    getTableCellRendererComponent(
    table, longValues[i],
    false, false, 0, i);
    cellWidth = comp.getPreferredSize().width;
    if (DEBUG) {
    System.out.println("Initializing width of column "
    + i + ". "
    + "headerWidth = " + headerWidth
    + "; cellWidth = " + cellWidth);
    //XXX: Before Swing 1.1 Beta 2, use setMinWidth instead.
    column.setPreferredWidth(Math.max(headerWidth, cellWidth));
    public void setUpSportColumn(TableColumn sportColumn) {
    //Set up the editor for the sport cells.
    JComboBox comboBox = new JComboBox();
    comboBox.addItem("Snowboarding");
    comboBox.addItem("Rowing");
    comboBox.addItem("Chasing toddlers");
    comboBox.addItem("Speed reading");
    comboBox.addItem("Teaching high school");
    comboBox.addItem("None");
    sportColumn.setCellEditor(new DefaultCellEditor(comboBox));
    //Set up tool tips for the sport cells.
    DefaultTableCellRenderer renderer =
    new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for combo box");
    sportColumn.setCellRenderer(renderer);
    //Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = sportColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the sport to see a list of choices");
    class MyTableModel extends AbstractTableModel {
    final String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final Object[][] data = {
    {"Mary ", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    public final Object[] longValues = {"Angela", "Andrews",
    "Teaching high school",
    new Integer(20), Boolean.TRUE};
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    * JTable uses this method to determine the default renderer/
    * editor for each cell. If we didn't implement this method,
    * then the last column would contain text ("true"/"false"),
    * rather than a check box.
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    * Don't need to implement this method unless your table's
    * editable.
    public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col < 2) {
    return false;
    } else {
    return true;
    * Don't need to implement this method unless your table's
    * data can change.
    public void setValueAt(Object value, int row, int col) {
    if (DEBUG) {
    System.out.println("Setting value at " + row + "," + col
    + " to " + value
    + " (an instance of "
    + value.getClass() + ")");
    if (data[0][col] instanceof Integer
    && !(value instanceof Integer)) {
    //With JFC/Swing 1.1 and JDK 1.2, we need to create
    //an Integer from the value; otherwise, the column
    //switches to contain Strings. Starting with v 1.3,
    //the table automatically converts value to an Integer,
    //so you only need the code in the 'else' part of this
    //'if' block.
    try {
    data[row][col] = new Integer(value.toString());
    fireTableCellUpdated(row, col);
    } catch (NumberFormatException e) {
    JOptionPane.showMessageDialog(TableRenderDemo.this,
    "The \"" + getColumnName(col)
    + "\" column accepts only integer values.");
    } else {
    data[row][col] = value;
    fireTableCellUpdated(row, col);
    if (DEBUG) {
    System.out.println("New value of data:");
    printDebugData();
    private void printDebugData() {
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + data[i][j]);
    System.out.println();
    System.out.println("--------------------------");
    *This program for add some buttons and a table on JFrame
    import java.awt.*;
    import javax.swing.*;
    public class TestMain extends JFrame{
    private static TableRenderDemo tRD;
         private static TestMain tM;
    protected static Container c;
    private static DrawCalendar dC;
         public static void main(String[] args){
         tM = new TestMain();
         tM.setVisible(true);
         public TestMain(){
         super(" Test");
         setSize(800,600);
    //set up layoutManager
    c=getContentPane();
    c.setLayout ( new GridLayout(3,1));
    tRD=new TableRenderDemo();
    dC=new DrawCalendar();
    addItems();//add Buttons to JFrame
    private void addItems(){
         c.add(dC); //add Buttons to JFrame
         //c.add(tRD); //add Table to JFrame     

    Click Here and follow the steps to configure your Linksys Router with Version FIOS.

  • I would like to get siri working on my 3G iphone 4s and since upgrading to ios 7 my speakers work intermittently can anyone help me please

    I upraded my 3G iphone 4s to the ios7 and have had trouble with the speakers  working on and off  and I would like to know how to get siri  and would like to know how to do that so that I may use it in my hands free  equipped vehicles can anyone help me please ?

    First, this is the Photoshop (full version) forum - you may be able to get more pertinent and specific help down at the Photoshop Elements forum:
    http://forums.adobe.com/community/photoshop_elements
    Generally speaking, one edits image files then saves the results on one's hard drive, so the photos don't "go into" Photoshop, but rather they are just files on the disk.  However, I'm not sure whether you used a feature of Elements I may not be familiar with.  You may be best off asking Elements experts.
    -Noel

  • I lost my bluetooth after installation of Maverick2. Can anyone help me please, i cannot use my magic mouse on my Mac Book Pro  retina???

    I lost my bluetooth after installation of Maverick2. Can anyone help me please, i cannot use my magic mouse on my Mac Book Pro  retina???

    There is a fix; I finally discovered how to clear the Windows 7 xx64 Device Manager's warning of a missing Bluetooth Peripheral device.
    Thinking Boot Camp 4.0 would correct thid, I installed it ititially today only to have the warning remain.
    The Bluetooth company called Broadcom (you notice the reference during the installation of Boot Camp) offers a BlueTooth "device finder" (my phraseology) that detects all BlueTooth devices in your Apple or PC but withing a Windows operating system; included are Windows 7 , Vista, XP and even 2000 operating systems.
    So download the 3 MB file, from Broadcom.com.  While your Bluetooth equipment is plugged in to the computer, run the program.  The program searches for any BlueTooth peripheral activated equipment and BlueTooth devices that makeup your MacBook Pro, or other Apple or a plain PC computer having a Windows operating system installed.  It then downloads the appropriate software required.
    The company's URL address:
    http://www.broadcom.com/support/bluetooth/update.php
    In my case, I ran the program, rebooted my MacBook Pro (in Windows 7 x64 and with the new Boot Camp 4.0 installed) and the missing BlueTooth peripheral device indication was eliminated.  It took 10 minutes to complete. 

  • HT3180 hi guys, have lost the menu on my apple tv, only gives me computer and settings, its onlu 5 months old, can anyone help me please

    hi guys, have lost the menu on my apple tv, only gives me computer and settings, its onlu 5 months old, can anyone help me please??

    I called Apple support, no support. Called my Internet support, no support. If your Apple TV is connected up to your Internet via wireless...... hard wire to your Internet turn it on and poof it connects.  Disconnect the hard wire from your Internet and it still will work. For what ever reason my wireless was not cutting it for updating the time and date which seems to be really important to Apple TV.
    Good luck

  • Apple iPad 3. BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Can anyone help me please.

    BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Apple iPad 3. Can anyone help me please.

    All resolved at last
    Deleted the SMTP setting
    Recreated the SMTP using the same settings
    Able to send emails now
    No logic - as usual - just a bug!

  • My iPhone 5 rear camera was not working, now the rear camera is also not working. I have procured the phone in 2012 from San Fransico. USA Can anyone help me, please?

    My iPhone 5 rear camera was not working, now the rear camera is also not working. I have procured the phone in 2012 from San Fransico. USA Can anyone help me, please?

    No one here can help you. If your phone is no longer under warranty, a third-party repair shop will most likely be your best bet. You can't mail the phone to Apple, in the US, as Apple does not accept international shipments. You could mail it to a friend/relative, in the US, & they could take it to an Apple store for you. Some Apple stores repair iPhones. Otherwise, you're looking at an out of warranty replacement.
    Good luck.

  • I have a business and I use iCal for all my appointments, how can I print receipts from my MacBook to a receipt printer? I want my clients to have a receipt of the services that they have paid for, can anyone HELP ME PLEASE?

    I have a business and I use iCal for all my appointments, how can I print receipts from my MacBook to a receipt printer?
    I want my clients to have a receipt of the services that they have paid for, can anyone HELP ME PLEASE?

    Well...I went to the modem (Westell, WireSpeed), found the NAT settings, once again, I'm WAY over my head, I am assuming this is a TCP connection (as opposed to a UDP) and per Lorex my mobile devices will use port 1025.  So I gave it a "global port range" of 1-10 and I indicated that the "base host port" was 80, 1025, & 9000 (ports 1,2,3).  When I selected the 'enable' it asked for a "host devise" my choices are my IPhone, IMac and the IP address for the dvr, so I choose the dvr.  I still cannot connect and canyouseeme still can NOT find these open ports.  This is taking up my whole day! I don't know how people figure this stuff out.

  • TS1363 IPOD classic not baing recognised in itunes, can anyone help me please?

    i habve an ipod classic when i first used it it was fine but then it started stopping syncing half way through saying there was an error and my songs would cut off half way through or just not play now when i connect it to the computer it dosent show up in itunes but does in my computer. i messege in my itunes pops up saying i need to restore my ipod yet my ipod dosent show up in itunes to do this. i have tried uninstalling intunes and reinstalling it again i have tried using a different laptop but nothing works can anyone help me please?

    See my response to your other post.
    B-rock

  • When I try to set up Icloud control panel in Windows Vista, I get "your setup couldn't be started because the Icloud server stopped responding. I've tried loads of fixes suggested on the net but none worked. Can anyone help me please?

    When I try to set up Icloud control panel in Windows Vista, I get "your setup couldn't be started because the Icloud server stopped responding. I've tried loads of fixes suggested on the net but none worked. Can anyone help me please?

    Hello, ksb2. 
    Thank you for visiting Apple Support Communities.
    We are investigating this issue. This article will be updated as more information becomes available.
    iCloud: iCloud Control Panel setup cannot be started
    http://support.apple.com/kb/TS5178
    Cheers,
    Jason H.

Maybe you are looking for