Help with method for reading coeffecients.

I am fairly new to Java programming and I was asked by my instructor to wright a program that calculates the quadratic formula via a loop. So far i have the following code:
   // Constructor obtains the number of equations as a parameter
   Quadratic2(int limit) throws IOException {  // Constructor
      // All computations are performed in a loop
      for (int count=0; count<limit; count++) { // setting count to 0, if count is less than limit , then count is incremented by 1
         // Reading the coefficients
         System.out.print("Please enter coefficient a: ");
         double coeffA = Double.parseDouble(inp.readLine());
         System.out.print("Please enter coefficient b: ");
         double coeffB = Double.parseDouble(inp.readLine());
         System.out.print("Please enter coefficient c: ");
         double coeffC = Double.parseDouble(inp.readLine());
         System.out.println();
         double Disc = discr(coeffA, coeffB, coeffC);  // Compute discriminant
         if (Disc >= 0.0) {  // Solution exists
            // Solving the equation
            double root1 = roots(coeffA, coeffB, coeffC, true);
            double root2 = roots(coeffA, coeffB, coeffC, false);
            // Outputting results
            System.out.println("Quadratic equation with the following coefficients:");
            System.out.println("A: " + coeffA + "; B: " + coeffB + "; C: " + coeffC);
            System.out.println("has the following solution:");
            System.out.println("Root1: " + root1 + "; Root2: " + root2);
         else {  // Solution does not exist
            System.out.println("Quadratic equation with the following coefficients:");
            System.out.println("A: " + coeffA + "; B: " + coeffB + "; C: " + coeffC);
            System.out.println("has no solution in the real domain.");
         System.out.println("");
   // A method to compute the discriminant
   double discr(double a, double b, double c) {
      return b*b - 4*a*c;
   // A method to calculate roots
   double roots(double a, double b, double c, boolean which) {
      double Disc = discr(a, b, c);
      if (which) {
         return (-b - Math.sqrt(Disc))/(2*a);
      else {
         return (-b + Math.sqrt(Disc))/(2*a);
   public static void main(String args[]) throws IOException { //Must throw an IO execption
      int noEqs = 1;  // Number of equations
      noEqs = Integer.parseInt(args[0]);  // Passed from command line
      Quadratic2 obj = new Quadratic2(noEqs);
}I was told to read the coefficients with a method named readCoeffs() but evey time I try to do that I get several errors and as mentioned previously I am new to Java and therefore not able to interpret these errors. As you can see in the above code i read the coeffecients as they are entered but not via a method. I tryed using using the following but to no avail:
  double coeffA = readCoeffs(in);
      double coeffB = readCoeffs(in);
      double coeffC = readCoeffs(in);I was wondering if any of you more experienced programmers are able to show me how or help me write a method to read the coefficients? Any help or advice would be greatly appreciated!

Sorry I should have been more specific in my question and provided more detail. Anyways i have revised my code to the following:
//Java Program that Calculates the Quadratic Formula using a loop written by Kris Andrews
// 10/08/07
// Intro to Programming/COP 2006
import java.io.*;//import java library
class Quadratic2 { //Naming Class
   Quadratic2(int limit) throws IOException {  // Constructor that takes variable as parameter and computes as many times as the value entered
      // All computations are performed in a loop
      for (int i=0; i<limit; i++) { // setting i to 0, if i is less than limit , then i is incremented by 1
   // Declarations necessary to use kbd input //Declaring variable locally
   InputStreamReader inStream = new InputStreamReader(System.in);
   BufferedReader inp = new BufferedReader(inStream);
// Method to read coefficients
   double readCoeffs() throws IOException {
         System.out.print("Please enter coefficient a: ");
         A = Double.parseDouble(inp.readLine());
         System.out.print("Please enter coefficient b: ");
         B = Double.parseDouble(inp.readLine());
         System.out.print("Please enter coefficient c: ");
         C = Double.parseDouble(inp.readLine());
         System.out.println("");
         return true;
   double Disc = discr(A, B, C);  // Compute discriminant
         if (Disc >= 0.0) {  // Solution exists
            // Solving the equation
            double root1 = roots(A, B, C, true);
            double root2 = roots(A, B, C, false);
            // Outputting results
            System.out.println("Quadratic equation with the following coefficients:");
            System.out.println("A: " + A + "; B: " + B + "; C: " + C);
            System.out.println("has the following solution:");
            System.out.println("Root1: " + root1 + "; Root2: " + root2);
         else {  // Solution does not exist
            System.out.println("Quadratic equation with the following coefficients:");
            System.out.println("A: " + A + "; B: " + B + "; C: " + C);
            System.out.println("has no solution in the real domain.");
         System.out.println("");
   // A method to compute the discriminant
   double discr(double a, double b, double c) {
      return b*b - 4*a*c;
   // A method to calculate roots
   double roots(double a, double b, double c, boolean which) {
      double Disc = discr(a, b, c);
      if (which) {
         return (-b - Math.sqrt(Disc))/(2*a);
      else {
         return (-b + Math.sqrt(Disc))/(2*a);
   public static void main(String args[]) throws IOException { //Must throw an IO execption
      int Equations = 1;  // Number of equations
      Equations = Integer.parseInt(args[0]);  // Passed from command line
      Quadratic2 obj = new Quadratic2(Equations);
}But I get the following error:
Quadratic2.java:23: ';' expected
double readCoeffs() throws IOException {
^
Quadratic2.java:23: not a statement
double readCoeffs() throws IOException {
^
Quadratic2.java:23: ';' expected
double readCoeffs() throws IOException {
^
I did not receive this error prior to trying to read the coefficients via a method and what do i need to to correct these errors? Again any help would be appreciated!

Similar Messages

  • Help with iWeb for reader comments.

    How do I create a place for reader comment/blogs on my site? I use iWeb.

    If you're hosting your iWeb blog on a non-MobileMe server you'll lose the following features:
    Features Unavailable When Publishing to a 3rd Party Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    Currently if the site is published directly from iWeb to the 3rd party server the RSS feed and slideshow subscription features will work. However, if the site is first published to a folder on the hard drive and then uploaded to the sever with a 3rd party FTP client those two feature will be broken.
    You can add 3rd party commenting to your iWeb blog with one of these; DISQUS,  IntenseDebate or  Echo. Or, if you're just starting out with a new blog use one of the established blogging sites and embed it into one of your iWeb pages as in this demo page: Embed a Site Within an iWeb Page
    OT

  • Need some help with method for calendar

    Hi all,
    I've got to design a claendar for college but I'm not allowed use any one the Java calendar classes so I've but up a number of methods to get the start days of months etc.
    At the moment I'm trying to get a method working tha will loop around 12 times and assign the days in the month to a string array for printing later in another function but to test I'm printing to screen.
    At the moment when I get the days to print on screen It shows me the days for Janurary similar to below 12 times and I've been looking at it so long I can't see the wood for the trees and I was just wondering if someone can point out when I'm going wrong here.
    1 2 3 4 5 6
    7 8 9 10 11 12 13
    14 15 16 17 18 19 20
    21 22 23 24 25 26 27
    28 29 30 31
    The data for the start days and total number of days in a month are held in arrays in seperate methods as well.
    With the following code I'm just getting the days for Jan to print out 12 times.
    I thnik the the problem is with the first part of the while loop It does not appear to be looping throught the DaysIn and TopLeft arrays as if I manually change the value of the variable l = 1; I get the days for Feb to print out.
               static int [] DaysIn (int y) //  return correct day in month
             int [] LDays = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; // leap year.
             int [] Days = {31, 28, 31, 30, 31, 31, 31, 30, 30, 31, 30, 31};
         if (y%4==0 && (y%100!=0 || y%400==0)) // test if y is a leap year. y is gotten from print cal.
             return LDays;
         else               
            return Days;
    static int [] TopLeft (int y) // find the starting position of the days in a month for printing
            int [] k = StartDay(y);
            int [] TopLeft = new int [12];
            int t = 0;
           while (t!=12)
         TopLeft[t] = 1- k[t];
         t++;
           return TopLeft;
    static String [] DispMonthDays(int y) // Method to supply the days of a month in grid form needs work.
         int k = 0; // int to take the topleft value for each month
         int DIM = 0; // int to take the total days in each month
        String MonthD=""; // empty string
         String [] MonthDay = new String [6];
         int l= 0;
                   While(l!=12)
              k = TopLeft(y)[l]; // Believe problem lies at these two lines
              DIM = DaysIn(y)[l];  //
                while (k != 42)
                 if (k < 1){MonthD = MonthD + " "+" "+" ";}
                                      else if (k >=1 && k <=9){MonthD = MonthD + " "+ k +" ";}
                    else if (k >= 10 && k <= DIM){MonthD = MonthD + k + " ";}
                    else if(k > DIM){MonthD = MonthD +" ";}
                    k++;     
              MonthDay[0] = MonthD.substring(0,20);
              MonthDay[1] = MonthD.substring(21,41);
              MonthDay[2] = MonthD.substring(42,62);
              MonthDay[3] = MonthD.substring(63,83);
              MonthDay[4] = MonthD.substring(84,104);
              MonthDay[5] = MonthD.substring(105,106);
         l++;}
         return MonthDay;
    static void PrintCal(int y) // function to hand off year and print cal
         int upstep=0;
        int count=0;
        while (count !=12)
              while (upstep!=6)
                 System.out.print(DispMonthDays(y)[upstep]);System.out.println();
                   upstep++;
              upstep=0;
              count++;
    }Any help greatly appreciated

    Given the previous valid comment here is my code again.
    I'm running the code on the console
       // Months of year          
                    static final String [] MNames  = {"January ", "February ", "March ", 
                        "April ",   "May ",      "June ",
                        "July ",    "August ",   "September ",
                         "October ", "November ", "December "};
         static int [] daysIn (int y) // see if y is a leap year and return correct day in month
               int [] LDays = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; // leap year.
               int [] Days = {31, 28, 31, 30, 31, 31, 31, 30, 30, 31, 30, 31};
              if (y%4==0 && (y%100!=0 || y%400==0)) // test if y is a leap year. y is gotten from printCal.
              return LDays;
              else               
              return Days;
                    static int [] startDay(int y) // Find First Day of a month
              int [] z = daysIn(y);
              int firstDay =((y-1900)*365 +(y-1901)/4)%7;
              int x = 0;
             int [] startDay = new int [12];
             while (x!=12)
              if (x==0)
                 {startDay[0] = firstDay; firstDay = (firstDay+z[0])%7;}
              else
                 {startDay[x] = firstDay; firstDay = (firstDay+z[x])%7;}
              x++;
              return startDay;
           static int [] topLeft (int y) // find the starting position of the days in a month for printing
              int [] k = startDay(y);
              int [] topLeft = new int [12];
              int t = 0;
                                         while (t!=12)
                       topLeft[t] = 1- k[t];
                                              t++;
              return topLeft;
           static String [] dispMonthDays(int y) // Method to supply the days of a month in grid form needs work.
                 int k = 0; // int to take the topleft value for each month
                 int dim = 0; // int to take the total days in each month               
                            String monthD=""; // empty string
                 String [] monthDay = new String [6]; // String Array to take the results of MonthD  and be returned 12 tmes
              int loopThrough= 0; // int variable to progress through the topLeft and daysIn arrays
              while(loopThrough !=12)
                     k = topLeft(y)[loopThrought]; // Not being moved through as far as I can see
                    dim = daysIn(y)[loopThrough];
                          while (k != 42)
                     if (k < 1){monthD = monthD + " "+" "+" ";}
                        else if (k >=1 && k <=9){monthD = monthD + " "+ k +" ";}
                       else if (k >= 10 && k <= dim){monthD = monthD + k + " ";}
                       else if(k > dim){monthD = monthD +" ";}
                       k++;}
                     monthDay[0] = monthD.substring(0,20);
                     monthDay[1] = monthD.substring(21,41);
                     monthDay[2] = monthD.substring(42,62);
                     monthDay[3] = monthD.substring(63,83);
                     monthDay[4] = monthD.substring(84,104);
                     monthDay[5] = monthD.substring(105,106);
                   l++;
              return monthDay;
       static void printCal(int y) // function to hand off year and print cal amended for testing to see if dispMonthDays is working
         int count=0;
         int upstep=0; // int variable to return the monthDay
                          while (count !=12)
              while (upstep!=6)
                      System.out.print(dispMonthDays(y)[upstep]);
                       upstep++;
               upstep=0;
              count++;
      public static void main (String [] args)
         Scanner input = new Scanner (System.in);
         System.out.print("Enter a year: "); int year = input.nextInt();
             printCal(year);
                  I still think the problem is with the first loop in dispMonthDays

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Help with updates for CS6

    I need help installing latest updates for CS6.  I have Win 7 and have tried updating from the Help - Updates menu.  The error is:  U43M1D207.

    Thanks for your response.  I am in the United States in So. Arizona.
    Date: Fri, 5 Oct 2012 12:21:45 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help with updates for CS6
    Re: Help with updates for CS6 created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Crunkle1 you are welcome to work directly with our support team for guided assistance.  If you go to http://www.adobe.com/ and select Help and Contact Us you should be given the option to contact our support team via telephone.  Which country/region are you in?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4752605#4752605
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4752605#4752605
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4752605#4752605. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to create a method for reading a file

    i tried to make it as static method for reading a file and
    then to return string
    is this code correct?
              public static String fileMaterial(String fileName)
                   fileReader = new BufferedReader(new FileReader(fileName));
                   info = fileReader.readLine();
                   while(school != null)     {                    
                        return info;
                        info = fileReader.readLine();

    I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
    BuffIO new = BuffIO.fopen("fiilename", "r");
    String s;
    if((s = new.fgets()) == null)
    System.err.println("error reading file: " + new.ferror());
    That would be waht the calling program does

  • I need help with adobe iv reader.

    iam trying to pin a website using ie.it says the reader cannot read the website,i am not computer saavy so i donot know how to fix this issue, pls help,tyvm.

    i am trying to pin a website in internet explorer to my task bar,i get a 
    message that adobe v1 could not decode the website, i am not computer saavy
    so i  don't know what that means,plus this is a new computer 4 me.plus it
    worked fine  a few days ago. tyvm 4 ur help.
    regards,
    ray nist
    In a message dated 6/11/2013 9:27:11 P.M. Eastern Daylight Time, 
    [email protected] writes:
    Re: i  need help with adobe iv reader.
    created by Pat Willener (http://forums.adobe.com/people/pwillener)  in 
    Adobe Reader - View the full  discussion
    (http://forums.adobe.com/message/5400013#5400013)

  • Help with efficiency for insert/get methods?

    I am not an expert when it comes to run times and I am wondering what the most efficient data structures would be for a program I am making. I need to:
    Go through a large document in which each line is formatted as: (String Integer), and add the string & integer to some sort of data structure. The list of string/integers is large and I need to be able to access the information in the data structure efficiently. Right now I am using a scanner to read the doc and a TreeMap<String, Integer> to store the info. The get method for the TreeMap is fine, but processing the document is a little slow.
    What do you think? TreeMap, hashing, balanced search tree? Remember, the insert and get methods are the two that need to be most efficient.

    Why are you using a TreeMap? Is the order of iteration important to you?
    If not, then you can probably get better performance using a HashMap, properly configured. The TreeMap has O(n) performance for get/put. while HashMap has constant-time performance. If you properly configure the initialCapacity and loadFactor for the HashMap you can get very efficient puts by reducing the number of re-hashes that are needed during map-growth. Note that if you retrieve the data from the Map using an iterator (rather than just calling get()) then you have to be more careful with these settings because they affect the total number of buckets - which can affect the speed of iteration.
    You should also run your code through a profiler. Are you sure that the put() operation is the slow step when reading from the file? It may be that your file access is really the slow step, and so modifying the data structure would have little or no effect. You might consider different methods for accessing the file data, perhaps something from thew NIO package would help speed things up (I am not particularly sure though - I am not very familiar with NIO).

  • I need help with my for loop in this array

    Ok well, I can't get my code to work. Also, please remember that this is just my draft so it isnt pretty. I will fix it up later so please look at it. The thing I want to do is look into the array for a time that matches what the user entered and return the toString() of that one. I know there is something wrong with my for loop but I cant figure how to fix it. please help. here is what i have so far:
    import javax.swing.JOptionPane;
    public class Runner
        public static void main (String[] args)
            String timeStr;
            int time, again, optiStr;
            Inbound[] in = new Inbound[25];
             in[0]=new Inbound ("",0,"On Time num0");
             in[1]=new Inbound ("",2,"On Time num1");
             in[2]=new Inbound ("",3,"Delayed num2");
             in[3]=new Inbound ("",4,"On Time");
             in[4]=new Inbound ("",5,"On Time");
             in[5]=new Inbound ("",6,"Canceled");
             in[6]=new Inbound ("",1,"Canceled num6");
             in[7]=new Inbound ("",8,"On Time");
             in[8]=new Inbound ("",9,"Delayed");
             in[9]=new Inbound ("",10,"On Time");
             in[10]=new Inbound ("",11,"Delayed");
             in[11]=new Inbound ("",12,"On Time");
             in[12]=new Inbound ("",13,"Delayed");
             in[13]=new Inbound ("",14,"On Time");
             in[14]=new Inbound ("",15,"On Time");
             in[15]=new Inbound ("",16,"On Time");
             in[16]=new Inbound ("",17,"Canceled");
             in[17]=new Inbound ("",18,"On Time");
             in[18]=new Inbound ("",19,"On Time");
             in[19]=new Inbound ("",20,"Canceled");
             in[20]=new Inbound ("",21,"On Time");
             in[21]=new Inbound ("",22,"Delayed");
             in[22]=new Inbound ("",23,"On Time");
             in[23]=new Inbound ("",24,"Cancled");
             in[24]=new Inbound ("",7,"On Time num24");
            do{
                timeStr = JOptionPane.showInputDialog ("In military time, what hour do you want?");
                time = Integer.parseInt(timeStr);
                if (time<=0 || time>24)
                 JOptionPane.showMessageDialog (null, "Error");
                 optiStr = JOptionPane.showConfirmDialog (null, "If you want Incoming flights click Yes, but if not click No");
                if (optiStr==JOptionPane.YES_OPTION)
    //(ok this is the for loop i am talking about )
                    for (int index = 0; index < in.length; index++)
                      if ( time == Inbound.getTime())
                   JOptionPane.showMessageDialog (null, Inbound.tostring());  //return the time asked for
    //               else JOptionPane.showMessageDialog (null, "else");
                }//temp return else if failed to find time asked for
    //             else
    //               if (optiStr==JOptionPane.CANCEL_OPTION)
    //                 JOptionPane.showMessageDialog(null,"Canceled");
    //              else
    //                {Outbound.run();
    //                JOptionPane.showMessageDialog (null, "outbound");}//temp
                  again=JOptionPane.showConfirmDialog(null, "Try again?");
            while (again==JOptionPane.YES_OPTION);
    }any help would be greatly appriciated.

    rumble14 wrote:
    Ok well, I can't get my code to work. Also, please remember that this is just my draft so it isnt pretty. I will fix it up later so please look at it. The thing I want to do is look into the array for a time that matches what the user entered and return the toString() of that one. I know there is something wrong with my for loop but I cant figure how to fix it. please help. here is what i have so far:
    >//(ok this is the for loop i am talking about )
    for (int index = 0; index < in.length; index++)
    if ( time == Inbound.getTime())
    JOptionPane.showMessageDialog (null, Inbound.tostring());  //return the time asked for
    Inbound.getTime() is a static method of your Inbound class, that always returns the same value, I presume? As opposed to each of the 25 members of your array in, which have individual values?
    Edited by: darb on Mar 26, 2008 11:12 AM

  • Help with Quicktime for Windows 7 64-bit

    I am having a problem with the latest version of Quicktime for Windows. When I launch Quicktime and then 'click' on any icon for download I can see the sentence, "Connecting to iTunes" and then I am redirected to download iTunes... Problem is that I already have iTunes.
    Windows 7 Ultimate 64-bit SP1 and up to date.
    iTunes version 11.1.3.8
    Quicktime version 7.74.80.86
    I Unibstalled both products, using the guide provided from Apple. I, then downloaded and installed iTunes first, then I downloaded Quicktime and installed it. I had the same issue. Next, I went to Control Panel/ "programs and Features, used the "change" option and clicked "repair". I did this for both iTunes and Quicktime. They ran fine. No error messages, nothing in event logs, no trace of an install log to try to diagnose this myself. Does anyone have this problem, or can anyone help me to start the diagnosis necessary to solve this?
    Second issue came to light after all of the steps I performed; Before, I would conect my iPhone to a USB port and iTunes would launch automatically. Now, it does not. I see my 4s in devices and I see a normal state using device manager. So, I went to "Default Programs" and selected my 4s and the dropdown window no longer has an option for iTunes. However, when I go to choose a default program for audeo, etc. the dropdown mwnu has an option for iTunes.
    Thanks for reading and I would like some help.
    Doug Shreve

    I found the problem and the solution. In Internet Explorer ver 11 / manage plugin's, make sure that the Apple plugin's are enabled. My setings were incorrect, the plugin ws siabled. Enabled it and all is well!

  • HOW DO YOU GUYS DEAL WITH APPLE.. SO CONFUSING...NEED HELP WITH SPECS FOR PURCHASE OF IMAC 21.5

    Hi guys, been reading your forums, blogposts, etc and am getting more confused.  I'm just a video girl trying to produce meaningful content through web videos for small to mid sized businesses and want to come over from the dark side. 
    Good news,, I dont need a super giant system,  I do simple editing for web videos, minimal graphics, no motion graphics, no animation etc. currently using CS4, will probably end up with 5.5.
    I want to get imac 21.5 or 27 if i have to..  So here's the question we all have,,, what do I really need besides an Apple fairy godmother to figure this crazy stuff out?????
    I want to be able to have firewire add on, but the rest is what I need help with.   So i've been looking at cs6 specs, even though im not there yet, eventually will be,, so just need to run cs4 now and build from there.  I also want to eventually move to final cut down the road so I want imac able to upgrade to final cut.
    WHAT DO I REALLY NEED MINIMALLY FOR NOW?  WHAT CAN I GET LATER IF i CHOOSE TO DO MORE AND NEED MORE POWER?
    cs6:
    Multicore Intel processor with 64-bit support
    Mac OS X v10.6.8, v10.7, or v10.8**
    4GB of RAM (8GB recommended)
    4GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system or on removable flash storage devices)
    Additional disk space required for preview files and other working files (10GB recommended)
    1280x900 display
    7200 RPM hard drive (multiple fast disk drives, preferably RAID 0 configured, recommended)
    OpenGL 2.0–capable system
    DVD-ROM drive compatible with dual-layer DVDs (SuperDrive for burning DVDs; Blu-ray burner for creating Blu-ray Disc media)
    QuickTime 7.6.6 software required for QuickTime features
    Optional: Adobe-certified GPU card for GPU-accelerated performance
    Any responses would be great.  I know you guys are busy answering the really high end tech questions

    All the current iMac models (both 21.5" and 27" with OS X Mt. Lion 10.8) will run CS4, 5.5 and 6 just fine.  They will also run Final Cut Pro X just fine.  Ditto for most any application you may want to use.
    Below are some notes (specific to your apparent requirements) that may help you with your purchase decision:
    Notes on purchasing a 21.5" iMac
    All 21.5" iMacs come with 8GB RAM but you cannot add more later.  I strongly suggest getting the maximum RAM (16GB) when you order the iMac.
    The basic hard drive is a 1TB 5400rpm drive.  It will work fine with Adobe CS but you will probably want the added speed of the optional 1TB Fusion drive for better performance. Some people will recommend/argue for one of the optional SSD drives instead, but they are very expensive and still only come in relatively small capacities - I don't recommend the SSD drives.  Get the Fusion drive and spend any extra money on a good external hard drive for backup and/or extra storage instead of an SSD.
    Notes on purchasing a 27" iMac
    All 27" iMacs come with 8GB RAM and you can add more later, up to 32GB
    The basic hard drive is a 1TB 7200rpm drive - it will be fine with Adobe CS.  There are upgrade options to a 3TB 7200rpm drive or a 1TB or 3TB fusion drive - these will be fine also.  There are also SSD drive options, but I do not recommend them. (Same comments as above.)
    Notes on all the current iMacs
    iMacs no longer come with built-in CD/DVD drives.  If you need one, you will need to purchase the Apple Superdrive accessory drive ($79)
    All of the iMac graphic processors (GPU's) are compatible with Adobe CS 4, 5.5, 6
    It is very difficult to impossible to change or upgrade the hard drive later on, so don't buy low-end thinking you can add a better internal hard drive later.
    Be aware that Macs always come with the latest (most recent) version of OS X.  And OS X Mavericks (10.9) is due to be released soon (in the next month or two).  There is no guarantee that the older Adobe CS 4 or 5.5 versions will run on OS X Mavericks.  If you cannot upgrade to CS 6 in the near future, you may want to purchase now rather than after OS X Mavericks is released.
    For what it's worth, I'd recommend the 27" iMac if your budget can afford it.  You will appreciate the larger screen size and added capabilities over the years you will use the computer.

  • Need Help with Javascript for Acrobat Pro 9

    Hello,
    I am creating a PDF form in Adobe Acrobat Profession 9.  Not having a lot of experience with Javascript, I have found this forum very helpful and have used many of the script examples for other issues I have had.  I was hoping someone could help with the following script, I have tried many variations, cannot get it to work.
    var ratio = this.getField("ratio").value
    var concentration = this.getField("concentration").value
    var result = this.getField("result").value
    if(ratio.value>=50.00)
    {result.value ='PASS';}
    if(ratio.value".value>=40.00)
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 49.25))
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 39.25))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 48.50))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 38.50))
    {result.value ='PASS';}
    else
    {result.value = 'FAIL';}
    This is just a piece of the code  The concentration values run from 61 through 99 and the ratio value varies for each concentration value, there is a high ratio and a low ratio.  The result of this field with populate the results field with a PASS or FAIL.  This is not working......any help is greatly appreciated!

    Thanks George.  I updated the script to:
    // Get a reference to the result field
    var ratio = this.getField("ratio");
    // Get a reference to the result field
    var concentration = this.getField("concentration");
    // Get a reference to the result field
    var result = this.getField("result");
    if(ratio.value>=50.00)
    {result.value ='PASS';}
    if(ratio.value >=40.00)
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 49.25))
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 39.25))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 48.50))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 38.50))
    {result.value ='PASS';}
    else
    {result.value = 'FAIL';}
    However, I am still getting a FAIL result even when the ratio is 50.00 or equal to the passable ratio.

  • Need help with coding for HTML5 Video with Flash fallback

    Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 video with Flash fallback. Not sure if the coding is correct. Do I need anything else Javascipt etc?

    The reason you see a blank page is because it's trying to load the file that is pretty humungous and there is no preloader. So, you see a white screen till it complets loading.
    Also, the reason why its loading a SWF file and not any of HTML5 type video is because your doctype declaration is XHTML1.0 and not HTML5.
    Change the 1st line in your .html file from:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    to:
    <!DOCTYPE html>
    Then see if your HTML5 video types load with <video> tag.

  • Need help with as3 for popup window

    I am nearing the end of the semester in my Flash Animation class. I have learned very simple AS3 things, code snippets etc. I am trying to find the actionscript for coding a very simple popup window, but have not found a clue.
    Here's what I want to do...I have a white box with some type on the stage. When a person clicks on the white box, I want a popup to open that is larger, that will contain the same type but larger. That box will have an x so it can be dismissed. I don't want to do this in html, only in Flash CS5. I don't want a browser window, I just want a bigger version of the smaller box. I know how to build both boxes, just don't know how to write the code. I know there will be an on-click mouse event listener, and then I am lost.
    Can anyone help with the code I might use? It would be most appreciated.

    It would be something along the lines of... (using instance names relative to your description)...
    popup.visible = false;
    whiteBox.addEventListener(MouseEvent.CLICK, showPopup);
    function showPopup(evt:MouseEvent):void {
         popup.visible = true;
    popup.popupX.addEventListener(MouseEvent.CLICK, hidePopup);
    function hidePopup(evt:MouseEvent):void {
         popup.visible = false;

  • I need help with searching for an image inside another image

    I need to write a program that checks for a specific image (a jpg) inside another, larger, image (a jpg). If so, it returns a value of true. Can anyone help me?
    Winner takes all. First person to solve this gets 10 dukes.
    Please help.

    Hi,
    I would use a full screen image Sequence made with png for transparency and put your article behind. no auto play, stop at first and last image. and information for swipe to display article.

Maybe you are looking for

  • How do I make iTunes forget my iPhone?

    I set up my iPhone 5 as a new device (not restored from my old iPhone 4 backup) but when I initially connected it to iTunes, I neglected to un-check the box that said something like "Automatically sync apps to this device." This resulted in iTunes tr

  • "Generating Oracle SQL" does generate any SQL script

    After capturing and converting works successfully (tables, procedures, views etc. are all visible), I right click on a converted model, select "generate", and only the following is generated: User 1 Schema 1 Package 1 even though as i said there are

  • Why does this continuously show up in Console?

    I just discovered that this (below) is continuously appearing in the Console, looks like it happens every 10 seconds. Jun  8 01:29:59 iMac-24 com.apple.launchd.peruser.501[347] (com.wyse.MacCompanion[11171]): posix_spawn("/Applications/Wyse PocketClo

  • SQL 2008 R2 disable sa login

    I would like to disable the sa login. However, all our SQL sched tasks have sa as job owner. Additionally, sa is the dbo for system databases. Will there be any problems with the system databases and jobs if sa is disabled? Or is another sql login wi

  • Error updating in table

    Hi, I'm updating a Master-Detail table, when I'm updating table its generate following error i.e Current version of data in database has changed since user initiated update.current checksum = "650813AF26DC2A7B5B371364DA0947F4", item checksum = "8A5BD