Need help whit my homework.

The text is on swedish so i hope some1 swedish post the reply.
"Ett PL/SQL-block ska beräkna den totala kompensationen för ett år utgående från årslön och bonus. Använd DEFINE-kommandot i iSQL *Plus för att deklarera ersättningsvariabler för årslön och bonus och överföra dem till PL/SQL. Programmet ska tillåta NULL både för årslön och bonus. Båda skall er¬sättas med 0 i fall de initieras med NULL innan beräkningen utförs.
Skriv först en version som använ¬der sig av iSQL *Plus-kommandot PRINT för att skriva ut den totala kompensatio¬nen (kräver bind¬ningsvariabel). Testa hanteringen av NULL. En annan version ska anropa DBMS_OUTPUT.PUT_LINE för utskrift.
Ledning:      Använd SQL-funktionen NVL för att hantera NULL. "

here is your code.
“one PL/SQL-block will calculate the total compensation for a year being paid from yearly salary and bonus. Use DEFINE-commandt in iSQL *Plus in order to declare compensation variables for yearly salary and bonus and to transfer them to PL/SQL. The programme will permit NULL both for yearly salary and bonus. Both will er¬sättas with 0 in cases they are initiated with NULL before the calculation is carried out.
Type firstly a version that identify itself of iSQL*Pluscommand PRINT in order to print it total kompensatio¬nen (requires bind¬ningsvariabel). Test the handling of NULL. Another version will call DBMS_OUTPUT.PUT_LINE for extract.
Management: Use SQL-funktionen NVL in order to handle NULL. "

Similar Messages

  • I need help whit this

    Hi everyone, i need help whit translate the after effect from spanish into english, please help i need to end a work in this week.

    There's some Spanish AE tutorials here:
    http://aftereffects.260mb.com/
    And a purchaseable training course in Spanish:
    http://gfxdomain.com/blog/2012/05/video2brain-after-effects-tools-cs6-spanish.html

  • NEED HELP IN SQL HOMEWORK PROBLEMS

    I NEED HELP IN MY SQL HOMEWORK PROBLEMS....
    I CAN SEND IT VIA EMAIL ATTACHMENT IN MSWORD....

    Try this:
    SELECT SUBSTR( TN,
                   DECODE(LEVEL, 1, 1, INSTR(TN, '#', 1, LEVEL-1) + 1),
                   DECODE( INSTR(TN, '#', 1, LEVEL) , 0 ,
                           LENGTH(TN) + 1, INSTR(TN, '#', 1, LEVEL) )
                   - DECODE(LEVEL, 1, 1, INSTR(TN, '#', 1, LEVEL-1 ) + 1)
           ) xxx
    FROM (
        SELECT '234123#1254343#909823#908232#12345' TN FROM DUAL
    CONNECT BY LEVEL <= LENGTH(TN) - LENGTH(REPLACE(TN,'#')) + 1
    XXX                               
    234123                            
    1254343                           
    909823                            
    908232                            
    12345
    SELECT regexp_substr(tn, '[^#]+', 1, level) xx
    FROM (
        SELECT '234123#1254343#909823#908232#12345' TN FROM DUAL
    CONNECT BY LEVEL <= LENGTH(TN) - LENGTH(REPLACE(TN,'#')) + 1
    XX                                
    234123                            
    1254343                           
    909823                            
    908232                            
    12345 

  • Need help for C homework :)

    Hello, first of all i dont want to resolv my homework just i need some help.
    The probleme is that i need to make two *.c files, one for the function one for the main. The function is a nth root implementation http://en.wikipedia.org/wiki/Nth_root_algorithm and i want to return the value, in main.c want to add the returned value to a variable but not seems to be working.
    Sry for my english, i post the source to see what i want.
    main.c:
    #include <stdio.h>
    #include <math.h>
    int main()
    int szam,hatv;
    double gy;
    printf("Adja meg a kivant szamot: ");
    scanf("%d",&szam);
    printf("Adja meg a hatvanykitevot: ");
    scanf("%d",&hatv);
    gy=gyok(hatv,szam);
    printf("%3.8lf\n",gy);
    return 0;
    function.c
    double gyok(int k, int a)
    double sz1,sz2;
    double e=1E-8;
    sz1=(double)a/2;
    sz2=sz1;
    while ( (pow(sz2,(double)k)-(double)a) > e )
    sz2 = (1/(double)k)*(((double)k-1)*sz1+(double)a/pow(sz1,(double)k-1));
    sz1=sz2;
    return sz2;
    i compile and link them to one output, and after i run it:
    ./gyok
    Adja meg a kivant szamot: 9
    Adja meg a hatvanykitevot: 2
    288.00000000
    ps. if anything is unclear pls ask, and if i can anwser it
    thx

    hBd wrote:
    B wrote:
    I've put this up for discussion at the moderator board .
    In the meantime: you could translate the Rumenian strings so other users can follow too. I'm not savvy enough when it comes to C to see if that makes a difference, but who knows .
    it's not Roumanian, its Hungarian (long story ) but i will translate tomorrow, coz i need to rest
    lol I was wondering why the text was hungarian...

  • I need help with my homework

    I have this java class that is driving me to drink!!!! I just don't get it can someone tell me in "plain English" not java verbiage what I am supposed to do.
    You are to write two static methods, and a main to test them. Make sure your code is fully documented. Both methods have array parameters. Java allows arrays to be of size 0, and for what you have been asked to do, there is no meaningful output then. You may assume arrays are not empty.
    Static methods are covered in the text in Chapter 5. Methods with arrays as parameters are covered in Chapter 6 sections 4 and 5. (This applies to editions 6 and 7.)
    1. Write a method that takes one parameter, an array of double. It is assumed that the array is full, there is a number for every index. Your method should calculate and return the mean of the numbers in the array.
    2. Write a second method that again takes an array of double as a parameter, with the array assumed full again. This method determines and returns the standard deviation of numbers in the array.
    3. Write a main that creates a full array of double, applies each of your methods to it, and displays the results. By hand, determine what the output should be, at least for mean, and compare this with what your program produces.
    In writing the methods above, make use of my StatCalculator class. Do not write your own code to calculate mean or standard deviation.
    This is what I have so far
    public class MeanSD {
         public static double [] myArray1 (double [] arrayList1){
              for (double i = 0; i < arrayList1.length; i++);
              s.putNumber;
              return s.getMean;
    public static double [] myArray2 (double [] arrayList2){
         for (double i = 0; i < arrayList2.length; i++);
         return s.getSD;
    public class MyArray {
         public static void main(String[] args) {
              StatCalculator s = new StatCalculator();
              double [] arrayList = {9.9, 7.4, 3.2, 5.4, 8.1};
              System.out.println(s.getMean());
              System.out.println(s.getSD());
    public class StatCalculator {
         private int howMany = 0;
         private double sum = 0;
         private double squareSum = 0;
         * Adds 1 to count of numbers entered.
         * @param x next number entered
         public void putNumber(double x){
              squareSum = squareSum + x*x;
              sum += x;
              howMany++;
         * @return how many numbers entered
         public int getHowMany(){
              return howMany;
         * @return average of numbers entered
         public double getMean(){
              return sum/howMany;
         * @return standard deviation of numbers entered
         public double getSD(){
              double a = squareSum/howMany;
              double b = sum/howMany;
              return Math.sqrt(a - b*b);
    }

    Peppermaud wrote:
    The StatCalculator (written by my professor) is part of the homework. I need to call it for the program to work. I have to write the main in order for it to work.Sorry -- got it. So again, change this
    public static double [] myArray1 (double [] arrayList1){to
    public static double myArray1 (double [] arrayList1){Even better would be to use a more descriptive name:
    public static double calcMean(double [] arrayList1){Your "s" variable within this method has no meaning so get rid of it. Yes, it is present in a main method of another class (again, consolidate your classes to one class), but even so, it is out of "scope" of this "myArray1" method. Instead use the parameter passed to this method as the source of your input in the for loop. Read your chapters to see how this is done. In fact if you read the chapters, you'll understand the instructions!

  • I need help whit this tricky problem:)

    Hi guys!
    I'm working with a webshop where i receive a tons of pictures from another company. Unfortunately they send me other pictures what i don't need. So i made a list from the files (like a list.txt) what i don't need and i want to write a script to move these files to another folder. How should i do this?
    Thx for your help!

    Prefi wrote:
    So i made a list from the files (like a list.txt) what i don't need and i want to write a script to move these files to another folder.
    So far I believe you have a bunch of photos (in a folder?) and you want to take specifically titled photos and move them to another folder?
    Alright so you have a folder that as an example contains:
    hello.jpeg
    welcome.jpeg
    goodbye.jpeg
    yes.jpeg
    no.jpeg
    Now you want to move welcome.jpeg and goodbye.jpeg to a new folder?
    Is this along the lines of what you want to do?

  • I Need Help Whit Adobe After Efects CS6

    I have 32 bit operativ sistem and i really need adobe after efects cs6 case i wonna be film maker !
    Now when i start my Adobe Download Assistent and login,select ae cs6,it says that i need to restart Adobe Download Assistent! I did that a 1000 times and it still dont work!
    Please help !            
                                            Erok03111                                                        

    This is correct Erok03111.  After Effects CS6 requires a 64-bit system to download and install on.  If your computer has a 32-bit operating system you will be unable to download the software.
    You can find the complete list of system requirements for After Effects CS6 at http://www.adobe.com/products/aftereffects/tech-specs.html.  You must meet or exceed these system requirements to use the software.
    If you are unable to upgrade your operating system then you may want to consider Premiere Elements for your video editing needs.  It does not have the 64-bit system requirement so it may work on your computer.  You can find the system requirements for Premiere Elements 11 at http://www.adobe.com/products/premiere-elements/tech-specs.html.

  • Need Help with Java Homework

    This is my first post here, seeking some help with my java homework. I am required to create a program to write out a receipt for a pizza company: name of company, total number of pizzas, costs (including tax etc), and print out the receipt after taking an order from the customer.
    This is a beginner's java class and my book isn't very good at explaining (mainly because it says "will be discussed in ch 14" when we're in ch 1-3 and it's an essential part of the program).
    But anyways, if anyone is up right now, would be helpful for some help. I have a general idea of what I wanna do, but the program so far is very messy and incomplete and having trouble getting it to look nice and proper.

    well there were two ways of doing this, im only 2 weeks new in java so bear with me.....I was gonna set 3 classes, one appclass, one order form, and one receipt. I was told you can combine the order and receipt in 1 class, but I thought doing 3 woudl be better to help me learn more...anyways, I haven't worked on the appclass yet, but for the order I have a very messy set of codes. I know that it's wrong but it's a start, im looking for any input cause the book does not explain very much.
    For the order class, I will be doing showinputdialog boxes for how many pizzas, the sizes, and the toppings. Here is what I have so far ( i know it is VERY messy and disorganized but I am a bit lost in where I should go next):
    * @author AlexNguyen
    * To take the order with number of pizzas and toppings
    package project2;
    import javax.swing.JOptionPane;
    public class Order {
         public int NumberOfPizzas;
         public char Pepperoni;
         public char Sausage;
         public char Cheese;
         public Order(int n) {
         NumberOfPizzas = n;
         JOptionPane.showInputDialog("Enter Number of Pizzas"));
    String ptype; {
         public void start();
         public void takeOrder();
         public void writeReceipt();
              public void takeOrder();
              ptype = Topping
    public String selectPizza(char P, char S, char C) {
         Pepperoni = P;
         Sausage = S;
         Cheese = C;
    public void numPizza(int numberOfPizzas) {
         num = numberOfPizzas;
    JOptionPane.showInputDialog("Topping for Pizza?");
    JOptionPane.showInputDialog("Pizza Size?");
    JOptionPane.showInputDialog("Number of Pizzas?");
    }

  • Need help whit files

    im writting a file whit this code
                   PrintWriter out = new PrintWriter(new FileOutputStream("Results.txt"));
                   out.println(texto);
                   out.close();but everytime i "save" or write the file, it re-write the line i had, how can i do to add a line after the saving, so the next save goes below to the other
    Message was edited by:
    [email protected]

    Use the following constructor, with 'true' for the second parameter:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileOutputStream.html#FileOutputStream(java.lang.String, boolean)
    If the link doesn't work, check the FileOutputStream constructors, and use the one that takes a String and a boolean.

  • I need help whit my Z1 Compact, i´m locked out!

    I have a pattern lock before i can get  in to my phone. But something has gone wrong, and i can´t get in because it says i have done the wrong patern. I know i haven¨t done it wrong and i have tried over 100 times diferent paterns as well, and it wont work. I´m locked out from my phone! Plz someone help me, is there a hard reset or something i can do? Nothing works that i have found on the net.... // Cicci

    Use PC Companion
    Make sure your phone is unplugged from your Pc and fully switched off
    So run PCC Select Support zone then Select Update my phone/tablet then select in Blue repair my phone/tablet - select your phone and follow the instructions - When prompted hold back or volume down depending on phone and connect your USB cable remember phone must be switched off - This should start the repair process and get your phone working again
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

  • Need Help for Java Homework Assignment, Can someone Please help me ?

    This is the program that I am supposed to write, and I am terrible confused, as it takes at least 3 different files.
    Write a class named GroceryList that representss a person's list of items to buy from the market, and another class named GroceryItemOrder that represents a request to purchase a particular item in a given quantity. (I.E. four boxes of cookies).
    **The GroceryList class should use an array field to store the grocery items, as well as keeping track of its size (number of items in the list so far). Assume that a grocery list will have no more than 10 items. A GrocerList object should have the following methods:
    public GroceryList()
    Constructs a new empty grocery list.
    public void add(GroceryItemOrder item)
    Adds the given item order to this list, if the list is not full (i.e., has fewer than 10 items).
    public double getTotalCost()
    Returns the total sum of all grocery item orders in this list.
    The GroceryItemOrder class should store an item quantity and a price per unit. A GroceryItemOrder object should have the following methods:
    public GrocerItemOrder(String name, int quantity, double pricePerUnit)
    Constructs an item order to purchase the item with the given name, in the given quantity, which costs the given pricer per unit.
    public double getCost()
    Returns the total cost of this item in its given quantity. I.E. 4 boxes of cookies that cost 2.30 per unit, have a total cost of 9.20.
    public void setQuantity(int quantity)
    Sets the grocery item's quantity to be the given value.
    Any suggestions would be sincerely appreciated.
    Thanks.

    Pete,
    I having difficulty with the main class, and getting console to store a users input into a string array ... I will post the code that I have so far. Sorry I am trying real hard to learn ... and just having a frustrating time.
    This is what I have in the main file.
    import java.util.*;
    public class Chapter_8 {
         public static void main(String []args){
              Scanner console = new Scanner(System.in);
              System.out.println("Please enter the first item of your list");
              String[]GroceryList = console.next();
              System.out.println("Please enter the next item of your list");
              String[]GroceryList = console.next();
              System.out.println("How many would you like to buy?");
              int quantity = consolenextInt();
         }This is what I have in the GroceryItem Class file:
    public class GroceryList{
    public GroceryList(){
    Static String []GroceryList ={"beans", "macaroni", "milk", "cheese", "bread", "eggs","hamburger","Hotdogs","peas","cookies"};
    for(int i=0;i<5;i++){
    System.out.println(GroceryList);
    And the final file that I have is the GroceryItemOrder Class file:public GroceryItemOrder(String name, int quantity, double pricePerUnit){
    this.name = name;
    this.quantity = quantity;
    this.pricePerUnit = pricePerUnit;
    public double getCost(){
    public void setQuantity(int quantity){
    Sorry, I know it isn't much, that's why I am frustrated.
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I very need help and fast my ipod touch 4 is dented on the top left corner and the screen is not in the silver part and because of that i think...when i open my ipod half of the screen is light white

    hi i very need help my ipod touch 4th was already damages (the glass screen wasnt in the silver part) and yestarday i was cleanin my room while listeng to music and my ipod fell 2 times after about 30 min half of the screen was light white first i thought it was a virus so i fully shut down my ipod and i also restored it but it didnt work so looked closly and saw that the left corner on my ipod was badly dented inward after i thought for a bit i thought that the spary i was using to clean my room could have gone in my ipod because the glass screen wasnt in the silver prt but i dunno if this prob cant be fixed at home by me does someone know how much it will charge 2 get it fixed and where i can get it fixed THANKS it wuld be a great help plz reply as soon as possible xoxoxox

    This has happened to me but i don't know what to do because my Itunes kept closing down and it shut down half way through updating and it just comes up with a silver apple and it won't turn off and now it's just frozen and it also doesn't recognise it when i opened up itunes again after i reset it to the factory settings

  • I have a 13 inch MacBook Pro (2009) & the "White Screen of Death" is present.  Need help?

    I have a 13 inch MacBook Pro (2009).  Recently I bought an extended hard drive because I had used up the memory on my iDisk.  As I was running the Time Machine back up on my new extended drive, the battery on my Pro ran out causing it to shut down.  Once I hooked up my Pro to the power cord &amp; logged in, the "White Screen of Death" appeared on the home display.  Obviously the battery still works, my phone is able to charge along with the extended drive, I am able to adjust the lighting on my keyboard along with adjusting the brightness on my screen, but the "White Screen" remains.  I need help in determining the cause of this issue &amp; the steps I'll need to take in order to resolve this.  I love my Pro, all my documents, photos &amp; music are on it &amp; the last thing I want to do is kill my wallet by buying a new Pro.  So could someone on here please help me?  It would be greatly appreciated &amp; I thank you in advance!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.   
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
         a. Boot into the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    If you've booted from an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 3
    Boot in safe mode. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is damaged and the drive is probably malfunctioning. In that case, go to step 5.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 4
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 5
    Launch Disk Utility in Recovery mode (see Step 1.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then reboot as usual.
    Step 6
    Reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 7
    Repeat step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a Time Machine or other backup.
    Step 8
    This step applies only to a Mac Pro tower, not to any other model. A dead logic-board battery can cause a gray screen at boot. Typically the boot failure will be preceded by loss of the startup disk and system clock settings. See the user manual for replacement instructions.
    Step 9
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store to have the machine tested.

  • My screen is completely white, i've tried holding lock and home buttons as seen on you tube something called 'white screen of death' its goes black (think it switches off) then back to the white screen need help fast please!

    my screen is completely white, i've tried holding lock and home buttons as seen on you tube something called 'white screen of death' its goes black (think it switches off) then back to the white screen need help fast please!

    If you have not done a factory reset on the device, I recommend doing a complete  factory reset.  
    Factory Reset  - Warning this will reset device back to original factory settings.
    This method will not erase any MDN/MIN information
    Turn off the phone 
    Press Power + Volume Up/Down at the same time and hold until display will show a triage android screen 
    Display will show: 
    Reboot system Now 
    Apply sdcard:update.zip 
    Wipe Data/Factory Reset 
    Wipe Cache Partition
    Use VOL Down key to scroll down to "Wipe Data/Factory Reset", press home icon to select option and wipe device. 
    Display shows "All user data will be wiped out", press VOLUME Up to continue or VOLUME Down to exit. 
    Press Volume Up 
    Press Home to select "Reset System Now" - device will reboot
    If the problem persist I recommend having a store technician take a look at the device.
    Copy and paste the link below into your browser's address bar for the store locator.  
    http://www.verizonwireless.com/b2c/storelocator/index.jsp

Maybe you are looking for