Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: array need help

  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    array need help

    hey guys im new to this forum and have exams coming up so wanted to study from past papers.Could you help me answer this

    Write a program that used an array to store the items you require on a weekly shopping list eg. milk. eggs, cornflakes. orange juice and bread

    1. Initially the user should be prompted to enter the size of the array (i.e the size should indicate the number of iteams to store with in the array. Once a size has been defined, the program should begin to prompt the user (via dialog boxes) for the specified number of items to go on to the shopping list. Once the user has completed entering the date, your program should output, via a single alert box, the full list of shopping items. NO sorting is required.



    any help is much appreciated

  • #2
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    Quote Originally Posted by email View Post
    hey guys im new to this forum and have exams coming up so wanted to study from past papers
    You can use past papers to test your knowledge. Now that you know the result, you need to refer to your course material.

  • #3
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Logic Ali View Post
    You can use past papers to test your knowledge. Now that you know the result, you need to refer to your course material.
    That answer is really gone help me

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,142
    Thanks
    203
    Thanked 2,547 Times in 2,525 Posts
    This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.


    It is your responsibility to die() if necessary….. - PHP Manual

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •