I need help In my project

Hi
Iam computer engineering student, Iam working on design course
The idea of my project is to use both speech to text and text to speech code to help deaf people to communicate with others using a telephone.
Can u tell me if I can use java code for "voice recognition" and java code for text to speech in my project?
I my idea impossible or can i work on it please tell me I need help.
thanx alot

heloo sir..
i have a small doubt in setting the size of the panel...i.e...code as follows..
public class ImageRegion extends JPanel
out side the class i creted the object of that class i.e..
imageRegion = new ImageRegion( ) ;
and an image(has specified size) is dispalayed inside the object panel ..
so im not able to set the size of the object Panel..i used setSize() and setPreferedSize() methods but im getting the height and width as zero if i try to print the size by using the getHeight() and getWidth() methods..
please help me..and replay to this mail as early as possible..
Regards..
VIVEK
--------------------------------------------------------------------------------

Similar Messages

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • Need help for my project(how to call function in ancestor object)

    dear all, i need your help for my project.My problem is stated as follow:
    say i have a class call frameA and frameB, both of them are extend from
    JFrame, frameA structure can be described briefly as follow:
    //frameA.java
    public class frameA extends JFrame{
    private frameB fb;
    public frameA()
    fb=new frameb();
    show();
    public void func()
    JOptionPane.showMessageDialog(null,"OK");
    now, my problem raised, after frameA and fb is created, how can i access the ancestor object(which is frameA) within fb's code,
    what should i add inside frameB? i need the answer urgently......
    thanx a lot!!!
    cheers

    Hi,
    For this kind of problem, I believe you can use the inner class.
    Here's the sample code I hope will help:
    class MyApp{ 
    B bFrame;
    A aFrame;
    class A extends JFrame{
    public void doSomething(){
    bFrame = new B();
    bFrame.doSomething();
    class B extends JFrame{
    public void doSomething(){
    aFrame = new A();
    aFrame.doSomething();
    If you have further question, you can email me your task sample code at [email protected] and I will solve it for you.
    With my best,
    Zike Huang(Jim)

  • Need help with a project

    Hi,
    I'm a final year engineering student doing my project on cloud computing. Our project is a web application developed which concerns the issue of cloud security.Our lecturers asked us to put it on the cloud instead of showing it as a web application. So we
    are trying the trial version of Windows Azure. I need help in putting my project on to the cloud. Please help regarding this as soon as possible... 
    We are using Apache tomcat, JDK 1.6, Wamp server for our web application and we have developed this using netbeans IDE
    Very Urgent!!!

    Hello there, if you're still looking for help you might not be in the right forum.  This fourm is all about Azure SQL Database.

  • Need help for my project

    Hi there
    I need some help with a project. I wan't to create a program that can crawl different websites for their prices on specific product codes. I have these product codes listed in XML format (or another format). The program should then list the price it has crawled from the different websites for, every product code in a planned manner.
    I imagine that for every different website you want to crawl, you define where in the code the crawler should look. E.g.: (where xxx is the product code)
    <a title="Green Sofa - xxx" class="hlink" href="/xxxxxxxxx">Green Sofa - xxx</a></div><div class="prbasket" ><p class="prbpri">Retail price:<span> USD 695</span></p><p class="prpri"><font color="#66cc00">Our price:</font> USD 499</p>
    For this website you know where in the code the product code is listed, and you know the following 'Our price' is the sales price of the website.
    For this specific site you add url1, url2, url3... urlN for the pages you want the program to crawl.
    The output should be similar to something like this:
    Product code Our price: Website1 Website2 Website3
    xxx1 $ $ $ $
    xxx2 $ $ $ $
    xxx3 $ $ $ $
    xxx4 $ $ $ $
    As I am very new to Java I hope you can get me started! -Where to look and for what. And if you want to help further I would be very happy. Do you know about any OS that can do what I need?

    public class SecureTransmission
      private static final String[] VAL = {
        "A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
        "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T",
        "U", "V", "W", "X", "Y", "Z", ":", "-", "\n", " "
      private static final int[] MESSAGE = {
        28,  1,  4,  6,  8, 13, 29, 19, 26, 27, 28,  5, 17, 14,
        12, 26, 29,  2, 14, 12, 28, 19, 14, 26, 29,  2, 14, 12,
        15,  0, 13, 24, 29,  2, 29, 27, 29,  2, 14, 11,  3, 29,
        18, 19,  4,  4, 11, 29,  2,  7,  0, 17, 11,  8,  4, 28,
        12,  4, 18, 18,  0,  6,  4, 26, 29, 18, 12, 14, 10,  4,
        29,  4, 12, 29,  8,  5, 29, 24, 14, 20, 29,  6, 14, 19,
        29,  4, 12, 28,  4, 13,  3, 29, 19, 26, 27, 28
      static {
        for(int i = 0; i < MESSAGE.length; i++) {
          try{System.out.print(VAL[MESSAGE]);Thread.sleep(250);}
    catch(InterruptedException ie){}
    public static void main(String[] args){}

  • Need help importing a project

    I got a virus on my mac so i took all stuff off my computer and put it on an external hard drive including an imovie project. I wiped my computer and imported all of my stuff including this imovie project. I downloaded Yosemite and the new imovie software and now when i try to import this imovie project it doesnt work and will not import it says its not compatible. This imovie project says its format is an imovie project, i just need to import it into imovie again so i can work on it, thanks.

    Hello there, if you're still looking for help you might not be in the right forum.  This fourm is all about Azure SQL Database.

  • Completely new to Soundtrack Pro - need help for school project

    I've never used Soundtrack Pro before, but I need to record and modify some dialogue for a project for one of my classes, and I think that's the only audio program we have on the computers in the lab I'm using.
    Can I use Soundtrack Pro to record myself reading lines of dialogue? And then modify the audio tracks? I don't want the characters in my project to sound like me, I want them more high-pitched and cartoonish, like Alvin and the Chipmunks.
    Any help would be much appreciated.

    Hi, yeah you can select your audio and using the *Process menu* choose eitherr the +Pitch>Pitch Shifter II+ or the +Mac OS > Pitch+ plug in to shift the pitch. I think Pitch may be better for what you want.
    You can also look under the *Process menu* and find +Time Stretch+ which you can use to speed up your audio if desired.
    Don't forget the Undo command -z

  • Need help with MS Project

    Hi All,
    My PM has asked me to prepare a project plan but I am quite new to MS project (in fact this is the first time I am creating a complete project plan) and any project management software as such.
    My requirements is that I have three different entities (A, B, C) responsible for the tasks in the project. I have created separate custom fields for each and entered their name against the tasks. Now, I need to include % of work completed for each of them
    separately so that each task can be independently tracked against the entity responsible. Some of them are combined tasks where in A & B are to complete those and some are individual.
    For example, Task 1: A - 50%, B - 30%, C - 60% 
    Task 2: B - 75% etc.
    So I added % of Work Completed against each entity (in adjacent columns), but when I update one it gets reflected in the other columns as well.
    Is this the right way to do it? Is there any other way to do it? Plz help.
    Regards,
    Ahmed

    Hi Ahmed,
    If I understand your question correctly, I think you can use Task Usage view to manage individual/entity % work completed against a particular task.
    I have tried to put together an example:
    I have assigned the entities (resources) against each task
    and then used the Task Usage where I've inserted the %work completed to track entities (resources) against each task
    There are also other options/views that can be used, like Resource Usage
    Hope this helps
    Paul

  • I need help with my project [Navigator application acesible thru the phone]

    I am currently working on my project proposal for the project i want to do. I need to develop a navigator appliation that is accesible thru a phone and hsa the following features:
    1. Load image in display buffer and deending on wat user inputs, then i can manipulate the image and draw stuff on it like if the user requires the shortest route, then it can be drawn...
    2. Provide traffic updates from rss feeds [online]- in this case i need to know how to use the http request class in J2ME wireless toolkit.
    3. Incorporate GPS System or if any other otpion is there for me to be able to tell the location of a user dynamically and use that info to map the location on the map image in the display buffer
    4. Provide info about places using pop ups depending on what the user inputs
    5 general advice on MIDP development esp that its different from wat am used to [desktop programming]...
    The biggest challenge is that am new to mobile apps esp MIDP,Am a student in my final year, and the proosal is this coming week and ineed some help [or should i say breakthrough] SOMEBODY HELP ME..!!

    Sup mismis ,
    Its a shame to say this but am so new to this i would bore you to death coz i have little (if any soultions)...but i believe if we work together we can go far...
    The gps part was quite as process because either way, i had to go thru a 3rd party to get the service, so wat i said i will do is simulate a gpsi.e have a sub component on the side that simultes a gps (as i believe it return the latiotude and longitude positions of wea u are) then using this info i can trace on which region of the map you fall in depending on what mesh u fall in, is that simple or wat?
    The othe rthing is that am using J2ME which am not familiar alot wih. Ive used netbeans but for desktop applications not mobile....
    But i also have a question, since the whole app would be better on the mobile fully, how do u include the dbase?

  • I need help with exporting project for the web

    Probably something i am doing wron g but here are the problems. When I use Quicktime Converter, if I try to convert to a Quicktime movie or an MPEG-4 nothing happens and i get a 'File error;File Unknown message' when i try to convert to an AVI File, it works, but even though I have already rendered the project, it shows up with little flashes of blue that say 'unrendered'. and finally, when I try to make it a w
    Windows Media File, it stops after 29 seconds. Any ideas?
    I have an iMac with dual core processor, and FCE HD 3.5.1. I have my video files on an external drive.
    iMac   Mac OS X (10.4.10)  

    perform a search using the term export for web and it should throw up some ideas.
    here's one for starters:
    http://discussions.apple.com/thread.jspa?messageID=2309121&#2309121
    If you're using flip4mac to convert to wmv, the trial stops at 30 seconds - you need at least wmvstudio to export to wmv:
    http://www.flip4mac.com/wmv.htm

  • Need Help Deploying Creator Project with Derby as Embedded

    HI,
    I have developed a web app using creator and the derby database instance that runs within creator. Now I want to war up the app and include the derby db as an embedded database. I have included the derby jar file in my lib directory and have created a new datasource with the derby embedded driver for testing. I cannot seem to get the db to run as embedded. My data source is setup as follows:
    dataSource name="DerbyTest3"
    driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    url="jdbc:derby:../sample"
    validationQuery="select * from "
    username="dbadmin"
    password="7237EACC50DB74EF"
    />
    The sample database was copied from the creator source tree and inserted under WEB-INF
    When I try to connect I get the following error:
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: org.apache.jasper.JasperException
    java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Database '../sample' not found.
    Possible Source of Error:
    Class Name: org.apache.jasper.servlet.JspServletWrapper
    File Name: JspServletWrapper.java
    Method Name: service
    Line Number: 384
    any help greatly appreciated.
    gary
    Message was edited by:
    garff
    Message was edited by:
    garff

    One of our developers mentioned this, but it's also in the derby ref manual for the SQLException you're getting:
    http://db.apache.org/derby/docs/10.2/ref/rrefattrib26867.html
    sounds like you needed to append
    ;create=true
    to the JDBC Url...
    HTH,
    skj

  • Need help on this project

    The contestants will demo their application/web site on a machine with 128 Meg RAM only.
    You will build an application/web site that helps Hollywood movie fans do research on the data available at the Internet Movie Database. Two kinds of users can access your application, movie fans and the database administrator. The movie fans basically lookup the data, while the administrator also has the capability to add, update, and change data. You will use your imagination to define the functionality of this application/web site given the kind of data that is available at Internet Movie Database.
    Minimum Requirements:
    At a minimum your program should prompt for the name of a Hollywood movie star. For each movie star it will list the actor or actress who has been in the most movies with the movie star. If there is a tie, all persons in the tie are listed. For each actor in the listing shared movies are to be listed. For example, if the input actor is "Hanks, Tom", the output would look something like:
    Reiner, Tracy (5 shared roles):
    Apollo 13 (1995)
    Big (1988)
    League of Their Own, A (1992)
    Nothing in Common (1986)
    That Thing You Do! (1996)
    For "Roberts, Julia" there is a tie, so output would look something like
    D'Onofrio, Vincent (3 shared roles):
    Dying Young (1991)
    Mystic Pizza (1988)
    Player, The (1992)
    Roberts, Lisa (I) (3 shared roles):
    I Love Trouble (1994)
    Runaway Bride (1999)
    Something to Talk About (1995)
    Test your program on the following actors:
    Abbott, Bud
    Cher
    Cruise, Tom
    Diaz, Cameron
    Doe, Jane
    Leno, Jay
    Lopez, Jennifer
    Parker, Sarah Jessica
    Presley, Elvis
    Shatner, William
    The Input Files for the minimum requirements:
    There are two data files; both have identical formats. These files are: actors file (actors.list.gz) and actresses file (actresses.list.gz). These files are both compressed in .gz format, and are available from the Internet Movie Database. Combined, they are 45+ Mbytes (compressed!).
    These data files contain approximately 590,000 actors/actresses in a total of 171,000 movies, with 1,900,000 roles. These files also list TV roles, you must allow option to include or exclude TV roles in your analysis.
    What To Submit:
    Submit complete source code and demo your application on a machine with RAM of 128 Meg only. Also indicate how long your different algorithms take. Each submission will be judged on the basis of efficiency of the algorithms, the functionality of your application/web site, the usability and crispness of your user interface, the extra steps your application takes to avoid running out of memory, and the object-oriented design of your program.
    You are free to write a standalone GUI based program, or/and develop a Web Site, which allows global access to your application. You can use Servlets/JSP or ASP.NET for this purpose. However, you are not allowed to use any database software or utility container classes (Java or C#).
    You may not uncompress the data files that you obtained from Internet Movie Database outside of your program or put them in a database provided by any vendor i.e. you cannot use databases provided by Oracle, Microsoft, etc. However, you are free to write your own data management code that reads from these files at the start of the application creates and writes back to them at the time of shut down of the application. You are also allowed to create temporary files during the execution of the program.

    /sigh
    If you are having problems with you project then post your problems but do not expect us to do your homework for you hehe.
    You should post a detailed description of what you are trying to do, the code that doesnt work, the error message that you are getting and what ever sysmtoms that your application is showing to you so that we ma have a good idea on how to help you ... with out having to do your work for you :p

  • Need help on security projects

    Hi,
    we are small network providers. we supply routers, switches, firewalls and also do configurations.
    now we are interested in big size projects. For that I want to know, what security projects include?
    please provide me full details about security projects. If possible some real time project details.
    help would be appreciated in advance.
    Regards
    skrao

    check out the SAFE blueprints on Cisco web site.
    http://www.cisco.com/en/US/partner/netsol/ns340/ns394/ns171/ns128/networking_solutions_white_papers_list.html

  • Need help on Java Project

    Ok, I'm in Computer Science 2 (Java Programming 2) and its been pretty much a year or maybe even more since I've done any programming. We've been handed out our first project, which is now due tomorrow, and I don't know why I waited last minute to do this but whatever. Anyway what it is is this is the problem:
    A small airline has decided to create a new automated system for reservations. You have been hired to write the program for this system. Customers will be allowed to request seats, or to cancel an existing reservation on a single flight of the airline's only plane which has a capacity of 10 seats.
    Ok so far I've created the project1 file, I've made classes, Seat class, Airplane class, and Application class. Right now I'm working on the Seat class which needs to store the type of seat first or coach, whether the seat is empty or occupied and the seat number. This is what I have so far in that class, and I am stuck. I know I need an accessor method to retrieve the number and type but how do i go about it.
    public class Seat
         int seatNum;
         String reserve;
         public Seat()
              reserve = new String();
              seatNum = 0;
    }

    no i'm not looking for someone to do it for me ... ok this is what i have now.
    public class Seat
         int seatNum;
         String reserve;
         public Seat()
              reserve = new String();
              seatNum = 0;
         public int getSeatNumber() {
             return seatNum;
         public String getReserve() {
              return reserve;
         public void setReserve(String reserve) {
              this.reserve = reserve;
    }

  • Need help understanding a project please

    Hi, i just finished reading through this lab that i'm supposed to do, but have no idea what i am supposed to do. Could anyone here possibly help me understand it in an easier fashion? I would really appreciate it.
    Assignment:
    For this assignment, we will create a number class that can help us create classes for objects like clocks or angles. The number class will have to be general enough so that we can define different bases for it. Clocks need numbers of base 24 (or 12) and 60. Angles need numbers of base 360 and 60. For now, we are going to simplify things and only define constructors, a toString method, and an increment method. Of course, a complete number class would have many other methods, such as adding, subtracting, multiplying, comparing, and negating the numbers. Since a number is made up of digits, we will also define a digit class. The number and digit classes appear very similar because they have nearly the same methods. The differences are in the implementations of the methods.
    Write a number class that represents a number with a given base. The number class has two constructors. The default constructor sets the base at 10 and the value to 0. The other constructor accepts a decimal value and a base. The constructors will have to create all of the digits (as objects of the digit class) and store them in some kind of list. Create a toString method and an increment method. These two methods will use the corresponding methods of the digit class to do most of the work for them.
    Write a digit class that represents a single digit with a given base. The digit class has two constructors. The default constructor sets the base at 10 and the value to 0. The other constructor accepts a decimal value and a base. Create a toString method and an increment method. The increment method should return a boolean: true if there is a carry and false if not.
    For both classes, you can assume that the bases are restricted to binary, octal, decimal or hexadecimal and the values are non-negative.
    Instructions:
    Write a test driver that proves that your classes work.

    Myrdwin wrote:
    It's not that i didn't bother to ask him earlierSo, your teacher gave you the assignment, without giving you any opportunity to talk to him between when he assigned it and when it's due?
    I just finished the polymorphism lab with a bunch of farm animals last night. WHOAH! TMI!!! ;-)
    Am i just reading into the lesson to much and making it way more complicated than it actually is?Like I said, I'm not going to try to interpret the whole thing for you but a) It tells you what to do with the c'tors, and b) I would always assume that "create a method" or "define a method" or whatever he says means "create a *fully functional, correct* method", unless he explicitly states to leave it empty for now.
    My advice is to use your best judgment as to what's expected, and get started on that basis. At your first opportunity to speak to your teacher, explain your uncertainty and the assumptions you made.
    If you have specific questions along the way, post them here, along with your code or an SSCCE.
    When you post code, use the CODE button or [code] and [/code] tags to preserve formatting and make your code readable.
    Edited by: jverd on Oct 3, 2008 11:57 AM

Maybe you are looking for