Problem to summarize the items in a sequence

Hello

I'm new here and I have only a few basic know how about Oracle PL SQL.

I would like to create a puzzling query in SQL Developer.

I tried to divide a sequence in single digits and multiplied this number with different values. From here everything worked well.

It's the statement to divide my sequence:

SELECT

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 1, 1) * 3);

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 2, 1) * 1),

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 3, 1) * 3);

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 4, 1) * 1),

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 5, 1) * 3);

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 6, 1) * 1),

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 7, 1) * 3)

Double;

But now I have tried to summarize (sum) the result of the multiplication and get an error.

With this statement:

SELECT sum)

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 1, 1) * 3) +.

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 2, 1) * 1) +.

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 3, 1) * 3) +.

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 4, 1) * 1) +.

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 5, 1) * 3) +.

(substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 6, 1) * 1) +.

((substr (LPAD (CAST (SEQ_LOID.nextval AS number (8)), 7, '0'), 7, 1) * 3))

Double;

02287 00000 - "unauthorized number sequence here.

* Cause: The specified sequence (CURRVAL and NEXTVAL) number is not

Here, in the statement.

* Action: Delete the sequence number.

Thank you in advance for your help. I appreciate any kind of advice.

I have spent many hours and could not find a solution.

Hello

There are fairly strict restrictions where sequences can be used.  See the manual of the SQL language

http://docs.Oracle.com/CD/E11882_01/server.112/e26088/pseudocolumns002.htm#sthref45

For more details.  He specifically says that you cannot use NEXTVAL in a query with a GROUP BY clause.  It says nothing about a query that uses an aggregate function (for example, SUM), but no GROUP BY clause, as your request.  Clause without aggregate functions using GROUP BY produces the same results as the "NULL GROUP" (or any constant NULL instead), so it is easy to imagine that the restriction applies to any request of aggregate functions, whether or not it uses GROUP BY.

What you trying to do?  Do you really need a sequence to do?  The ROW_NUMBER analytic function can generate unique, consecutive integers, looks a lot like a sequence.  Could you use ROW_NUMBER fot anything that you need?

Assuming that you really do need a sequence, you can create a table (maybe a global temporary Table), complete with values of the sequence and then use these values as desired in a query.  Or you can capture a sequence value in a substitution variable, then use this variable as you want in a query, for example, using ROW_NUMBER to generate consecutive integers starting with number of theat.

If cvan explain you what you need to do, someone can help you find a good way to do it in Oracle.

See the FAQ forum: https://forums.oracle.com/message/9362002

Tags: Database

Similar Questions

  • Problems with importing the photos in a sequence of images!

    Hi all

    Just at work and we are a big enough time photography project that another colleague and I are editing in Adobe Premiere. Having gathered a wide selection of images, we decided it was time to have a go doing a first edition. Opens the first and made a new etc project and have done a couple of practice runs with different pictures, but I opened the photos (file/import) and then tried to import all the images but I can't check "Image Sequence", which is grayed out. Anyone know why? I assumed it was due to the fact that it was their import on an external drive but I put them on the MacBook in order to ensure, but it would not always be to import them. I then tried to import less photos at once always for nothing doesn't.

    Be flat ideas just thought I would ask what I consider experts with more knowledge than me for a helping hand! Thanks in advance to anyone who can help you with what is a work project that I am eager to start as soon as possible!

    You select all the photos?

    To import as a sequence of images, simply choose the first image in the sequence. Yes IMG_001 (or whatever your equivalent).

    I tried this on my mac and it worked fine using the same convention of naming as yourself.

    So, just choose the first image and the image sequence checkbox should be selectable.

  • Windows cannot access the specified device, path or file. May not permissions to access you the item. Can someone tell me how to overcome this problem.

    Windows cannot access the specified device, path or file. May not permissions to access you the item. This message appears when I try to access also anti programs anti-virus will not play CD in windows media player. Can someone give me advice on what to do to remedy the problem.

    Hi Lee,.

    • You did any computer change?
    • What anti-virus program is installed on the machine?
    • What is the full and an error code error message when you access the CD through Windows Media Player?

    Follow the steps mentioned below:

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Note: try to access Cd rom drive and antivrirus program and see that you get an error

    Perform a clean boot according to the link below:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Follow step 7 in order to his usual manner once completed troubleshooting computer

    The analysis of Microsoft Security Essentials online according to the LienSuivant:

    http://OneCare.live.com/site/en-us/default.htm

    Reply back with the results

  • makemenu problem: display of the menu, but after selecting an item, menu disappears and pops up again in the Middle after the code is executed

    Hello

    I have a very strange problem on BB9700 running OS5:

    1. application with 2 screens, each with menu (makemenu)

    2. second screen is pushed by the first screen

    3. menu of second screen works as desired

    4. menu of the first display shows the following behaviors:

    Click on BB-let the menu appear in the lower left corner. So far so good.

    After clicking the item(own item-run block is empty) menu, the menu disappears and appears back in the middle of the screen.

    This is my code (even in second screen-but working there):

       protected void makeMenu(Menu menu, int instance) {
            super.makeMenu(menu, instance);
    
            menu.add(new MenuItem("fix menus",10,20){
                public void run(){
                }
            });
    
                    menu.add(new MenuItem("Options",20,10) {
                public void run() {
                }
            });
    
        }
    
        protected boolean onSavePrompt()        {           return true;       }  
    

    In the second screen, the menu works fine, but with the first!

    Any idea?

    Thanks in advance

    Hey Ted_hopp, simon_hain,.

    I found something after commenting on overridden methods (one after another):

    I have replace onFocusNotify. If I comment I out completely, the menu works as it should.

    If I just use the following code:

    protected void onFocusNotify(boolean focus) {
    
    }
    

    with nothing else (not), the menu reappears after a click.

    So I put the forgotten 'Super.onFocusNotify (focus)' call to the first line, and all things are working properly.

    Thank you

  • In my adf application, I use sequences, the problem that I face, is that this sequence break at 2:21 or three insertions. Any reason?

    Mr President

    In my adf application, I use sequences, the problem that I face, is that this sequence break at 2:21 or three insertions. Any reason?

    Concerning

    How can I correct this situation?

    Well, look at your definition of the sequence and correct

    There are CACHE 20 then change or recreate your sequence and use NOCACHE

    Dario

  • Add the item to the basket problem on SCC 11

    Hello

    We have customized shippingGroups, with only an additional property and it works very well in the app store application of trade, but, when I try to add an item to your cart via CSC, I get an error and the item is not added. This problem occurs only on the CSC.

    It's on OrderTools:

    beanNameToItemDescriptorMap-=.

    atg.commerce.order.HardgoodShippingGroup = hardgoodShippingGroup

    & beanNameToItemDescriptorMap =.

    com.my.order.MyHardgoodShippingGroup = hardgoodShippingGroup

    shippingTypeClassMap-=.

    hardgoodShippingGroup = atg.commerce.order.HardgoodShippingGroup

    & shippingTypeClassMap =.

    hardgoodShippingGroup = com.my.order.MyHardgoodShippingGroup

    And this is the error I get when trying to add an item to the basket:

    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler caused by (#2):atg.repository.RepositoryException: descriptor invalid name: 'atg.commerce.order.HardgoodShippingGroup'
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.adapter.gsa.GSARepository.getValidItemDescriptor(GSARepository.java:6622)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.adapter.gsa.GSARepository.createItem(GSARepository.java:710)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.OrderTools.createShippingGroup(OrderTools.java:1397)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.OrderTools.createShippingGroup(OrderTools.java:1344)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.ShippingGroupManager.createShippingGroup(ShippingGroupManager.java:651)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.ShippingGroupManager.createShippingGroup(ShippingGroupManager.java:627)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.PurchaseProcessHelper.getShippingGroupForItem(PurchaseProcessHelper.java:1881)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.PurchaseProcessHelper.addItemToOrder(PurchaseProcessHelper.java:1027)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:957)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3800)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:3420)
    Error 13 Mon Oct 14:40:37 BRT 2014 1413222037461/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-58/atg/commerce/custsvc/order/CartModifierFormHandler to atg.commerce.order.purchase.CartModifierFormHandler.handleAddItemToOrder(CartModifierFormHandler.java:3367)

    What I'm doing wrong here? Any ideas?

    Kind regards

    Lucas

    Look at the configuration rolled upward to OrderTools.shippingTypeClassMap in/dyn/admin or CCA.  My theory is that there is a table entry with something like the key and atg.commerce.order.HardgoodShippingGroup as the value.  OrderTools.createShippingGroup takes a group expedition (string) as input type and who looks up in shippingTypeClassMap.  If there is no entry, you will get an exception.  You do not get an exception.  Later, createShippingGroup takes the output of shippingTypeClassMap and upward resembling beanNameToItemDescriptorMap.  If there is no entry, the input string is returned by the search and used as input for createItem.  This is the exception you get.  If CSC must have configured the form Manager with a group type of delivery of the first card that has a class name (atg.commerce.order.HardgoodShippingGroup), which is no longer in the second plan.

    There are two oddities of = and += who could you be shifted upward.  One is that they are not necessarily be applied in the order that you will see in your properties file.  The Java properties class based implementation of the map and does not preserve the order of the text file.  The second oddity is that deleting via = requires that the text exactly.  If you have a space located right at the end of your line of =, for example, the kernel does not match and will not erase what you want to delete.

  • I am under 12 items on a new iMAC El Capitan V.10.11. Problem is that the application completely fills the screen, so no desk top to drag to or from. It can be resized?

    I am under 12 items on a new iMac El Capitan v 10.11.

    Problem, it's the Application completely fills the screen so there is no desk top to drag to or from. The elements can be resized? I see nothing in preferences or installation instructions.

    Can not drag you upward from the lower right? Or click on the green button first, and then drag it.

  • After effects CC problems encoding (tilted the view and doubled the by-Side sequence)

    Although starting at the Adobe Creative Cloud space, there is some awareness of the main functions of the system, as well as a few additional details. However, a problem occurred on the encoding and export project Adobe after effects (AE) to Adobe Media Encoder (SOUL) such as the 2D plane (or rather the version preview in AE is flat and not transformed) becomes 3D so that the sequence becomes tilted and lined with a line between clips of same in preview rendering within the SOUL. The system currently used is a MacBook Air, and the Adobe programs were recently installed from 2016. Such a question has never become eminent or circumstantial to anyone on the forum? If there are other details, please ask by responding to this post. Thank you for your time and effort!

    This is an image depicting the situation previously described:

    Screen Shot 2016-01-15 at 10.01.39 PM.png

    First check the file in another player software. If this is a real problem, we need to know the exact encoding parameters. Such behavior usually indicates an incompatible CoDec which does not have the custom of handloe correctly resolution settings...

    Mylenium

  • My pages to scroll. I have the items pinned to the top left, that causes the problem?

    My pages to scroll. I have the items pinned to the top left, that causes the problem?

    I thought about it. I had to UN-pin of each element, let them float. Thanks for your reply.

  • No response from the items on the toolbar and above e.g. 'your account' or 'connect' in case of websites like amazon, facebook etc when in Firefox. works in internet explore. What could be the problem?

    I have Windows Internet explore and Moxilla Firefox on my computer but prefer Moxilla Firefox was my browser if it worked correctly.

    This problem may be caused by the Yahoo! toolbar as scopes as well down and covers the top of the browser window, allowing links in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • I'm looking for help to share best practices to upgrade the Site Recovery Manager (SRM), if someone can summarize the preparatory tasks?

    I'm looking for help to share best practices to upgrade the Site Recovery Manager (SRM), if someone can summarize the preparatory tasks?

    Hello

    Please check the content below, you may find useful.

    Please refer to the URL: Documentation VMware Site Recovery Manager for more detailed instructions.

    Important

    Check that there is no cleanup operation pending on recovery plans and there is no problem of configuration for the virtual machines that protects the Site Recovery Manager.

    1 all the recovery plans are in ready state.

    2 the protection status of all protection groups is OK.

    3 the status of the protection of all the individual virtual machines in the protection groups is OK.

    4 the recovery of all groups of protection status is ready.

    5. If you have configured the advanced settings in the existing installation, note settings you configured before the upgrade.

    6 the vCenter local and remote server instances must be running when you upgrade the Site Recovery Manager.

    7 upgrade all components Server vCenter Site Recovery Manager on a site until you upgrade vCenter Server and Site Recovery Manager on the other site.

    8 download the setup of Site Recovery Manager file in a folder on the machines to be upgraded the Site Recovery Manager.

    9 make sure no other facilities-\no updates windows restarts done shoud

    Procedure:

    1. connect to the machine on the protected site on which you have installed the Site Recovery Manager.

    2. backup the database of Site Recovery Manager by using the tools that offers the database software.

    3. (optional) If you upgrade of Site Recovery Manager 5.0.x, create a 64-bit DSN.

    4 upgrade the instance of vCenter Site Recovery Manager server that connects to vCenter Server 5.5.

    If you upgrade a vCenter Server and Site Recovery Manager 4.1.x, you upgrade the instances of vCenter Server and Site Recovery Manager server in the correct sequence until you can upgrade to Site Recovery Manager 5.5.

    a upgrade vCenter Server 4.1.x to 5.0.x server.

    b Update Site Recovery Manager of 4.1.x to 5.0.x.

    c upgrade server vCenter Server 5.0.x to 5.5.

    Please let me know if it helped you or not.

    Thank you.

  • "The item you tried to download is no longer available.

    Hi all

    I saw a lot of discussions opened around the same problem, but couldn't find a solution that works for me, so I decided to open a new thread to see if I could get any help.

    I recently had trouble with the album "All right them the wrongs" by Emily Osment I can't play on my iPhone. I am a text music Apple if all my music is perfectly sync between my mac and my phone without any problem, with the exception of this album where I get the error message in the title. I pick up the album in the store, of course, he doesn't seem to be available for streaming, just buying, but the thing is I had this album way before joining the music and it was working fine until, by mistake, I tried to download an application that was not in my store... I quickly corrected this error by a disconnection and again so all my Apple music would come back like before, but this one album keep listening!

    I deleted my library completely and (turning off the wi - fi), re-installed before new Apple music sync and adds to it. No error message on the computer the album plays very well, I have no icon telling me that's not in my cloud, but whenever I try to play on my phone, I get this error "the item you tried to download is no longer available.

    Can someone please suggest me something I could do to be able to listen to this album again on my phone?

    Furthermore, all my devices are to the latest version of iTunes is included.

    Thanks in advance.

    Hello helenecolin,

    Thanks for this info and choosing the communities Support from Apple. I know how important to get this album in collaboration with your Apple's music service!

    The good news is that the following items will be useful in resolving your problem to get this album works again.

    1. first of all, make sure that it plays on your computer. If this does not work on your computer, this could cause some problems that you are experiencing. If it was bought on the iTunes Store, re - download a copy of this album and try to play again.

    12 iTunes for Mac: download previous purchases on the iTunes Store

    2. try manually re - download the album from iTunes on your computer Apple music again. Then restart your iPhone, check your music app and see if this download was recorded.

    Add music to your collection in your music library from Apple

    See you soon!

  • How to change the sort order of the items sought for the last element of this research first. I DON'T want to say the order search engines, but the existing research by arrow down

    I want to be able to change the sort order of the items, I already looked in the search box. I want to be able to hit the arrow key down and see my previous searches in order of last search showing the first. For the moment, I don't know how it is sorting and it is very annoying to have to re - enter a query that I typed 5 minutes earlier, but because I typed in another 10 since it's lost somewhere in the list. Is it possible, I Googled, but did not find the topic anywhere. Just to clarify, I DON'T mean of the order of the search engines (which is what appears in google), I mean that the text typed into which has been registered in the drop-down list.

    Thank you

    'Form filling' uses a "frecency" algorithm, frequency + recency, similar to the list of AutoComplete address bar.

    I found an extension that seems relevant, but critics are old, so I'm not sure it's still working: Searchbar Autocomplete Order.

    But... is the AutoComplete does not? I expect that typing a few characters of the previous query would be to filter the list so that you can easily select? Or is the problem that the list does not remember quite who looking for?

  • Email from iTunes showing that I had bought the items that are not mine. How can I get iTunes to complain personnel decision-making?

    I received an email supposedly from support iTunes showing me the items allegedly, I bought today with a note to say if they were not my Articles click a link. I think it is a scam but how should I go for a human being to know what is actually happening. When I call support and notify the voice deiembodies than IO iTunes problem, they tell me online and then ring, rather rudely, I thought. How can I coonect with a human being?

    This is a phishing attempt (these phishing emails are quite common) - you can transfer to Apple: [email protected] and then delete him.

    Phishing and similar e-mail: Phishing and other suspicious emails

    The phishing emails: identifying fraudulent "phishing" email - Apple Support

    ITunes real e-mails: identification of legitimate on the iTunes Store - Apple Support emails

    You need to contact iTunes support, but if you want to: http://www.apple.com/support/itunes/contact/ or https://www.apple.com/emea/support/itunes/contact.html

  • Can not put the item in the basket on the Amazon site

    In Firefox (15), Safari, but not Opera I can't put an article in the basket on the Amazon website. This problem occurs ONLY when you purchase an article in clothing and accessories, where it is necessary to specify a size. If I search for and select that item, like a pair of pants, the section where the item is put in the basket is dimmed, and there is a statement to select a size. I selects a size, and then move the cursor to the point where I can add it to the cart. But this section remains dim instead of shiny. I can't add the item to the basket. UNLESS I order a belt! A belt has a size, you must specify, and you can put it in the basket. I DIDN'T HAVE THIS PROBLEM until ABOUT a WEEK AGO, after downloading a software update that contains a HP printer driver. That the problem got solved by a technician HP working remotely. I talked to Apple several times, he cannot understand what is the problem with the Amazon site. I don't have this problem on a MacBookPro running 10.6.8. I have it only on a MacPro 10.6.8 also running desktop machine. I reinstalled 10.6.3 on the desktop Mac since the Snow Leopard DVD and updated to 10.6.8 (not including the HP driver on the chance that could have triggered it. Unable to move items "sizes" to cart persists, as described. Note once again, that I have the same problem in Safari, but not a problem at the opera. I encouraged cookies and third party cookies. I tried to restart with disabled modules. I have deleted cookies from Amazon, and Amazon to re - install then allowed them. There is no firewall to the top. The desktop machine is about 6-8 years. Even if I only have 1 GB of RAM, there is no apparent hardware problem. This could be a firmware issue? Of course, I have the workaround to use Opera or the laptop if I want to buy socks, but it's annoying to have this inconsistency. Any advice would be appreciated. Thank you. Gene

    If clearing cookies doesn't work, then it is possible that the cookies.sqlite file that stores the cookies is corrupted.

    Rename (or delete) cookies.sqlite (cookies.sqlite.old) and delete other files to present as cookie cookies.sqlite - journal in the profile folder of Firefox in the case where the cookies.sqlite file has been corrupted.

Maybe you are looking for

  • Recover deleted iMessage conversation (just missing out on a single device)

    Hi, I accidentally deleted a conversation from my iPhone and have no hot idea to recover, even if the conversation itself is still available on iPad announcement on Mac. While on the iPhone, I started the conversation from scratch, it seems to contin

  • How to put in place the new Airport Express to extend the current wireless WiFi U-Verse home network?

    Hello What are the steps for the creation of a new AIRPORT EXPRESS MC414LL/A Terminal so that it make that expand my network existing wireless, using my current AT & T UVerse equipment home.  Here are the details... Internet service provider: AT & T

  • Can I use 1 TB hard drive on my Satellite L40?

    Hello! Is it possible to change my 120 GB drive hard wit 1 TB HITACHI SATA III hard drive on my Toshiba L40?I think my HDD is Sata II now and I'm not sure if is compatible with SATA III and the size 1 TB... Post edited by: Warren G

  • Try to download an application

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs keep having the same message all the time as above Error messages a problem caused this program to stop w

  • Can I use virtual channel to connect the different tasks?

    Hi all I did the A program, which is a DAQ VI implements synchronized I / AO / tasks; and B of the program, in which we use keyboard and buttons on the front panel to control himself. Now, I want to add code to B, so that it can be controlled by the