Question

In: Computer Science

Draw the decision tables for all the problems below For the decision tables above, reduce the...

  1. Draw the decision tables for all the problems below
  2. For the decision tables above, reduce the tables if possible.

Problems

  1. A month is to be represented as an integer. A valid month is in the range of 1..12. An integer < 1 is invalid, or an integer > 12 is invalid. Consider how this can be simplified or reduced.
  2. An employee is either hourly or salaried. An hourly employee is paid by calculating an hourly wage and an hourly employee that works more than 40 hours is paid overtime. An hourly employee that works less than 40 hours must produce an absence report. A salaried employee can work any number of hours.
  3. A new program to determine parking rates is to be developed. Users will select (from a dropdown) the classification of the vehicle owner (faculty/staff or student), the location of the parking (garage or open lot) and the type of vehicle (large or small).  Students with a small vehicle pay $250.00 in a lot and $350.00 in a garage.  Students with a large vehicle may park in a lot for $400.00.  Faculty/staff may park small vehicles anywhere for $150.00 and large vehicles in a lot for $200.00.  Large vehicles are not allowed in the garage.

Solutions

Expert Solution

WHAT IS DECISION TABLE? ? ?

A Decision table is a table of rows and columns, separated into four quadrants and is designed to illustrate complex decision rules.

  • Condition Stub – upper left quadrant
  • Rules Stub – upper right quadrant
  • Action Stub – bottom left quadrant
  • Entries Stub - bottom right quadran

Standard format used for presenting decision tables is as shown below.

Importance of Decision Tables

  • Aids in the analysis of structured decisions
  • Ensures completeness
  • Checks for possible errors (impossible situations, contradictions, and redundancies, etc.)
  • Reduces the amount of condition testing that must be done

How To Develope A Decision Table? ? ?

  • Process requires the determination of the number of conditions (inputs) that affect the decision.
  • The set of possible actions (outputs) must likewise be determined
  • The number of rules is computed
  • Each rule must specify one or more actions

Number of Rules

  • Each condition generally has two possible alternatives (outcomes): Yes or No
  • In more advanced tables, multiple outcomes for each condition are permitted
  • The total number of rules is equal to 2 no. of condi ti ons
  • Thus, if there are four conditions, therewill be sixteen possible rules

Decision Table For:-

  1. A month is to be represented as an integer. A valid month is in the range of 1..12. An integer < 1 is invalid, or an integer > 12 is invalid. Consider how this can be simplified or reduced.

Let's have a look at how to create a decision table for the above question and how to reduce the table format. here the step by step process is shown with the help of tabular method.

  

  

The result obtained in the step-8 is the final decision table obtained for the above question.

Decision Table For :-

2. An employee is either hourly or salaried. An hourly employee is paid by calculating an hourly wage and an hourly employee that works more than 40 hours is paid overtime. An hourly employee that works less than 40 hours must produce an absence report. A salaried employee can work any number of hours.


Related Solutions

Draw the cache tables and the state of all bits within them. Suppose you have a...
Draw the cache tables and the state of all bits within them. Suppose you have a 16 byte cache with 2 byte long cachelines that is 2-way set associative and write-back. Further assume that prior to processing any read/write requests the state of memory is M[a] = a, or another words, the byte at address 0 is 0, address 1 is 1, address 2 is 2, and so on. Assume an *8 bit* long address. Along with depicting the cache...
Unit 6    [Hypothesis Testing/Decision Making]        For all Hypothesis\Decision Making Problems, please do the following:            ...
Unit 6    [Hypothesis Testing/Decision Making]        For all Hypothesis\Decision Making Problems, please do the following:             1.         Answer: Is the data discrete or continuous?             2.        List the assumptions. 3.        State the null and alternate hypothesis.             4          Write down the proper test statistic, Show all calculations, i.e. impute the numbers.                       .               Set up Decision rules. Show the critical value.    Reject or Fail to reject.               5.         State your conclusions.   6.2.1 A sample of...
Problems 1 and 2, draw the appropriate probability distribution curve and label all values. Show all...
Problems 1 and 2, draw the appropriate probability distribution curve and label all values. Show all your work. Do not use Excel or a statistical calculator to compute the probabilities. Showing only the answer will result in a zero grade. Whitney Gourmet Cat Food has determined the weight of their cat food can is normally distributed with a mean of 3 ounces and a standard deviation of 0.05 ounces. To meet legal and customer satisfaction goals each can must weigh...
Deaths from all Causes Fill-in the tables below with the following information for each of the...
Deaths from all Causes Fill-in the tables below with the following information for each of the age groups: Number of deaths from all causes Number of deaths from accidents (unintentional injuries) Cause-specific death rate for accidents (unintentional injuries) Calculate the age-specific all cause death rates for each group and the proportionate mortality ratio (PMR) for accidents (unintentional injuries). TABLE A 2006 population Deaths in 2006 (All causes) Deaths from Accidents, 2006 Age-Specific All Cause Death Rate (per 100,000) Total 274,633,642...
For complete credit show all of your calculations, list your assumptions and formulas, draw relevant tables...
For complete credit show all of your calculations, list your assumptions and formulas, draw relevant tables and plots all on handwritten pages in your notebook. If there are repetitious calculations you only need to show an illustrative calculation. price lotsize 490000 2503 512000 2483 345000 2500 508670 2900 550000 2513 300000 2513 995000 4950 920000 3135 470000 2375 450000 2375 5.Calculate the weighted average of price and lotsize. Why are these the same or different from the median and arithmetic...
For complete credit show all of your calculations, list your assumptions and formulas, draw relevant tables...
For complete credit show all of your calculations, list your assumptions and formulas, draw relevant tables and plots all on handwritten pages in your notebook. If there are repetitious calculations you only need to show an illustrative calculation. Submit pictures of your handwritten pages no later than Wednesday, March 4th by 1800 hours ending. Use this sample of house prices and lotsizes in the Pelham Bay neighborhood of the Bronx from 2018-2019 to answer the questions below. price lotsize 490000...
For complete credit show all of your calculations, list your assumptions and formulas, draw relevant tables...
For complete credit show all of your calculations, list your assumptions and formulas, draw relevant tables and plots all on handwritten pages in your notebook. If there are repetitious calculations you only need to show an illustrative calculation. price lotsize 490000 2503 512000 2483 345000 2500 508670 2900 550000 2513 300000 2513 995000 4950 920000 3135 470000 2375 450000 2375 1.What kind of data is this? 2.For one of the series, and for 3 equally spaced non-overlapping intervals what in...
v Unit 6    [Hypothesis Testing/Decision Making]        For all Hypothesis\Decision Making Problems, please do the following:...
v Unit 6    [Hypothesis Testing/Decision Making]        For all Hypothesis\Decision Making Problems, please do the following:             1.         Answer: Is the data discrete or continuous?             2.        List the assumptions. 3.        State the null and alternate hypothesis.             4          Write down the proper test statistic, Show all calculations, i.e. impute the numbers.                       .               Set up Decision rules. Show the critical value.    Reject or Fail to reject.               5.         State your conclusions.                         6.3.1     Suppose it...
Draw an economy operating (SRAS=AD) below the full employment level of output. if the above economy...
Draw an economy operating (SRAS=AD) below the full employment level of output. if the above economy is left alone from government intervention, describe the Long Run adjustment. Long run adjustment: please specify the effects of this adjustment on: Nominal wage: output: Prices: Draw an economy operating (SRAS=AD) beyond the full employment level of output. if the above economy is left alone from government intervention, describe the Long Run adjustment. Long run adjustment: please specify the effects of this adjustment on:...
A slice consists of all the elements that are below, below right, or below left of the element above it. The Min Slice Weight is the minimum sum of all elements in the slice.
A Hackerrank Challenge:Given an NxN matrix, slice it and find the minimum slice weight.A slice consists of all the elements that are below, below right, or below left of the element above it. The Min Slice Weight is the minimum sum of all elements in the slice.Example: given input1 2 34 5 67 8 9The slices would be 1 4 7 1; 1 4 8; 1 5 7; 1 5 8; 1 5 9; 2 4 7; 2 4 8;...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT