User Profile

Collapse

Profile Sidebar

Collapse
ALi Shaikh
ALi Shaikh
Last Activity: Dec 26 '08, 10:29 PM
Joined: Sep 30 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ALi Shaikh
    started a topic Need Applet Help
    in Java

    Need Applet Help

    My applet which is supposed to display a Telephone Keypad wont display anyting
    Here is the Code, PLease Help
    The class:
    Code:
    //******************************************************
    // TelephonePanel.java
    //
    // Lays out a (functionless) GUI like a telephone keypad with a title.
    // Illustrates use of BorderLayout and GridLayout.
    //******************************************************
    import
    ...
    See more | Go to post

  • ALi Shaikh
    started a topic Getting Return Error
    in Java

    Getting Return Error

    Hello, Whenever I run this Program it says "Return statement missing"
    Code:
    public class Compare3 {
    
       public static Comparable largest (Comparable ob1,Comparable ob2,Comparable ob3)
        {
        	
        	if(ob1.compareTo(ob2)>0)
        	{
        		if(ob1.compareTo(ob3)>0)
        			return ob1;
        		else if(ob1.compareTo(ob3)<1)
        			return ob3;
       		}
    ...
    See more | Go to post

  • ALi Shaikh
    replied to Fractions!
    in Java
    Our teacher said that we just need to know what Exceptions are for the AP exam.
    She also said we learn how to "throw" exceptions in CompSci AB. However AB was canceled by the College Board because only 7-10 people took it in a school, so i guess I wont be learning that :(
    However we did cover exceptions and I know what you mean when you say its not right. But my teacher gave us the Rational class, we just had to modify it...
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    replied to Fractions!
    in Java
    Thanks so much!!!!
    This will save me in AP CompSci A!!!
    I can't believe I forgot that!!, well it never came to my mind...
    Again thank you so much for helping dude!
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    started a topic Fractions!
    in Java

    Fractions!

    I'm haivng a problems with these fractions, Whenever I run it, it returns the first one is smaller when it is not. I modified this file to include the compareTo method, please help

    Class
    Code:
    //********************************************************************
    //  Rational.java       Author: Ali
    //  Represents one rational number with a numerator and denominator.
    //********************************************************************
    ...
    See more | Go to post

  • ALi Shaikh
    replied to Help with vectors
    in C
    You just made life a whole lot easier man. Now ALL my programs work when I change apstring to string and apvector to vector.
    YOU ARE THE GREATEST PERSON EVER!!!!...
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    replied to Help with vectors
    in C
    THANKS ALOT, I really didn't know that, now I can finally test my vector programs.
    One more thing can my compiler(Codewa rrior) do fstream,string, and matrix. Are these standard...
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    started a topic Help with vectors
    in C

    Help with vectors

    I need to declare something like this: apvector<int> roster(10);
    I need to change it so that the user can enter the length, so would this work( my compiler can't run vectors so I have no way of checking this)
    Code:
    cout<<"Enter the size of the vector: ";
    cin>>size;
    apvector<int> roster(size);
    Please help.
    Thanks in Advance.
    See more | Go to post

  • ALi Shaikh
    started a topic Please help the program wont display ODD numbers
    in C

    Please help the program wont display ODD numbers

    This works and shows the factors or tells if the number is a prime number but doesn't show ODD factors please help!! I need to turn this tomorrow
    Code:
    #include <iostream>
    using namespace std; 	
    int prime(int num);
    int main()
    {
    int num;
    cout<<"Enter number: ";
    cin>>num;
    if(prime(num)==1)
    cout<<"The number is prime";
    else
    ...
    See more | Go to post

  • Modifying 13 stones game to force computer to make specific first move

    I already did the game once and it works but now I need to change it to add a function that will make the computer take player 1 turn and always win.
    heres the original
    Code:
    #include<iostream.h>
    
    void main()
    {
        int nums, // stones left
            nump,   // Number of stones picked up by player
            player;
                  // Player identifier (1 or 2)
    ...
    See more | Go to post

  • Where do I find information on "High-Availible" servers??

    I searched the net countless times yet i am not able to find anything at all....does any know where I can find some info..??
    See more | Go to post

  • ALi Shaikh
    replied to Switch statements not working!!
    in C
    Hey man thanks it works PERRRRfectly now all thanks to you!!!...
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    started a topic Switch statements not working!!
    in C

    Switch statements not working!!

    Hey switch statements are not working it gives me errors saying "case" illegal use of word. heres the code
    Code:
    //Chinese calender Project
    #include <iostream.h>
    int main()
    {
    int year;
    int myear;
    cout<<"Enter a year";
    cin>>year;
    myear = year%12;
    switch(myear);
    {
    case 4:
    cout<<"The year of the RAT\n";
    ...
    See more | Go to post

  • ALi Shaikh
    replied to HTTP Performance
    in .NET
    HTTP Performance

    e decided to stay at home to scrutinize is system's HTTP performance.
    We were upset that our browser only supported HTTP 1.0 and therefore
    seemed to perform poorly (even though he recently upgraded to 512KB
    ADSL). Fortunately, Microsoft was programming a Java HTTP 1.1 proxy at
    this time and he decided to install the release candidate 0.9 on his
    (only) computer. Even though the proxy...
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    started a topic HTTP Performance
    in .NET

    HTTP Performance

    e decided to stay at home to scrutinize is system's HTTP performance.
    We were upset that our browser only supported HTTP 1.0 and therefore
    seemed to perform poorly (even though he recently upgraded to 512KB
    ADSL). Fortunately, Microsoft was programming a Java HTTP 1.1 proxy at
    this time and he decided to install the release candidate 0.9 on his
    (only) computer. Even though the proxy did not yet support compression...
    See more | Go to post

  • ALi Shaikh
    replied to Why cant I MOD in Code Warrior
    in C
    Sorry Studlyami I didnt fully read your reply.
    Well i changed float to int and now all my problems are solved THANKS!!
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    replied to Why cant I MOD in Code Warrior
    in C
    What do I do then because i need this by sunday
    See more | Go to post

    Leave a comment:


  • ALi Shaikh
    started a topic Why cant I MOD in Code Warrior
    in C

    Why cant I MOD in Code Warrior

    When ever I put in the % symbol it gives me stupid errors but if I change the % to a - or +,*,/ it works here is the code.
    Code:
    ..  
    //Price of Pizza's 
    #include<iostream.h>
    void main()
    {
    	float inch;   
    	float fin; 
    	
    cout<<endl;
    cout<<"Enter your Height ";
    cin>> inch;
    fin = inch % 12;
    cout<<"Here is your hieght "<<inch/12<<fin<<
    ...
    See more | Go to post
No activity results to display
Show More
Working...