Please help with code for a program

Write a program which comutes the value of an investment over a 5 year period.The porgrm should display the value of an investment for each of the 5years were the initial investment and interest rate are to be specified by the user.It should compute and present value in the first year,compute and display value for the second year up to the last year(use a while or do...while loop).While there are more years to process ask the user for the next input,compute the value for the next year and output.

jverd wrote:
So what you're saying is that you're a lazy, stupid, unethical cheater and you want someone else to do your homework for you so that you can take credit you don't deserve and get a grade you didn't earn.
Go to hell.But he's willing to pay big bucks (10 duke stars!) for this, so let's race to get those precious dukes.

Similar Messages

  • PLEASE HELP with Audio for YouTube!

    Hi,
    I KNOW YouTube is not the best for quality, but I absolutely HAVE TO post a couple of videos there!
    So.... having used Standard footage & the regular preset for DV-shot footage, does anyone KNOW which Encoding conversion to use (and I assume bitrate selection as well) that will allow me to post them on YouTube and actually hear something which even resembles the professionally Mastered recordings I am using.  So far I have tried WMV, h264 & a few others with various bitrates and most all of them sound horrible once YT converts them.  I was fine with the WMV video but the audio is way to disgusting to even listen to (especially compared to what the audio actually really is).  I have read some posts here suggesting FLV, WMV, etc, & I am truly at a loss and in major need of help here.  I have read Eddie's article link, & still the audio once YT does "it's thing" is ridiculous!
    The audio sounds great (good enough) on my computer after Encoder does its thing, but if anyone has encountered this and has the answer....PLEASE - what conversion & WHAT BITRATE should I use to make YT NOT ruin my recordings (and sound good on there)?!?!
    I even considered importing an already converted AAC or mp3 audio file into Pro, & then exporting it via Media Encoder but don't even think that's possible (or necessary).
    Please help as I HAVE to post it on YT yesterday already!
    As always, thank you for you help!!

    I never really had problems with sound quality on youtube...but I just use stereo pcm/wav mostly in editor. I think you should post what your using in your project and what you are exporting it as...cause its too vague to really give much specific advice re: helping you. also, say whether you have any sound codec packs or anything loaded...anything other than the original program codecs...and say what version of the product you are using...premiere pro what ??

  • Please help with structure of my program

    I am hoping someone can help me with a motor control program that I am
    writing.  The program is too large to post here, but I attached a
    rough outline of the program.  I think the problem is with the
    higher level logic, so hopefully that will provide the necessary
    information. 
    I have a front panel with lots of buttons to control the motors (eg:
    power, stop, start).  There is an event structure that contains
    most of those buttons (power, start, etc), but if that structure is
    exectuting, the other buttons won't work.  I need to be able to
    stop the motors and exit at any time (for safety), so I made another
    event structure that contains the stop and exit buttons.  Is this
    the right way to do this?
    Also, I want all the loops in the program to run continually until the
    exit button is pressed.  Since the exit button actually calls
    exit.vi and closes the whole program, I just wired a F constant to the
    stop on the while loops so they never stop.  Could this be causing
    my problems? 
    Hopefully I provided enough information here, but if not, please write back and let me know.
    Thanks,
    Kasey
    PS. In case anyone wonders why the whole thing is in a sequence, I need
    it for other aspects of the program (safety lights, etc...).  I
    doubt it makes a difference, but I wanted to include it.
    Attachments:
    screenshot.jpg ‏258 KB

    This is the first time I have seen a case where it is useful to have two or more event structures in one program.  Since they are in separate parallel loops, I would think there would not be a problem.  I like the idea that the program can be stopped in the middle of an event, for safety reasons.  Great structure, Kasey.  The only thing I would add is to make sure that your exit vi gracefully shuts down the program.  Like if files or references are open, they get closed before terminating the vi.  Just be on the look out for race conditions since you have 3 events that can happen at one time.  One event might affect some indicator that is being handled by another event.  Also, instead of wiring a false to the other loops, maybe you could use local variables of one general stop boolean.  Since your exit vi stops all execution, it may not make much of a difference.
    - tbob
    Inventor of the WORM Global

  • Please help with update for ios 8.1.3

    Some one PLEASE HELP ME!!!  I just updated my I phone 4s to ios 8.1.3 it was taking a long time then they finally updated and had the Hello screen after that I saw my photos then they would just delete it right in front of me I also lost some of my contacts but my notes still here can someone please help me find my photos are very important to me they have pictures of my relatives who passed away please help!!!

    After 4+ months of dealing with this data usage and battery drain problem that included 3 data captures of my wife's iMac, the trigger for us regarding the problems syncing with iCloud, and 5 hours of logs off my iPhone 6 to be analyzed by Apple engineers that included times my wife's computer was both on and off to demonstrate the difference in data usage and battery drain under those conditions, I can say with very reasonable certainty that the iOS 8.3 and corresponding Mac OS 10.10.3 update has solved the problem. 
    We have now been running for about 2 weeks and data usage with the iCloud Servers attempting to sync has dropped from a rate of 31 GBs to under 15 MBs per month.  Yes, you read it right.  We were burning 2000 times as much data doing absolutely nothing important on both of our phones, a 5s and a 6.  Just imagine what that does to battery life!  The 5s would last about 5 hours and the 6 was dead in less than 14.
    The distasteful aspect of this process was how the engineers were quietly fixing the problem at the same time sending messages to my contact person within Apple that were dismissive in nature in the face of indisputable unreasonable results. I must say, this experience with the multiple times the engineers' responses were inappropriate put a little tarnish on the old Apple shine of the ‘It just works’ mantra. This was my first experience in 34 years that caused me to stop recommending Apple products without reservations and with a disclaimer.
    Since the update solved the problem, then I can only conclude that there was a logic bug regarding the reaction within the process to the incoming data that was corrected.  There was noting short of logging out of iCloud that circumvented the problem for us, Gator5000e and probably many others noted on other threads.  I am not trying to imply that this is the cause of everyones battery use problem, but it is reasonable that it was a cause for many.

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • Re:Help with code for server client

    Hi i am struggling to adapt code for UDPServer and client programs.
    how can i adapt the following server code to add a message before replying to the client?
    import java.net.*;
    import java.io.*;
    public class UDPServer2{
    public static void main(String args[]){
         DatagramSocket aSocket = null;
              try{
              aSocket = new DatagramSocket(9000);
                             // create socket at agreed port
                   byte[] buffer = new byte[1000];
                   while(true){
                        DatagramPacket request = new DatagramPacket(buffer, buffer.length);
                        aSocket.receive(request);
                   DatagramPacket reply = new DatagramPacket(request.getData(), request.getLength(),
                        request.getAddress(), request.getPort());
                             aSocket.send(reply);
              }catch (SocketException e){System.out.println("Socket: " + e.getMessage());
              }catch (IOException e) {System.out.println("IO: " + e.getMessage());
              }finally {if(aSocket != null) aSocket.close();}
    any help would be much appreciated i have tried altering the aSocket.send(reply) line but to no avail.
    thank you in advance

    Hi i am struggling to adapt code for UDPServer and
    client programs.
    how can i adapt the following server code to add a
    message before replying to the client?What do you want to add before replying to the client?

  • Help with code for inserting horizontal scroll bar in photo gallery in Business Catalyst site?

    Hi,
    I am using Business Catalyst and Dreamweaver to create a trial site.
    I am not sure if this is the correct forum to post this request but anyway I have inserted a photo gallery module at the bottom of the sidebar in the homepage of my test site.
    Can anyone advise on whether jquery or any other code can be inserted into the page or module code that will replace the "next" hyperlink below the first 4 photos with a horizontal scroll bar at bottom of the gallery so users can just scroll through all 12 images ?
    Kind Regards, Matt.
    http://craftime-bs6.businesscatalyst.com/

    Alyssa,
    Have you tried putting this rule back as it was originally:
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto; /*was 9px*/
        color: #EF9CCF;
        background-color: #FFF;
    That is, changing your 9px back to auto.
    And giving  us a link (as you did) is much better than printing out the code for us! Thanks!
    Beth

  • Help with code for System.currentTimeMillis()

    I need to time how long it takes to do various sorts (selection sort, insertion sort) and was instructed to use System.currentTimeMillis() to accomplish this. Please take a look at the code below and let me know what is wrong. I can get the file to complile but it does not record the time it takes to run the sorts. I'm pretty sure my error is in the below section of code. In order to save space, I've only pasted the snippit of code for this particular function. Let me know if I need to paste more code. Thanks in advance.
    case 5:
                             System.out.print("Enter the value to look for: ");
         val = scan.nextInt();
         time1 = System.currentTimeMillis();
         loc = list.linearSearch(val);
         time2 = System.currentTimeMillis();
                             totalTime = time1 - time2;
                             System.out.println("Total time for this search is: " + totalTime);
         if (loc != -1)
                                  System.out.println("Found at location " + loc);
         else
                                  System.out.println("Not in list");
         break;
                             

    It could be that it isn't actually doing anything
    though. Either because the data is poorly choosen or
    because it isn't actually sorting due to a bug.The name of the method being timed is "linearSearch". That's a really poor name for a method that is supposed to be sorting. But from other aspects of the code I would guess that it is doing a linear search of an array, looking for a particular integer. Even if the integer isn't in the array, comparing 20,000 integers is a trivial exercise.
    People don't realize just how long a millisecond is for a computer. If you have a 1 GB processor (not uncommon these days) then you can do one billion (one thousand million) operations per second. That's one million operations per millisecond. So chances are, even realizing that there's a whole lot of overhead in a high-level language, the OP's code runs in less than 1 millisecond.

  • Urgent-Need help with code for Master data enhancement

    hi Experts,
    I have appended YMFRGR field(Table MARC) to 0MAT_PLANT_ATTR datasource.
    The key fields in the MARC table are MATNR and WERKS.Can anybody help with the user exit to populate this field,as am pretty new to ABAP.
    Thanks in advance

    Hi,
    go through this link which has the similar problem:
    https://forums.sdn.sap.com/click.jspa?searchID=1331543&messageID=2794783
    hope it helps.
    Thanks,
    Amith

  • Need help with code for adding dates to form

    Hello forum goers
    I'm new to making forms and figured out how to auto add the date, however I need the form to change the date for every copy made.
    For example today is 06/08/2012 if I print 10 copies of the form it will output 10 pages ranging from 06/08/2012 to 06/17/2012. If code exists to do this I would be very gratefull to whoever helps, I also wouldn't mind if that is not possible for manually inputing the start / end dates.
    Currently I print 15-30 copies of the form and hand write each of the dates but I'm just getting to busy to do that. I also cannot print one a day it must be in batches.
    Thanks in advanced.

    What you are asking for is more complex than just setting the current date. Each time the form prints it has to know that it has to change the date. I would suggest doing this.
    First, setup a document level script to set the date to the current date. I suspect that you have already done this?
    Next, Create a "DidPrint" document action to increment the date.  To do this the script will need to scan the current text value of the date, add one day to it, and then reformat it.  You'll find information on this type of scripting in these articles:
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-2
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-3
    Since the increment happenes in the Did Print you will need to print each copy individually. If you enter 10 copies in the print dialog it won't work. You have to print one at a time.  You can automate this activity with a console script.
    One of the advantages of incrementing in the DidPrint is that you can also manually enter a date and it will increment from there.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)
    Having trouble, Why Doesn't my Script Work?

  • Please help with code

    relativly new to java, and this is for a class so I am looking for documenation being pointed in the right way than direct answers.
    I have a superclass with 2 subclasses.
    I am trying to switch an object name between one of the two different object types so that as my program runs it will run based off the object type.
    In short my code to switch between the object types is:
    if (...)
                    SubClass1 x  = new SubClass1();
                else if (...)
                            SubClass2 x  = new SubClass2();
                        }When I do this I get an error down the line the first time I try to use x.Method1(): error: "Cannot Find Symbol - variable x"
    Can you not declare an object inside an if statement?
    I am coding in BlueJ and that is required by my class.

    When you declare a variable it only is available inside the block where it is declared.
    if(...)
        SubClass1 x  = new SubClass1();
        // x is available until the closing brace
    } // x is now undefined.
    else if (...)
        SubClass2 x  = new SubClass2();
        // now a new and completely unrelated x is available
    } // x is now undefined.Perhaps what you want is:
    SuperClass x = null;
    if(...)
        x  = new SubClass1();
    } else if (...)
        x  = new SubClass2();
    // x is still available since it was declared before the ifUsing a super class reference to a subclass object is a normal part of object oriented programming

  • Please help with query for 5 lastest opening balance  !!!!!!!!!!!

    Can anyone plese tell me or guide me how to write the query to show the 5 lastest opening balance from the A/R invoice on the specific BP partner?
    Example
    The box to input "BP partner"
    and then show,
    Lastest transaction | Ship date | Invoice number | Balance Amount | Culmulative
    1    
    2
    3
    4
    5
    Your help will be very very appreciated.

    This is very good but I would like to show only the top 5 remaining invoice. I think that I have to combine it with JDT1. I have seen one query that may be able to apply on my case.
    SELECT
    T1.CardCode + '' AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    T0.RefDate,
    CASE
         WHEN T0.TransType = 13 THEN 'IN'
         WHEN T0.TransType = 14 THEN 'CN'
         WHEN T0.TransType = 30 THEN 'JE'
         WHEN T0.TransType = 24 THEN 'RC'
         WHEN T0.TransType = 46 THEN 'PS'
         ELSE 'Error ! ! !'
    END AS 'Doc Type',
    T0.Ref1 'Doc. Number',
    ISNULL(T0.FCCurrency, ' - ') AS 'Ccy',
    (T0.BalFcDeb - T0.BalFcCred) AS 'Bal. F. Ccy',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') <= -1)                     ,0) AS 'Future',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 0)                         ,0) AS 'Current Mth',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 1)                         ,0) AS '1 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 2)                         ,0) AS '2 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate ,'[%1]') = 3)                         ,0) AS '3 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') between 4 and 6)    ,0) AS '4 - 6 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') >= 7)                       ,0) AS '>7 Mth Ago'
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C' and Balance != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    but still try to figure it out....

  • Please help with sizing for a canvas wrap

    I have looked at every video possible on this. I don't know what I am doing wrong?
    RIght now my image size in cs3 is
    60.2m
    5616x3744 in pixels
    18.72x12.48 in inches at 300 dpi
    I want to make my image capable of being a 36x24 inch gallery wrap. I realize I have to go into image size but when I raise it to a 36x24 my calculations go out the roof! Is that okay?
    222.5M
    10800x7200 pixels
    36x24 in inches at 300 dpi
    Can I send something that large to a printing lab?
    Sorry this is only my second time to do a gallery wrap and I am clueless about image size as far as measurements go!
    I do have a 5d mark2 shooting RAW always that should allow me to have an image size of this quality easily right?

    Grant
    That is exactly why I am posting this... I HAVE NO FREAKING CLUE that I can reduce the dpi and if so how low can I go with my image needing to be sized at 36x24? Sorry, I am really just kidding around! I am no computer whiz with digital stuff, my love is strictly photography. I am so scared I will loose the quality I don't want to make a wrong move. I don't even know if I am suppose to up my size that much. I know my camera is good, but when it spits out a size like 18x12 in cs3 how high can I size it up and drop the dpi before I loose quality? Is there some kind of chart for this?
    Thanks for your help!

  • Please help with snippet for form.

    I'm building my wedding photography site with iWeb and I want to place a form on there where customers can, via a series of pull down menus, choose various addons to their wedding package which I want to show a running total at the bottom for an instant quote. I would then need to get a copy of this data sent to me.
    What kind of HTML snippet would I need and where could I find one?
    Thanks in advance.

    Thanks Scott, that jot form looks great for a contact form etc. Due to being add free. But it doesn't look like it allows me to add a value to a selection on a drop down menu and a way of adding it up/displaying the total on my site.
    Example id need fields like this;
    "album required"
    The available selections could be:
    "12 x 8" value added to viable running total would be £100
    "14 x 10" value added to viable running total would be £150
    "16 x 12" value added to viable running total would be £200
    Then another field may be:
    "Hi Res CD required?"
    the available selections could be:
    "no thanks!" having a value of £0
    "50 images" having a value of £100
    "all images" having a value of £250
    So if the user chooses "16 x 12" and "all images" the running total on the page would show the user "£450"
    Any help would be greatly appreciated.
    Thanks!

  • Please help with script for right-mouse click on 3D objects

    Hi!
    I have PDF file with two simple 3d objects (for example with two cube).
    I need to make script that when user right-click to first cube, a PDF file (c:\a.pdf) opening (or c:\b.pdf for second one) in new windows. How to make it? Thank you so much!

    Hi,
    please check SDK sample 22 Right-Click, there is everything you need.
    First catch RightClickEvent, then create the menu entry when beforeAction = true, and when beforeAction = false you have to remove it again (otherwise you will receive an error when rightclicking again).
    Regards
    Sebastian

Maybe you are looking for

  • Why won't any Mini DisplayPort to VGA adapter work with my 2012 13" MacBook Pro?

    Hello!      A few month ago, I purchased a new 2012 13" MacBook Pro. I quickly realised that my non-Apple MDP to VGA adapter was not working, but put off the problem as it wasn't neccesary -- and I thught that the adapter was to blame. However, after

  • External hard drives randomly marked as read only

    I have a few External Hard drives (the two I care about the most are Seagate brand and fairly new).  Both of them have been set up for Mac use only and never gave me any issues on my older Mac and were used frequently.  I just recently got a new Mac.

  • ORA-12514: TNS:listener......

    Hi, I've 2 Oracle Instances: ORCL and ORCL2 When I try to connect from sqlplus: connect tom/tom@orcl or connect tom/tom@orcl2 I get this error: ORA-12514: TNS:listener does not currently know of service requested in connect If I try: connect tom/tom

  • Transparency image causing fuzzy/dark text

    When sometimes adding a .png or .gif image with transparency to a page, my text in the PDF becomes darker - almost like it's doubling up. Delete the image, and all is well. The odd thing is that this is only happening on certain pages.  If I remove s

  • How to handle ok/add/update button

    hi,    the button ui=1 automatically changes in add/update /ok buttons .but how we handle update and add ivent through database. Pandey Sai I.S.