Shop OBEX P1 Docs P2 Docs Learn Events
Can someone help me write visual basic code please — Parallax Forums

Can someone help me write visual basic code please

charlie123charlie123 Posts: 6
edited 2014-10-05 14:54 in General Discussion
1. I need a program that can read the names, costs and RAM capacities of five laptops storing them in seperate arrays.(LAPTOP INFO AT THE END)
2. display a numbered list with all the details for the five laptops
3. ask the user if they want to buy each laptop, indicating those chosen as true/false values
4. calculate the total cost of the laptops chosen
5.display a table of the name, cost and ram capacity of the chosen laptops
6. lastly the total cost of the oeder should also be displayed below the table.

Laptop info
laptop 1= Sl pear(name), Ram=8Gb ,cost=322.99
laptop 2= Ph envy(name), Ram=4Gb,cost=256.99
laptop 3= Razor wire XL(name), Ram =8Gb ,cost=340.45
laptop 4= THX45(name), Ram=12Gb, cost= 512.45
laptop5= SimSung(name), Ram= 4Gb, cost= 270.99

Thank you.


Comments

  • bill190bill190 Posts: 769
    edited 2014-10-05 08:16
    Is this a school assignment?
  • charlie123charlie123 Posts: 6
    edited 2014-10-05 08:53
    yes but the teacher i have isnt a computing teacher so ihave no idea what to do.
  • bill190bill190 Posts: 769
    edited 2014-10-05 09:08
    You are best to learn how to do this yourself. When you go out into the job world, there will not be anyone there to do your work for you - best to learn how to do these things now.

    Start by searching google.com for the words...

    visual basic tutorial
  • charlie123charlie123 Posts: 6
    edited 2014-10-05 09:25
    okay thanks
  • prof_brainoprof_braino Posts: 4,313
    edited 2014-10-05 09:30
    Take you problem, and list all the individual tasks you must preform.

    Break each task into its sub tasks.

    Continue until each sub task is broken into an action that you can write code for.

    For example, eventually you will need to add the costs. And you know you can code something to do "Total = cost1+cost2+...+costN"

    This is simple, but it takes a bit of time. Its the secret to writing code. You can get the hang of this in just a couple weeks. Practice for 20 years and you'll be a pro.
  • charlie123charlie123 Posts: 6
    edited 2014-10-05 09:38
    ok thanks for helping
  • Heater.Heater. Posts: 21,230
    edited 2014-10-05 11:49
    charlie,

    Welcome to the forum.
    If you write this code for me before monday ill be willing to pay youl!.

    Clearly there are so many things wrong with this it is not going to happen.

    This is not a Visual Basic forum.

    This is not a place to come to get your home work done for you.

    This is especially not a place to come to get your homework done for money.

    I might ask, why are you leaving your home work till the last moment?

    I will sympathize if your teacher is not a computing teacher, but then I have to wonder why this is an assignment in the first place? What schools is this? What course is this? How can this happen?

    On the other hand, this is a place where people are passionate about programming and electronics and micro controllers and robots and gadgets and all kind of stuff. So if you have an interest, perhaps even a passion, in the direction you have found the right place.

    I wish you all the best.









  • charlie123charlie123 Posts: 6
    edited 2014-10-05 12:57
    Im very sorry if I have upset you, but I came here as a last resort as i'm very confused about how to write this program.This is not homework this is school work and im struggling alot at school with computing as i stated above.I read and respect your comment taking in all of your points into account. My head isn't balanced at the moment due to all the stress this has caused me as the school work goes towards my final grade and my future.

    Thanks for the support anyway :smile:
  • Heater.Heater. Posts: 21,230
    edited 2014-10-05 13:51
    Charlie,

    We are not upset.

    I don't know where you are from but there may be some language confusion here.

    When I say "home work" I mean that work we used be given at school to do at home. Not some other stuff we just happened to do at home.

    So, what you are saying is you have school work to do.

    Can you not talk to your teachers about this? If they are supposed to be teaching it to you then they have a duty to answer your questions until you understand.
  • charlie123charlie123 Posts: 6
    edited 2014-10-05 14:54
    Yea you're right and thanks for being understanding
Sign In or Register to comment.