Algorithms
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Algorithms

  1. #1
    Join Date
    Aug 2014
    Posts
    1

    Algorithms

    Hey guys I'm new to Visual Basic and would find it very helpful if you guys could do this for me so I get a better understanding. You have to change these algorithms to visual basic code

    This is the first one

    1. Get price of item
    2. Get salestaxrate
    3. sales tax= price of item x sales tax rate
    4. Final price = price of item + sales tax
    5. Display final price


    And the second one

    1. get hours worked
    2. get pay rate
    3. If hours worked <= 40 then
    3. gross pay= pay rate times hours worked
    4. else
    4. gross pay = pay rate times 40 plus 1.5 times pay rate times ( hours worked minus 40)
    5. Display gross pay

    If anyone could help it would be great help.

    Thank you

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,101

    Re: Algorithms

    Sorry, but this looks like homework. We usually do not do everything for people, as they must at least put in an effort themselves.

    The first five questions are straightforward - simple maths, so is most of the last questions.

    what have you attempted, and what are you really struggling with?

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center