Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27159

Decisions and/or Boolean help

$
0
0
Hi all,

I need some help with homework. Before we start, I want to make it clear that it is ok for me to ask for help online. We are allowed to use whatever resources possible, as long as we aren't plagarising or upright stealing other peoples work. That said, I'm asking for help completing and assignment.

I'm new to VB and need some logic help.

I'm creating a calculator that determines life expectancy based on pseudo numbers/facts. More or less, just IF Then, etc commands.

The design I came up with looks like this:

Attachment 99091

The requirements are as follows:

Attachment 99093

and the output requires:

Attachment 99095

Now, I know that all of the commands need to be in the buttonclick - I'm just not sure how to set up the If Then's with all of the criteria that add or subtract years off expectancy.

What I'm asking for is the code, but more importantly, to understand the code - as I may have to alter it in the future. I'm not really looking for someone to do the work for me - I'm just looking for a simple (if possible) understanding on how to set this up. I really appreciate any help - thanks in advance.
Attached Images
     

Viewing all articles
Browse latest Browse all 27159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>