Can someone help me write visual basic code please
charlie123
Posts: 6
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.
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
Start by searching google.com for the words...
visual basic tutorial
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.
Welcome to the forum.
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.
Thanks for the support anyway
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.