number_system

# 69 construct a decision table to solve the problem

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: is 1.5 times the regular rate, is to be paid. Draw a flowchart for the problem logic to do this. Assume a suitable sentinel value for any of the input fields of the trailer record. 58. A data file contains a set of examination scores and is followed by a trailer record with a value of-1. Draw a flowchart for the logic to calculate and print the average of the scores. 59. The data file of Question 58 is expanded to include several sets of data, each requiring calculation of average. Each data set is followed by a trailer record with a value of -1; however, the last data set followed by a trailer record with a value of-2. Draw a flowchart for the logic to perform this task. 60. Suppose five numbers denoted by the variables A, B, C, D, and E are supplied as input. Draw a flowchart for the logic to print these numbers in descending order of magnitude. 61. Draw a flowchart to add up all the even numbers between 0 and 100. Before ending, print the result of 1 calculation. 62. Draw a flowchart for the logic to find out whether a given triangle ABC is isosceles. Assume that the angles of the triangle are supplied as input. Print the answer as yes or no. 63. Draw a flowchart for the logic to find out whether a given triangle ABC is a right angled triangle. Assume that the sides of the triangle are supplied as input data. Print the answer as yes or no. 64. Draw a flowchart for the logic to find out whether a given quadrilateral ABCD is a rectangle. Assume that all the four angles and four sides of the quadrilateral are supplied as input data. Print the answer as yes or no. 65. Draw a flowchart for the logic to convert a number from base 10 to a new base using the division-remainder technique. 66. Draw a flowchart for the logic to convert a number to decimal from another base. 67. Construct a decision table to solve the problem described in Question 46. 68. Construct a decision table to solve the problem described in Question 51. 69. Construct a decision table to solve the problem described in Question 54. 70. Construct a...
View Full Document

## This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online