One of the preferred embodiments of the present invention will now be described in conjunction with the drawings. A cash register comprises a base frame 3 having a drawer 2 able to be pulled forward and a main body 4 in which are arranged operation keys including tax selection key 5, tax total key 6 and amount key 7, and an indicating unit 9 is provided in its upper portion. And, an electronic circuit as described later is incorporated in said main body 4.
First of all, when the commodity taxes adopted in Arizona in the United States are examined based on FIGS. 2 and 3, it is understood that the aforementioned taxes are determined based on such a rule as described below. In other words, a range from 1.cent. to 87.cent. is divided into four stages and said range is regarded as an unproportional portion a which is not common with other portions. And, the maximum money amount of the unproportional portion a is 87.cent.. Then, the range from 88.cent. to $1.87 is divided into four stages. Similarly, the ranges from $1.88 to $2.87, $2.88 to $3.87 and so on are regarded as a proportional portion b in which tax amounts are increased proportionally in sequence. A proportional portion repeated money amount W of said proportional portion b is $1.00, its step number T is 4.cent., and a tax amount is of a constant rate of 4% and is determined by counting a fraction over 1/2 as one and disregarding the rest below a decimal point. And, a maximum money amount B of the proportional portion of the lowest range is $1.87.
The construction and operation will now be described in conjunction with FIG. 4. Memorized into the tax amount data memorizing unit 10 are maximum numerical values of each stage of the unproportional portion a and their corresponding tax amounts, maximum numerical values of each stage of the lowest range of the proportional portion b and their corresponding tax amounts, and the maximum tax amounts of the unproportional portion a and the lowest range of the proportional portion b. The above-mentioned tax amount data memorizing unit 10 is connected to a controller 11 and at the same time connected to WT memorizing unit 12 and a calculating unit 13. In the WT memorizing unit, the proportional portion repeated money amount W and the step number T of the proportional portion b are memorized. Registers X 14, Y 15, Z 16, and H 17 are connected to the controller 11 and calculating unit 13, respectively. A taxable money amount .alpha. is set into X register 14, the maximum money amount A of the unproportional portion is set into Y register 15 from the tax amount data memorizing unit 10, and a calculation of .alpha.-A= C is made using both of these numerical values. As a result, C is memorized into the register X 14. At this time, the taxable amount .alpha. is transferred to the register H 17. And, a calculation of:
is made. In other words, the proportional portion repeated money amount W is read out from the WT memorizing unit 12 and the number of times when the proportional portion repeated money amount W is subtracted from the contents of X register, namely, N is counted by register Y 15. When the numerical value becomes less than zero, one addition of proportional portion repeated money amount W is made and the subtracted number of times are memorized in the register Y 15 as the number of times N. Then, the step number T is read out from WT memorizing unit 12 and said step number T is multiplied by the repeated number of times N of register Y, producing a product E which is, then, memorized in register Z 16. A fraction F is calculated by substracting a product of the proportional portion repeated money amount W and the repeated number N from a taxable amount .alpha.memorized in register H 17, and a required tax amount K is calculated by adding a tax amount G corresponding to said fraction F taken from tax amount data memorizing unit 10 and a tax amount E memorized in register E 16.
The aforementioned process of calculation will be summarized as follows:
1. .alpha. - A = C
2. C - W .times. N .notlessthan. O . . . N is obtained
3. N .times. T = E
4. .alpha. - W .times. N =F
5. F .fwdarw. G
6. E + G = K
An example of a calculation will now be described assuming the taxable amount as $4.80. The tax amount K for $4.80 should be 19.cent., and the calculating process of the aforementioned items 1 - 6 is as follows:
1. $4.80 - 87.cent. = $3.93
2. $3.93 - $1.00 .times. N .notlessthan. 0 N = 3
3. 3 .times. 4.cent. = 12.cent.
4. $4.80 - $1.00 .times. 3 = $1.80
5. $1.80 .fwdarw. 7.cent.
6. 12.cent. + 7.cent. = 19.cent.
In the aforementioned embodiment, the status where four registers 14, 15, 16 and 17 are employed was described, but in the actual exercises four registers are not necessarily required, and can be reduced depending upon the capacity of the calculating unit 13.
Next, the tax amount data memorizing unit in FIG. 5 will now be described.
Numeral 18 designates a connector block. Ten input terminals 19 short-circuited to each other corresponding to the numerical values of 0-9 and 10 output terminals 20 corresponding to said input terminals 19 are provided in said connector block 18. Said connector block 18 comprises three connectors D, J and L for $, 10.cent.and .cent., respectively, and said connector block 18 consists of blocks 21, 22, 23 and 24 for four groups of 0.cent.-3.cent. in the unproportional portion a and blocks 25, 26, 27 and 28 for four groups of 4.cent.-7.cent. of the proportional portion b. Output terminals 20 corresponding to 0-9 of said blocks 21-28 are commonly-connected and are connected to an encoder 30 having four output terminals 29.
Furthermore, NAND gates 31 are connected to input terminals 19 of said connector block 18, and D.sub.2 terminal 32 for $, D.sub.1 terminal 33 for 10.cent. and D.sub.0 terminal 34 for .cent. are connected to the input sides of NAND gates 31 corresponding to block connectors 18 of D, J and L. The 0-7 portions among terminals 36 including 0-9 of a shift register 35 are connected to each three NAND gates 31 corresponding to each block 21-28. Said shift register 35 is advanced by clock pulses CP from a terminal 37.
Moreover, a connector block 38 for the unproportional portion a and a connector block 39 for the proportional portion b are provided. Input terminals 40 of those connector blocks 38, 39 corresponding to 0-9 are connected to 0-9 terminals of said shift register 35, and furthermore output side terminal 41 of said connector block 38 is connected to an output terminal 42. Output side terminal 43 of said connector block 39 is connected to output terminal 44. Numeral 45 designates connector pins.
In the aforementioned construction, connector pins 45 are connected in the connector block 18 of each block 21-28 so as to realize the status of the side where a higher money amount in each stage shown in FIG. 2 exists. In the block 21, a tax amount is 0.cent., and connector pins 45 are connected to 1 of connector J and 2 of connector L, thereby setting 12.cent.. Block 22 is set at 34.cent., block 23 59.cent., block 24 87.cent., block 25 $1.12, block 26 at $1.37, block 27 at $1.62, and block 28 is set at $1.87. Furthermore, connector block 38 is set at 3 since the maximum tax amount A of the unproportional portion a is 3.cent., and block connector 37 is set at 7 since the tax B of the constant rate portion b is 7.cent..
0-9 of terminals 36 are scanned and an H level signal appears in sequence every time a clock pulse Cp enters the shift register 35 from the terminal 37. When 3 of terminals 36 assumes the H level, a signal appears at the output terminal 42. When 7 of terminals 36 assumes the H level, a signal appears at the output terminal 44. In the process where 0-9 of terminals 36 assumes the H level in sequence, for instance, when 0 of terminals 36 is at the H level, terminals D.sub.2 32, D.sub.1 33 and D.sub.0 34 become H level with a predetermined timing.
Thus, the output of NAND gate 31 assumes the L level, a signal is sent to encoder 30, a signal of 12.cent. converted into BCD code is sent to output terminal 29, and sent to calculating unit 13. When 1 of terminals 36 assumes the H level, a signal of 34.cent. is transmitted from output terminal 29. In this manner, signals of 59.cent., 87.cent., $1.12, $1.37, $1.62 and $1.87 are repeatedly transmitted. In this manner, the determined tax amounts described in FIG. 2 are given as outputs. Furthermore, when timing is taken with a shift register 35, for instance, in the case where 59.cent. is transmitted, a tax amount is 2.cent.. When a signal of $1.62 is transmitted, a signal indicating that the tax amount is 6.cent. can be easily obtained. In addition, since signals of 3.cent. and 7.cent. are transmitted from output terminals 42 and 44, respectively, when the difference of signals 3.cent. and 7.cent. is obtained, a step number T can be set. In the aforementioned calculating manner, all the data to be set in advance are set.
When a change of tax amount is required, a tax amount setting can be extremely easily made by changing the positions of connector pins 45.
Next, the details of said connector blocks 18, 38, and 39 will be described in conjunction with FIGS. 6 and 7. 46 is a rectangular-parallelepiped-like main body made of insulating materials such as phenol resin. On said main body 46, ten terminals 47 of 0-9 are arranged in a straight line and at equal intervals, and five common terminals 48 are provided corresponding to 0 and 1, 2 and 3, 4 and 5, . . . which are formed against said terminals 47 and at an equal distance therefrom. In other words, rectangular through-holes 50 having steps 49 are formed in said main body 46, and said terminals 47 and common terminals 48 are mounted in said through-holes. Said terminals 47 and common terminals 48 are of the same shape and are pressed out from plate materials and have shoulder portions 51 abutting against said step portions 49. Each of them comprises a connecting portion 52 elastically formed in a U-shape, engaging projecting pieces 53 being engaged with the side portions of said through-holes 50 for prevention of slipping-off, and a connecting leg 55 projecting downwardly from the bottom 54 of the main body 46.
45 is a connector pin and said connector pin 45 comprises a holding portion 56 made of insulating material and a pin 57 bent in a U-shape. The distance between 2 feet 58 of said pin 57 is equal to the distance between any of said terminals 47 and said common terminal 48 corresponding thereto.
In the aforementioned construction, a common wire is connected to each connecting pin 55 of 5 pieces of common terminals 48. An independent wiring is made to connecting pins 55 of 10 pieces terminals 47, respectively. When a setting of numerical value 1 is required, a of common terminals 48 and 1 to terminals 47 are connected by a connecting pin 45. Thus, when a signal enters the common terminals 48, an output is generated from 1 of terminals 47 among 10 terminals 47. Therefore, it can be said that the numerical value of 1 is memorized. As a result, although not shown in the figure, if a plurality of main bodies 46 are disposed in parallel on the board, an appropriate connection by connector pin 45 is made on each main body 46, and a signal is given to each common terminal 48 in sequence. A signal corresponding to a set value can be obtained in sequence from a present terminal 47.
In said embodiment, a main body for decimal coding was described. As shown in FIG. 8, three terminals 47 may be grouped as one block and one common terminal 48 for these blocks may be provided. In the state shown in the figure, four common terminals 48 is adequate for obtaining 12 outputs. Therefore, a number of common terminals 48 for n pieces of terminals 47 is n/N pieces (where N is an integral number). In this case, the quotient of n/N is not necessarily an integer, but a total of an integral value of said quotient and 1 may be used.
Furthermore, as shown in FIG. 9, when two terminals 47 and one common terminal 48 are grouped as one set and these sets are alternately disposed, a main body 46 can be formed extremely compactly without shortening the spaces between each terminal, and when many main bodies 46 are disposed, space can be extremely minimized, if adequate attention is devoted to the connecting operation.