JP7279355B2 - Calculator, display method, and program - Google Patents

Calculator, display method, and program Download PDF

Info

Publication number
JP7279355B2
JP7279355B2 JP2018236558A JP2018236558A JP7279355B2 JP 7279355 B2 JP7279355 B2 JP 7279355B2 JP 2018236558 A JP2018236558 A JP 2018236558A JP 2018236558 A JP2018236558 A JP 2018236558A JP 7279355 B2 JP7279355 B2 JP 7279355B2
Authority
JP
Japan
Prior art keywords
tax
calculation
numerical value
memory
total
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018236558A
Other languages
Japanese (ja)
Other versions
JP2020098486A (en
Inventor
博明 吉澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2018236558A priority Critical patent/JP7279355B2/en
Publication of JP2020098486A publication Critical patent/JP2020098486A/en
Application granted granted Critical
Publication of JP7279355B2 publication Critical patent/JP7279355B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Calculators And Similar Devices (AREA)

Description

本発明は、税計算をする計算機、表示方法、及びプログラムに関する。 The present invention relates to a calculator, a display method, and a program for tax calculation.

近年の税計算機(電卓)には、予め設定された税率を用いて税計算をする機能を設けたものがある。例えば、特許文献1に記載された税計算機には、複数の税率にそれぞれ対応する複数の税計算キー(税込み計算キー、税抜き計算キー)が設けられている。税計算機は、各税計算キーに対する操作に応じて、任意の四則計算などによる通常計算された数値、あるいは個別に入力された数値をもとに、各税計算キーに対応する税率による税込み額を算出して表示する。 Some tax calculators (calculators) in recent years have a function of performing tax calculation using a preset tax rate. For example, the tax calculator described in Patent Document 1 is provided with a plurality of tax calculation keys (tax-inclusive calculation key, tax-excluded calculation key) respectively corresponding to a plurality of tax rates. Depending on the operation of each tax calculation key, the tax calculator calculates the tax-inclusive amount based on the tax rate corresponding to each tax calculation key, based on the numerical value normally calculated by arbitrary four arithmetic calculations, etc., or based on the individually input numerical value. Calculate and display.

従って、例えば適用税率が異なる複数の商品について、購入額を税計算機(電卓)により計算する場合であっても、商品毎に適用税率に応じた税計算を実行して、全ての商品についての購入額を示す総合計を算出することができる。 Therefore, even if the purchase amount for multiple products with different applicable tax rates is calculated using a tax calculator, the tax calculation corresponding to the applicable tax rate is executed for each product, and the purchase price for all products is calculated according to the applicable tax rate. A grand total can be calculated to indicate the amount.

特開2017-174225号公報JP 2017-174225 A

従来技術による税計算機では、複数の税率に基づく税計算結果として総合計を表示させることができるものの、税計算の対象とした商品数、すなわち税計算の対象とした数値の数については確認することができなかった。特に、適用税率が異なる複数の商品がある場合に、各税率を適用した商品数(数値の数)を確認することができなかつた。 Although tax calculators according to the prior art can display total sums as tax calculation results based on multiple tax rates, it is necessary to confirm the number of products subject to tax calculation, that is, the number of figures subject to tax calculation. I couldn't do it. In particular, when there are multiple products with different applicable tax rates, it was not possible to confirm the number of products (number of figures) to which each tax rate was applied.

本発明は、前記のような課題に考慮してなされたもので、税計算の対象とした数値の数を容易に確認することができる計算機、表示方法、及びプログラムを提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a computer, a display method, and a program that enable the user to easily check the number of numerical values for tax calculation. .

上記の課題を解決するために、本発明の一態様の計算機は、税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、制御部を有し、前記制御部は、複数の前記税計算の実行に伴い、前記数値を特定する第1情報と、前記数値を用いて実行する税計算の実行指示を特定する第2情報との組の数を示す第3数値を前記表示部に表示させ、前記合計値の読み出し指示の入力に応じて、前記第3数値の表示に代えて前記第2数値を表示させる。 In order to solve the above problems, a calculator according to one embodiment of the present invention executes tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, and calculates a plurality of tax calculations. store a total value of first numerical values relating to the result in a first memory; store a second numerical value indicating the number of said numerical values for a plurality of said tax calculations in a second memory; a control unit that reads the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory and displays the second numerical value on a display unit according to an input ; The control unit controls the number of sets of first information specifying the numerical value and second information specifying the execution instruction of the tax calculation to be executed using the numerical value in accordance with the execution of the plurality of tax calculations. Three numerical values are displayed on the display unit, and the second numerical value is displayed instead of the third numerical value in response to the input of the instruction to read out the total value.

本実施形態における税計算機の外観構成を示す正面図。1 is a front view showing the external configuration of a tax calculator according to the present embodiment; FIG. 本実施形態における電卓の電子回路の構成を示すブロック図。FIG. 2 is a block diagram showing the configuration of the electronic circuit of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓の税計算機能の動作を説明するためのフローチャート。4 is a flowchart for explaining the operation of the tax calculation function of the calculator according to the embodiment; 本実施形態における電卓のアイテム数保存エリアに記憶されるデータの一例を示す図。FIG. 4 is a diagram showing an example of data stored in an item count storage area of the calculator according to the embodiment; 本実施形態における電卓の税計算機能を説明するための入力操作と表示の具体例を示す図。FIG. 5 is a diagram showing a specific example of input operation and display for explaining the tax calculation function of the calculator according to the present embodiment; 本実施形態における電卓の税計算機能を説明するための入力操作と表示の具体例を示す図。FIG. 5 is a diagram showing a specific example of input operation and display for explaining the tax calculation function of the calculator according to the present embodiment;

以下、図面により本発明の実施の形態について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

図1は、本実施形態に係る税計算機の外観構成を示す正面図である。本実施形態では、税計算機を計算専用の電卓10として実現している。 FIG. 1 is a front view showing the external configuration of the tax calculator according to this embodiment. In this embodiment, the tax calculator is implemented as a calculator 10 dedicated to calculation.

なお、税計算機は、電卓10として構成する他、計算機能を有する(計算処理プログラムが実装された)パーソナルコンピュータ、タブレット型コンピュータ、スマートフォン、携帯電話機、タッチパネル式PDA(personal digital assistants)、電子ブック、携帯ゲーム機等として構成することができる。なお、電卓10のような物理的なキー(ボタン)が実装されていない税計算機は、電卓10のキーと同様なソフトウェアキーボードを表示し、このソフトウェアキーボードに対するキー操作に応じて計算処理を実行する。 In addition to being configured as the calculator 10, the tax calculator includes a personal computer having a calculation function (on which a calculation processing program is implemented), a tablet computer, a smartphone, a mobile phone, a touch panel type PDA (personal digital assistant), an e-book, It can be configured as a portable game machine or the like. A tax calculator that does not have physical keys (buttons) such as the calculator 10 displays a software keyboard similar to the keys of the calculator 10, and executes calculation processing according to key operations on the software keyboard. .

本実施形態における電卓10は、複数の税率、例えば5種類の税率により税計算をする税計算機能が設けられている。例えば、インドでは消費税として、5種類の税率(0%、5%、12%、18%、28%)が用いられている。従って、本実施形態における電卓10は、インドなどにおいて、5種類以下の複数の消費税が混在する商品の総額などを算出する税計算に好適である。なお、本実施形態における電卓10は、複数の税率のそれぞれを用いて、税込み計算と税抜き計算を実行することができる。例えば、電卓10は、何れかの消費税が適用された税込み価格により表記された商品について、税抜き計算によって商品の税抜額を算出し、この税抜額に対して別の消費税を適用した税込み計算をすることが可能である。 The calculator 10 according to the present embodiment is provided with a tax calculation function for tax calculation based on a plurality of tax rates, for example, five tax rates. For example, India uses five tax rates (0%, 5%, 12%, 18%, and 28%) as consumption tax. Therefore, the calculator 10 according to the present embodiment is suitable for tax calculation for calculating the total amount of goods subject to a plurality of consumption taxes of up to five types, for example, in India. Note that the calculator 10 according to the present embodiment can perform tax-inclusive calculation and tax-exclusive calculation using each of a plurality of tax rates. For example, the calculator 10 calculates the tax-excluded price of a product indicated by a tax-inclusive price to which any consumption tax is applied, by calculating the tax-excluded price of the product, and applies another consumption tax to the tax-excluded price. It is possible to do the calculation.

電卓10の筐体正面には、複数のキーを含むキー入力部11、表示部12およびソーラーパネル13が設けられる。キー入力部11には、数値キー、演算キー、税計算機能キー、機能キー、検算機能キーが設けられる。数値キーには、例えば[00][0]~[9]のそれぞれに対応する複数のキーを含む。演算キーには、四則演算による通常計算に使用する、例えば[+](加算)キー11h1、[-](減算)キー11h2、[×](乗算)キー11h3、[÷](除算)キー11h4、[=](演算実行)キー11h0のそれぞれに対応する複数のキーを含む。 A key input unit 11 including a plurality of keys, a display unit 12 and a solar panel 13 are provided on the front of the housing of the calculator 10 . The key input unit 11 is provided with numeric keys, operation keys, tax calculation function keys, function keys, and calculation function keys. Numerical keys include, for example, a plurality of keys corresponding respectively to [00][0]-[9]. Operation keys include, for example, [+] (addition) key 11h1, [-] (subtraction) key 11h2, [×] (multiplication) key 11h3, and [÷] (division) key 11h4, which are used for normal calculations by the four arithmetic operations. , [=] (calculation execution) key 11h0.

税計算機能キーには、税計算キー([GST+n(TAX-n)])11b、税計算合計キー([GST GT(GT)])11c、税計算モード切替キー([GST+/TAX-])11dが設けられる。ここで、GSTとは、インドの消費税を意味する「Goods and Service Tax」に対する略記号である。また、[ ]内の文字列(ただし、( )内の文字列を除く。)は、各税計算キー11bのキートップに印刷された文字列を示しており、[ ]内のさらに( )内の文字列は、電卓10の筐体正面に印刷された文字列を便宜的に示すものとする。本明細書では、税計算キー11bに限らず、同様の表記とする。 The tax calculation function keys include a tax calculation key ([GST+n (TAX-n)]) 11b, a tax calculation total key ([GST GT (GT)]) 11c, and a tax calculation mode switching key ([GST+/TAX-]). 11d is provided. Here, GST is an abbreviation for "Goods and Service Tax" which means consumption tax in India. In addition, the character strings in [ ] (excluding the character strings in ( )) indicate the character strings printed on the key top of each tax calculation key 11b. indicates the character string printed on the front of the housing of the calculator 10 for the sake of convenience. In this specification, the same notation is used not only for the tax calculation key 11b.

税計算キー([GST+n(TAX-n)])11bには、税0計算キー([GST+0(TAX-0)])11b0、税1計算キー([GST+1(TAX-1)])11b1、税2計算キー([GST+2(TAX-2)])11b2、税3計算キー([GST+3(TAX-3)])11b3、税4計算キー([GST+4(TAX-4)])11b4が含まれる。税0計算キー([GST+0(TAX-0)])11b0は、税率0を用いた税計算の実行指示を入力するために操作される。同様にして、税1計算キー([GST+1(TAX-1)])11b1、税2計算キー([GST+2(TAX-2)])11b2、税3計算キー([GST+3(TAX-3)])11b3、税4計算キー([GST+4(TAX-4)])11b4は、それぞれ税率1、税率2、税率3、税率4を用いた税計算の実行指示を入力するために操作される。本明細書では、このように、税計算キー([GST+n(TAX-n)])11bと表現する場合、「n」は0~4までの各数値の代わりに用いられる。本明細書では、税計算キー11bに限らず、「n」が取り得るすべての数値(0~4の整数)のうち、いずれの数値であるかを特段限定しない場合には、具体的な数値ではなく「n」を用いて便宜的に説明する。 Tax calculation key ([GST+n (TAX-n)]) 11b includes tax 0 calculation key ([GST+0 (TAX-0)]) 11b0, tax 1 calculation key ([GST+1 (TAX-1)]) 11b1, tax 2 calculation key ([GST+2 (TAX-2)]) 11b2, tax 3 calculation key ([GST+3 (TAX-3)]) 11b3, and tax 4 calculation key ([GST+4 (TAX-4)]) 11b4. A tax 0 calculation key ([GST+0 (TAX-0)]) 11b0 is operated to input an instruction to execute tax calculation using a tax rate of 0. Similarly, tax 1 calculation key ([GST+1 (TAX-1)]) 11b1, tax 2 calculation key ([GST+2 (TAX-2)]) 11b2, tax 3 calculation key ([GST+3 (TAX-3)]) 11b3, Tax 4 calculation key ([GST+4 (TAX-4)]) 11b4 is operated to input instructions for tax calculation using tax rate 1, tax rate 2, tax rate 3, and tax rate 4, respectively. In this specification, when representing the tax calculation key ([GST+n(TAX-n)]) 11b, "n" is used in place of each numerical value from 0 to 4. In this specification, not limited to the tax calculation key 11b, out of all possible numeric values (integers from 0 to 4) that "n" can take, if there is no particular limitation as to which numeric value it is, a specific numeric value For the sake of convenience, explanation will be made using “n” instead of “n”.

1つの税計算キー11b(税n計算キー11b0~11b4)は、税込み計算キー[GST+n]と税抜き計算キー[TAX-n]を兼ねている。税計算キー11b(税n計算キー11b0~11b4)は、税計算モード切替キー([GST+/TAX-])11dの操作に応じて切り替えられる税計算モードに応じて、税込み計算キー[GST+n]あるいは税抜き計算キー[TAX-n]として使用される。1つの税計算キー11bを税込み計算キー[GST+n]と税抜き計算キー[TAX-n]として共用することで、限られた筐体正面の面積を有効に利用して、複数(5種類)の税率のそれぞれに対応する税込み計算処理および税抜き計算処理を実行可能なキーを設けている。 One tax calculation key 11b (tax n calculation keys 11b0 to 11b4) serves both as a tax-included calculation key [GST+n] and a tax-excluded calculation key [TAX-n]. The tax calculation key 11b (tax n calculation keys 11b0 to 11b4) is used to select the tax calculation key [GST+n] or the tax calculation key [GST+n] or Used as tax-excluded calculation key [TAX-n]. By sharing one tax calculation key 11b as a tax-inclusive calculation key [GST+n] and a tax-excluded calculation key [TAX-n], it is possible to effectively utilize the limited front area of the housing, and use multiple (5 types) A key is provided for executing tax-inclusive calculation processing and tax-excluded calculation processing corresponding to each tax rate.

なお、税計算キー11b(税n計算キー11b0~11b4)に割り当てられる税率(税率0~税率4)は、電卓10の工場出荷時に予め設定されている。例えば、税n計算キー11b0~11b4には、インドにおける使用に合わせて、5種類の税率(0%、5%、12%、18%、28%)がそれぞれ設定される。また、税n計算キー11b0~11b4に割り当てられる税率(税率0~税率4)は、ユーザ操作によって任意に設定することができる。 The tax rates (tax rate 0 to tax rate 4) assigned to the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) are set in advance when the calculator 10 is shipped from the factory. For example, five types of tax rates (0%, 5%, 12%, 18%, 28%) are set for the tax n calculation keys 11b0 to 11b4, respectively, according to use in India. Also, the tax rates (tax rate 0 to tax rate 4) assigned to the tax n calculation keys 11b0 to 11b4 can be arbitrarily set by user operation.

税計算合計キー([GST GT(GT)])11cは、四則計算や定数計算などの通常計算(基本計算)について総合計を表示させるためのグランドトータルキー([GT]キー)と、税計算の計算結果について総合計を表示させるためのGSTグランドトータルキー([GST GT]キー)を兼ねる。なお、税計算合計キー11cがGSTグランドトータルキーとして機能する場合、税計算が実行されるとともに、電卓10の処理モードが税合計リコールモード(GST GTリコールモード)へ遷移する。一方、税計算合計キー11cがグランドトータルキーとして機能する場合、電卓10の処理モードは特に遷移するわけではなく、単に、合計メモリエリア22hに記憶されている数値が呼び出され、表示部12に表示される。これらの処理については、図4を用いて後ほど詳しく説明する。 The tax calculation total key ([GST GT (GT)]) 11c is a grand total key ([GT] key) for displaying the grand total of normal calculations (basic calculations) such as four arithmetic calculations and constant calculations, and a tax calculation key ([GT] key). Also serves as a GST grand total key ([GST GT] key) for displaying the total sum of the calculation results of . When the tax calculation total key 11c functions as the GST grand total key, tax calculation is executed and the processing mode of the calculator 10 transitions to the tax total recall mode (GST GT recall mode). On the other hand, when the tax calculation total key 11c functions as the grand total key, the processing mode of the calculator 10 does not change in particular, but simply the numerical value stored in the total memory area 22h is called and displayed on the display unit 12. be done. These processes will be described later in detail with reference to FIG.

税計算合計キー11cは、税計算合計キー11cが操作された直前の動作状態に応じて、グランドトータルキー([GT]キー)あるいはGSTグランドトータルキー([GST GT]キー)の何れかとして機能する。つまり、例えば、税計算キー11bの操作によって税計算が実行された直後に税計算合計キー11cが押下された場合には、税計算キー11bは、税計算の計算結果について総合計を表示させるGSTグランドトータルキー([GST GT]キー)として機能する。また、例えば、演算実行キー([=]キー)11h0の操作によって通常計算が実行された直後に税計算合計キー11cが押下された場合、すなわち、税計算キー11bの操作によって税計算が実行された直後でない場合には、税計算キー11bは、通常計算(基本計算)について総合計を表示させるためのグランドトータルキー([GT]キー)として機能する。 The tax calculation total key 11c functions as either a grand total key ([GT] key) or a GST grand total key ([GST GT] key) depending on the operation state immediately before the tax calculation total key 11c is operated. do. That is, for example, when the tax calculation total key 11c is pressed immediately after the tax calculation is executed by operating the tax calculation key 11b, the tax calculation key 11b displays the total of the tax calculation results. It functions as a grand total key ([GST GT] key). Further, for example, when the tax calculation total key 11c is pressed immediately after normal calculation is executed by operating the calculation execution key ([=] key) 11h0, that is, tax calculation is executed by operating the tax calculation key 11b. Otherwise, the tax calculation key 11b functions as a grand total key ([GT] key) for displaying the grand total for normal calculation (basic calculation).

機能キーには、例えばオールクリアキー([AC]キー11a)、クリアキー([C]キー)、複数のメモリキー([MRC][M-][M+])、ルートキー([√]キー)、[%]キー11gなどが含まれる。[%]キー11gは、パーセント計算のために使用される他、税計算キー11b(税n計算キー11b0~11b4)のそれぞれに対応する税率をキー操作によって入力される値に設定するための税率設定処理を起動するために使用される。 Function keys include, for example, an all clear key ([AC] key 11a), a clear key ([C] key), a plurality of memory keys ([MRC] [M-] [M+]), a root key ([√] key ), [%] key 11g, and the like. The [%] key 11g is used for percentage calculation and also for setting the tax rate corresponding to each of the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) to a value input by key operation. Used to trigger the configuration process.

検算機能キーは、先に実行された計算の内容について確認/修正するための検算機能において使用されるキーである。検算機能キーには、確認キー([CHECK BACK]キー11e、[CHECK FOWARD]キー11f)と、修正キー([CORRECT]キー)11kが含まれる。[CHECK BACK]キー11e及び[CHECK FOWARD]キー11fは、先に実行された計算の内容(計算データ)をステップ単位で切り替えて表示させるためのキーである。[CHECK BACK]キー11eが操作された場合、ステップ数が少ない方向のステップの計算データに表示を切り替え、[CHECK FOWARD]キー11fが操作された場合、ステップ数が多い方向のステップの計算データに表示を切り替える。なお、1ステップは、計算のために入力された「置数+ファンクション」が単位となる。「ファンクション」には、四則計算、税込み計算、税抜き計算などのために操作されたキーのコードが記憶される。修正キー11kは、[CHECK BACK]キー11eあるいは[CHECK FOWARD]キー11fの操作により表示された計算の内容(「置数+ファンクション」)の修正を指示するためのキーである。修正キー11kの操作後に修正後の計算の内容を入力することで、表示された先に入力された計算データを修正することができる。 The calculation verification function key is a key used in the calculation verification function for confirming/correcting the details of the previously executed calculation. The check function keys include check keys ([CHECK BACK] key 11e, [CHECK FORWARD] key 11f) and correction keys ([CORRECT] key) 11k. The [CHECK BACK] key 11e and the [CHECK FORWARD] key 11f are keys for switching and displaying the contents of previously executed calculations (calculation data) step by step. When the [CHECK BACK] key 11e is operated, the display is switched to the calculation data of the step with the smaller number of steps, and when the [CHECK FORWARD] key 11f is operated, the display is switched to the calculation data of the step with the larger number of steps Switch display. It should be noted that the unit of one step is "numerical value + function" input for calculation. "Function" stores codes of keys operated for four arithmetic calculations, tax-inclusive calculations, tax-excluded calculations, and the like. The correction key 11k is a key for instructing correction of the contents of the calculation ("number + function") displayed by operating the [CHECK BACK] key 11e or the [CHECK FORWARD] key 11f. By inputting the content of the calculation after correction after operating the correction key 11k, the previously input calculation data displayed can be corrected.

ラウンドセレクタ11yは、端数処理の計算方法を設定する。例えば、「F」設定は、表示部12に小数点以下を含む表示可能な最大桁の表示を指定する。「CUT」設定は、小数点セレクタ11zで指定された桁の切り捨てを指定する。「UP」設定は、小数点セレクタ11zで指定された桁の切り上げを指定する。「5/4」設定は、小数点セレクタ11zで指定した桁の四捨五入を指定する。小数点セレクタ11zは、小数点以下を何桁まで表示部12に表示させるかを設定する。なお、「ADD」設定は、入力された数値に対して所定の桁数への小数点設定を指定する。 The round selector 11y sets a calculation method for rounding. For example, the "F" setting specifies display of the maximum number of digits that can be displayed on the display 12, including decimal places. The "CUT" setting specifies truncation of the digit specified by the decimal point selector 11z. The "UP" setting specifies rounding up the digit specified by the decimal point selector 11z. The "5/4" setting specifies rounding off of the digit specified by the decimal point selector 11z. The decimal point selector 11z sets the number of digits below the decimal point to be displayed on the display unit 12 . The "ADD 2 " setting designates the decimal point setting to a predetermined number of digits for the input numerical value.

表示部12は、ドットマトリクス型の液晶表示ユニットからなる。表示部12には、キー入力部11のキーに対する操作により入力された数値が表示される。表示部12には、限られた行数分(例えば1行)の数値が表示される。また、表示部12の辺に沿って設けられた状態表示エリアには、設定中の計算モードや各種設定状態を示す文字や記号(シンボル)が表示される。例えば、状態表示エリアには、ステップ/アイテム数12a、税計算モードシンボル12b、税計算キーシンボル12c、税合計リコールモードシンボル12d、総合計表示シンボル12e、メモリシンボル12f、アイテムシンボル12gなどが表示される。なお、図1では、状態表示エリアを説明するため、表示可能なすべてのシンボルを同じ画面上に便宜的に示したが、電卓10が取り得る任意の状態において、このように多数のシンボルが同じ画面上に同時に表示されるとは限らない。 The display unit 12 is composed of a dot-matrix liquid crystal display unit. The display unit 12 displays numerical values input by operating the keys of the key input unit 11 . Numerical values for a limited number of lines (for example, one line) are displayed on the display unit 12 . In the state display areas provided along the sides of the display unit 12, characters and symbols indicating the calculation mode being set and various setting states are displayed. For example, the status display area displays a step/item number 12a, a tax calculation mode symbol 12b, a tax calculation key symbol 12c, a tax total recall mode symbol 12d, a total total display symbol 12e, a memory symbol 12f, an item symbol 12g, and the like. be. In FIG. 1, in order to explain the state display area, all the symbols that can be displayed are shown on the same screen for convenience. They are not always displayed on the screen at the same time.

ステップ/アイテム数12aは、通常計算(基本計算)時あるいは検算機能実行時にはステップ数を表し、税合計リコールモード時(税込み計算結果とする合計値の表示時)には税込み計算の対象となった数値の数を示すアイテム数を表す。ステップ数は、キー入力部11のキーに対する操作により入力された「置数+ファンクション」を1ステップとした、現在の表示対象としているステップの位置を示す。アイテム数は、表示対象として選択された、税計算結果とする合計額(合計値)を算出するために、税込み計算の対象とした数値(税抜き額を示す)の数を表す。例えば、電卓10により複数の商品についての購入額を示す総合計額を計算する場合に、商品の数がアイテム数に相当する。なお、税計算結果とする合計額(合計値)は、適用税率が異なる複数の商品の合計値である総合計、及び税率別の商品の合計値である総合計を含む。 The number of steps/items 12a indicates the number of steps during normal calculation (basic calculation) or when executing the calculation function, and is subject to tax-inclusive calculation in the tax total recall mode (when displaying the total value as the tax-inclusive calculation result). Represents the number of items indicating the number of numbers. The number of steps indicates the position of the current step to be displayed, with one step being "number + function" input by operating the keys of the key input unit 11 . The number of items represents the number of figures (indicating the amount excluding tax) that are the target of the tax-inclusive calculation in order to calculate the total amount (total value) as the tax calculation result selected as the display target. For example, when the calculator 10 is used to calculate the total purchase price of a plurality of products, the number of products corresponds to the number of items. Note that the total amount (total value) as a result of tax calculation includes the grand total, which is the total value of multiple products with different applicable tax rates, and the grand total, which is the total value of products by tax rate.

税計算モードシンボル12bは、現在の税計算モードを示すもので、税込み計算を実行する税込み計算モードの場合には例えば[GST+]を表示し、税抜き計算を実行する税抜き計算モードの場合には、例えば[TAX-]を表示する。 The tax calculation mode symbol 12b indicates the current tax calculation mode. displays [TAX-], for example.

税計算キーシンボル12cは、税計算キー11bの操作により税計算が実行された場合に、税計算に用いた税率と、税込み計算あるいは税抜き計算の何れかを示すシンボルである。税計算キー11bが税込み計算キー[GST+n]として使用された場合、税率0~4のそれぞれに対応する[GST+0]、[GST+1]、[GST+2]、[GST+3]、[GST+4]の何れかが表示される。また、税計算キー11bが税抜き計算キー[TAX-n]として使用された場合、税率0~4のそれぞれに対応する[TAX-0]、[TAX-1]、[TAX-2]、[TAX-3]、[TAX-4]の何れかが表示される。 The tax calculation key symbol 12c is a symbol indicating the tax rate used for tax calculation and either tax-inclusive calculation or tax-excluded calculation when tax calculation is executed by operating the tax calculation key 11b. When the tax calculation key 11b is used as the tax-inclusive calculation key [GST+n], one of [GST+0], [GST+1], [GST+2], [GST+3], and [GST+4] corresponding to tax rates 0 to 4 is displayed. be done. Also, when the tax calculation key 11b is used as the tax exclusion calculation key [TAX-n], [TAX-0], [TAX-1], [TAX-2], [ Either [TAX-3] or [TAX-4] is displayed.

税合計リコールモードシンボル12dは、税計算合計キー([GST GT(GT)])11cの操作により税合計リコールモード(GST GTリコールモード)に遷移したことを示すシンボルであり、例えば「RCL」が表示される。税合計リコールモードでは、税計算合計キー11cに対するキー操作に応じて、各税率(税率0~4)で計算した税計算の総合計として、税込総合計額、税抜総合計額、税額総合計額を切替表示させることができる。また、税合計リコールモードでは、税計算キー11bに対するキー操作により表示対象とする税率(税率0~4)を指定し、指定した税率別の税計算の総合計として、税込合計額、税抜合計額、税額合計額を切替表示させることができる。 The total tax recall mode symbol 12d is a symbol indicating that the total tax recall mode (GST GT recall mode) has been entered by operating the total tax calculation key ([GST GT (GT)]) 11c. Is displayed. In the tax total recall mode, according to the key operation of the tax calculation total key 11c, the total tax amount calculated at each tax rate (tax rate 0 to 4) is displayed as the total tax amount, the tax total amount, and the total tax amount. The frame can be switched and displayed. In the tax total recall mode, the tax rate (tax rate 0 to 4) to be displayed is specified by key operation on the tax calculation key 11b, and the total amount including tax and the total amount excluding tax are displayed as the total tax calculation for each specified tax rate. The amount and the total tax amount can be switched and displayed.

総合計表示シンボル12eは、演算実行キー[=]11h0の操作に応じて行われる通常計算の計算結果が合計メモリエリア22hに記憶されていることを示すシンボルであり、例えば「GT」が表示される。メモリシンボル12fは、メモリキー([M-][M+])の操作に応じて、メモリ機能により数値が記憶されていることを示すシンボルである。 The total total display symbol 12e is a symbol indicating that the calculation result of the normal calculation performed in response to the operation of the calculation execution key [=] 11h0 is stored in the total memory area 22h. For example, "GT" is displayed. be. The memory symbol 12f is a symbol indicating that a numerical value is stored by the memory function according to the operation of the memory keys ([M-] [M+]).

アイテムシンボル12gは、ステップ/アイテム数12aの表示がアイテム数を表すことを示すシンボルであり、例えば「ITEM」が表示される。アイテムシンボル12gは、税合計リコールモードへの遷移により、ステップ/アイテム数12aがアイテム数に切り替えられるのに合わせて表示される。 The item symbol 12g is a symbol indicating that the display of the number of steps/items 12a represents the number of items, and for example, "ITEM" is displayed. The item symbol 12g is displayed as the step/item count 12a is switched to the item count by transitioning to the total tax recall mode.

ソーラーパネル13は、電卓10を使用する際の周辺環境光の照度がある程度明るいとき、発電する。ソーラーパネル13は、発電中、電卓10の電源部26(図2に示す)として機能し、電卓10の各部へ給電する。また、ソーラーパネル13が発電していないときは、電卓10が別途備える電源部26としての一次電池より電卓10の各部へ給電される。 The solar panel 13 generates power when the illuminance of the surrounding environment light when using the calculator 10 is bright to some extent. The solar panel 13 functions as a power supply section 26 (shown in FIG. 2) of the calculator 10 during power generation, and supplies power to each section of the calculator 10 . Further, when the solar panel 13 is not generating power, power is supplied to each part of the calculator 10 from a primary battery as a power supply part 26 separately provided in the calculator 10 .

図2は、本実施形態における電卓10の電子回路の構成を示すブロック図である。電卓10の電子回路は、CPU21を含む、コンピュータを構成する複数のユニットを備えている。 FIG. 2 is a block diagram showing the configuration of the electronic circuit of the calculator 10 according to this embodiment. The electronic circuit of calculator 10 includes a plurality of units, including CPU 21, that constitute a computer.

CPU21は、メモリ22に記憶された計算処理プログラム22aを実行することにより、回路各部の動作を制御する。キー入力部11への入力操作が行われると、CPU21は、キー入力部11からのキー入力信号により入力操作がされたキーを検出し、検出された各キーに応じた各種の計算処理を実行する。電卓10は、CPU21が計算処理プログラム22aに記述された命令に従い回路各部の動作を制御し、ソフトウェアとハードウェアとが協働して動作することにより、以下の動作説明で述べる計算機能による処理を含む計算処理を実現する。 The CPU 21 executes a calculation processing program 22a stored in the memory 22 to control the operation of each section of the circuit. When an input operation to the key input unit 11 is performed, the CPU 21 detects the key for which the input operation was performed based on the key input signal from the key input unit 11, and executes various calculation processes according to each detected key. do. In the calculator 10, the CPU 21 controls the operation of each part of the circuit in accordance with the instructions written in the calculation processing program 22a, and the software and hardware cooperate to operate, thereby performing processing by the calculation function described in the following explanation of the operation. Realize calculation processing including.

計算処理プログラム22aは、予めメモリ22に記憶されていても良いし、記録媒体読取部24を介してメモリカード等の外部記録媒体23から読み込まれても良いし、あるいは通信部25を介して通信ネットワークN(インターネット等を含む)上のサーバ30からダウンロードされても良い。 The calculation processing program 22a may be stored in advance in the memory 22, read from an external recording medium 23 such as a memory card via the recording medium reading section 24, or communicated via the communication section 25. It may be downloaded from a server 30 on network N (including the Internet, etc.).

メモリ22には、計算処理プログラム22aが記憶される他に、税計算の計算結果を記憶するエリア(税メモリ)、合計メモリエリア22h、税合計リコールモードエリア22k、税計算モードエリア22m、バッファメモリエリア22n、表示メモリエリア22p、税率記憶エリア22r、アイテム数保存エリア22s、今回アイテム数エリア22tなど各データを記憶するエリアが設けられる。税メモリ(第1メモリ)には、税率0合計メモリエリア22b、税率1合計メモリエリア22c、税率2合計メモリエリア22d、税率3合計メモリエリア22e、税率4合計メモリエリア22f、税合計メモリエリア22gが含まれる。なお、以下の説明では、税率0合計メモリエリア22b、税率1合計メモリエリア22c、税率2合計メモリエリア22d、税率3合計メモリエリア22e、税率4合計メモリエリア22fを総称して、税率別税合計メモリエリア22b~22fと説明する場合がある。 In addition to storing a calculation processing program 22a, the memory 22 includes an area (tax memory) for storing calculation results of tax calculation, a total memory area 22h, a total tax recall mode area 22k, a tax calculation mode area 22m, and a buffer memory. Areas for storing each data such as an area 22n, a display memory area 22p, a tax rate storage area 22r, an item number storage area 22s, and a current item number area 22t are provided. The tax memory (first memory) includes a tax rate 0 total memory area 22b, a tax rate 1 total memory area 22c, a tax rate 2 total memory area 22d, a tax rate 3 total memory area 22e, a tax rate 4 total memory area 22f, and a tax total memory area 22g. is included. In the following description, the tax rate 0 total memory area 22b, the tax rate 1 total memory area 22c, the tax rate 2 total memory area 22d, the tax rate 3 total memory area 22e, and the tax rate 4 total memory area 22f are collectively referred to as the tax total by tax rate. They may be described as memory areas 22b to 22f.

税率0合計メモリエリア22bは、税率0に基づいた税計算により算出されるデータを記憶するためのエリアである。税率0合計メモリエリア22bには、税率0の税込み計算の結果に基づく数値が記憶される。具体的には、最後に[AC]キー11aを入力操作してから後に1回以上行われた税率0の税込み計算の結果としての税込み額(第0税込み額)、税額(第0税額)、税抜き額(第0税抜き額)の各合計額が、第0税込合計額、第0税抜合計額、第0税合計額として、それぞれ記憶される。 The zero tax rate total memory area 22b is an area for storing data calculated by tax calculation based on the zero tax rate. The zero tax rate total memory area 22b stores a numerical value based on the result of the zero tax rate tax calculation. Specifically, the tax-inclusive amount (0th tax-inclusive amount), the tax amount (0th tax-inclusive amount), and the Each total amount of tax-excluded amount (0th tax-excluded amount) is stored as the 0th tax-excluded total amount, the 0th tax-excluded total amount, and the 0th tax-exclusive amount, respectively.

税率1合計メモリエリア22c、税率2合計メモリエリア22d、税率3合計メモリエリア22e、税率4合計メモリエリア22fは、前述した税率0合計メモリエリア22bと同様にして、それぞれの税率1~4に基づいた税計算により算出されるデータを記憶するためのエリアである。詳細な説明については省略する。 The tax rate 1 total memory area 22c, the tax rate 2 total memory area 22d, the tax rate 3 total memory area 22e, and the tax rate 4 total memory area 22f are based on the respective tax rates 1 to 4 in the same manner as the tax rate 0 total memory area 22b. This is an area for storing data calculated by tax calculation. Detailed description is omitted.

税合計メモリエリア22gは、全ての税率0~4に基づいた税計算により算出される数値の合計を示すデータを記憶するためのエリアである。税合計メモリエリア22gには、税計算合計キー11cの入力操作に応じて、第0~第4税込合計額を合計した税込総合計額、税込総合計額に対応する税抜総合計額、税込総合計額に対応する税総合計額が記憶される。 The tax total memory area 22g is an area for storing data indicating the total of numerical values calculated by tax calculation based on all tax rates 0-4. In the tax total memory area 22g, the tax-included total amount obtained by summing the 0th to 4th tax-included total amounts, the tax-included total amount corresponding to the tax-included total amount, the tax-included total amount, and the tax-included total amount corresponding to the tax calculation total key 11c are input. A tax total amount corresponding to the total total amount is stored.

合計メモリエリア22hは、通常計算により算出される数値の合計を示すデータを記憶するためのエリアである(第2メモリ)。合計メモリエリア22hには、演算実行キー[=]11h0の操作に応じて通常計算の計算結果が算出されることにより、計算結果とする数値が合計メモリエリア22hに記憶された数値に加算される。 The total memory area 22h is an area (second memory) for storing data indicating the sum of numerical values calculated by normal calculation. In the total memory area 22h, the calculation result of the normal calculation is calculated according to the operation of the operation execution key [=] 11h0, and the numerical value as the calculation result is added to the numerical value stored in the total memory area 22h. .

税合計リコールモードエリア22kは、税計算合計キー11cに対する入力操作に応じて、リコールモードの状態にあるか否かを示す税合計リコールモードフラグが、オン状態またはオフ状態に設定される。税合計リコールモードは、税計算キー11bの操作による税計算の直後に税計算合計キー11cが押下された場合にオンされる(税合計リコールモードへの遷移)。また、税合計リコールモードは、税合計リコールモードをオフするための予め定められた指示として、例えば[AC]キー11aが操作された場合にオフされる。なお、税合計リコールモードのオン/オフの切り替えは、税計算合計キー11cと[AC]キー11aの操作に限られるものではない。例えば、別のキー操作に応じて、あるいは電卓10の処理結果に応じて、税合計リコールモードのオン/オフを切り替えるようにしても良い。 In the total tax recall mode area 22k, a total tax recall mode flag indicating whether the recall mode is set is set to an ON state or an OFF state in response to an input operation on the tax calculation total key 11c. The tax total recall mode is turned on when the tax calculation total key 11c is pressed immediately after the tax calculation by operating the tax calculation key 11b (transition to the tax total recall mode). The total tax recall mode is turned off when, for example, the [AC] key 11a is operated as a predetermined instruction for turning off the total tax recall mode. The on/off switching of the tax total recall mode is not limited to the operation of the tax calculation total key 11c and the [AC] key 11a. For example, on/off of the total tax recall mode may be switched according to another key operation or according to the processing result of the calculator 10 .

税合計リコールモードがオン状態の場合には、税計算合計キー11cが操作(押下)される毎に、税合計メモリエリア22gに記憶された税込総合計額、税抜総合計額、税総合計額を切り替えて表示させることができる。また、税合計リコールモードがオン状態の場合には、税計算キー11b(税n計算キー11b0~11b4)が操作(押下)される毎に、税率別税合計メモリエリア22b~22fに記憶された、税込合計額、税抜合計額、税合計額を切り替えて表示させることができる。 When the tax total recall mode is on, each time the tax calculation total key 11c is operated (depressed), the total tax-included total, total tax-excluded total, and total tax total stored in the tax total memory area 22g are displayed. The amount can be switched and displayed. When the tax total recall mode is on, each time the tax calculation key 11b (tax n calculation keys 11b0 to 11b4) is operated (depressed), the tax total by tax rate memory areas 22b to 22f are stored. , the total amount including tax, the total amount excluding tax, and the total amount including tax can be switched and displayed.

税合計リコールモードのオン状態は、キー入力部11の数値キー及び演算キーの入力がされた場合も維持される。従って、税計算合計キー11cあるいは税計算キー11b(11b0~11b4)の入力操作によって税計算の結果を表示させて確認しながら、数値キー及び演算キーを用いた通常計算を実行することができる。税合計リコールモードのオン状態における通常計算では、税計算の結果とする数値を表示部12に表示させて、表示部12に表示された置数に対して、四則計算などを実行することができる。 The ON state of the total tax recall mode is maintained even when input is made with the numeric keys and operation keys of the key input unit 11 . Therefore, normal calculation using the numerical keys and operation keys can be executed while the tax calculation results are displayed and confirmed by the input operation of the tax calculation total key 11c or the tax calculation keys 11b (11b0 to 11b4). In the normal calculation in the ON state of the tax total recall mode, the numerical value resulting from the tax calculation can be displayed on the display unit 12, and the four arithmetic operations can be performed on the numerical values displayed on the display unit 12. .

税計算モードエリア22mは、税計算モード切替キー11dに対する入力操作に応じて切り替えられる、税込み計算モードあるいは税抜き計算モードの何れの状態にあるかを示す税計算モードデータが記憶される。 The tax calculation mode area 22m stores tax calculation mode data indicating whether the mode is a tax-inclusive calculation mode or a tax-excluded calculation mode, which is switched according to an input operation on the tax calculation mode switching key 11d.

バッファメモリエリア22nは、最後に入力されたファンクションと組になって単位をなすように入力された置数が記憶される。バッファメモリエリア22nには、置数とファンクションとの組が例えば2組分(すなわち、2ステップ数分)記憶される。本実施形態における電卓10は、同じ商品を複数個購入する際の税込み計算において、「個数を示す数値」「乗算の演算コード」「価格を示す数値」の順番で入力するキー操作をすることで、乗算により複数個分の税込み計算の対象とする数値を入力して、税計算を実行することができる。この場合、バッファメモリエリア22nには、乗算のための「個数を示す数値」の数値コードと「乗算の演算コード」の組がバッファメモリエリア22nの1組目に記憶され、その後に入力される「価格を示す数値」の数値コードと税計算のファンクションコードが2組目に記憶される。その後、キー操作に応じたコードが入力される場合には、先に入力されたコードが記憶されたエリアに新しいコードが上書き更新される。また、表示メモリエリア22pは、表示部12に表示されている数値が記憶される。例えば、数値キーの操作により置数として数値「100」と、ファンクションとして税1計算キー([GST+1(TAX-1)])11b1とが順次操作された場合、バッファメモリエリア22nには置数としての数値「100」が記憶され、表示メモリエリア22pには税率1の税込み計算の結果として表示部12にも表示されている数値「105」が記憶されている(ただし、税率1を5%とした場合)。また、例えば、150円の商品が3個購入される場合に税率1を適用した税込み計算では、数値「3」の数値コード、ファンクションとして[×](乗算)キー11h3の演算コード、数値「150」の数値コード、ファンクションとして税1計算キー([GST+1(TAX-1)])11b1のコードが入力され、バッファメモリエリア22nに記憶される。このように、バッファメモリエリア22nおよび表示メモリエリア22pに記憶されている各数値は、最新の入力操作に応じて、順次上書き更新される。 The buffer memory area 22n stores the input numbers that form a unit together with the last input function. The buffer memory area 22n stores, for example, two sets of numbers and functions (that is, two steps). Calculator 10 in this embodiment performs key operation to input in order of "numerical value indicating quantity", "operation code for multiplication", and "numerical value indicating price" in tax-inclusive calculation when purchasing multiple items of the same product. , multiplication allows you to enter multiple numbers for tax-inclusive calculations and execute tax calculations. In this case, in the buffer memory area 22n, a set of the numerical code of the "numerical value indicating the number" for multiplication and the "operation code of the multiplication" is stored in the first set of the buffer memory area 22n, and then input. A numeric code for "value indicating price" and a function code for tax calculation are stored in the second set. After that, when a code corresponding to the key operation is entered, the area storing the previously entered code is overwritten with a new code. Numerical values displayed on the display unit 12 are stored in the display memory area 22p. For example, when the number "100" as a numeric key and the tax 1 calculation key ([GST+1 (TAX-1)]) 11b1 as a function are sequentially operated by operating the numeric keys, the numeric value is stored in the buffer memory area 22n as In the display memory area 22p, the numerical value "105" displayed on the display section 12 is stored as the result of the tax-inclusive calculation of the tax rate 1 (however, the tax rate 1 is assumed to be 5%). if you did this). Also, for example, in a tax-inclusive calculation in which a tax rate of 1 is applied to the purchase of 3 products of 150 yen, the numeric code of the numeric value "3", the operation code of the [x] (multiplication) key 11h3 as the function, and the numeric value "150 ” and the code of the tax 1 calculation key ([GST+1 (TAX-1)]) 11b1 as the function are input and stored in the buffer memory area 22n. In this way, the numerical values stored in the buffer memory area 22n and the display memory area 22p are sequentially overwritten and updated according to the latest input operation.

税率記憶エリア22rは、税計算キー11b(税n計算キー11b0~11b4)のそれぞれに設定された税率0~4を示す数値が記憶される。例えば、税n計算キー11b0~11b4には、工場出荷時に、インドにおける使用に合わせて、5種類の税率(0%、5%、12%、18%、28%)が設定される。この場合、税率記憶エリア22eには、税n計算キー11b0~11b4に対応する税率0~4のそれぞれに対して、「0」、「5」、「12」、「18」、「28」の数値が記憶される。 The tax rate storage area 22r stores numerical values indicating tax rates 0 to 4 set for the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4), respectively. For example, five tax rates (0%, 5%, 12%, 18%, 28%) are set in the tax n calculation keys 11b0 to 11b4 at the time of shipment from the factory in accordance with use in India. In this case, the tax rate storage area 22e stores "0", "5", "12", "18" and "28" for tax rates 0 to 4 corresponding to the tax n calculation keys 11b0 to 11b4. A numeric value is stored.

アイテム数保存エリア22sは、税込み計算結果とする合計額(合計値)を算出するために、税込み計算の対象とした数値の数を示すデータが記憶される。アイテム数保存エリア22sには、例えば、税込み計算の実行指示のために操作された税計算キー11b(税n計算キー11b0~11b4)別に、税込み計算の対象とした数値の数を示すデータが記憶される。すなわち、電卓10により複数の商品についての購入額を示す総合計額を計算する場合に、アイテム数保存エリア22sには、税込み計算に用いられた適用税率(税率0~4)別に、各税率が適用された商品の数を示すデータが記憶される。アイテム数保存エリア22sに記憶されたデータは、表示部12においてアイテム数として表示される。 The number-of-items storage area 22s stores data indicating the number of numerical values to be included in the tax-inclusive calculation in order to calculate the total amount (total value) as the tax-inclusive calculation result. The item count storage area 22s stores, for example, data indicating the number of numerical values targeted for tax-inclusive calculation for each of the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) operated to instruct execution of tax-inclusive calculation. be done. That is, when the calculator 10 is used to calculate the total amount indicating the purchase amount of a plurality of products, each tax rate is displayed in the item number storage area 22s for each applicable tax rate (tax rate 0 to 4) used in the tax calculation. Data is stored indicating the number of products that have been applied. The data stored in the item number storage area 22s is displayed on the display section 12 as the number of items.

今回アイテム数エリア22tは、1回の税計算の対象とする数値の数(今回アイテム数)が一時的に記憶される。例えば、1つの商品についての数値(税込み額を示す)が入力されている場合には、今回アイテム数は「1」となる。また、税込み計算の対象とする数値(置数)が乗算により入力されている場合には、バッファメモリエリア22nに記憶された、[×](乗算)キー11h3の操作に応じて記憶された乗算の演算コードの前に入力された数値(第1置数)が今回アイテム数となる。なお、電卓10において、税計算の対象とする数値が乗算によって入力される場合、「個数×価格」の順番で数値が入力されるものとしている。例えば、150円の商品が3個購入される場合には、「3」「×」「150」の順番で入力される。これにより、後述するアイテム数算出処理において、[×](乗算)キー11h3の前に入力された数値「3」を商品の個数として処理することができる。なお、「個数×価格」の順番に限らず、「価格×個数」の順番で数値が入力されるようにしても良い。この場合、アイテム数算出処理において、[×](乗算)キー11h3の後に入力された数値「3」を商品の個数として処理するものとする。さらに、「個数」と「価格」の入力順は、ユーザ操作によって設定できるようにしても良い。この場合、CPU21は、入力順の設定内容に応じてアイテム数算出処理を実行する。 The current item count area 22t temporarily stores the number of numerical values (current item count) targeted for one tax calculation. For example, if a numerical value (indicating the amount including tax) is entered for one product, the number of items this time will be "1". When the numerical value (number) to be calculated including tax is input by multiplication, the multiplication stored in the buffer memory area 22n in response to the operation of the [x] (multiplication) key 11h3 The numerical value (first number) input before the operation code of is the number of items this time. In addition, in the calculator 10, when a numerical value for tax calculation is input by multiplication, the numerical value is input in the order of "quantity x price". For example, when three items of 150 yen are purchased, the order of "3", "x" and "150" is entered. As a result, in the item number calculation process to be described later, the numerical value "3" input before the [x] (multiplication) key 11h3 can be processed as the number of products. The numerical values may be input in the order of "price x number" instead of the order of "number x price". In this case, in the item number calculation process, the numerical value "3" input after the [x] (multiplication) key 11h3 is processed as the number of products. Furthermore, the input order of "quantity" and "price" may be set by user operation. In this case, the CPU 21 executes the item number calculation process according to the setting contents of the input order.

次に、本実施形態における電卓10の動作について説明する。図3、図4、図5、図6、図7、図8、図9及び図10は、本実施形態における電卓10の税計算機能の動作を説明するためのフローチャートである。図11は、本実施形態における電卓のアイテム数保存エリア22sに記憶されるデータの一例を示す図である。図11及び図12は、本実施形態における電卓10の税計算機能を説明するための入力操作と表示の具体例を示す図である。 Next, the operation of the calculator 10 according to this embodiment will be described. 3, 4, 5, 6, 7, 8, 9 and 10 are flow charts for explaining the operation of the tax calculation function of calculator 10 in this embodiment. FIG. 11 is a diagram showing an example of data stored in the number-of-items storage area 22s of the calculator in this embodiment. 11 and 12 are diagrams showing specific examples of input operations and displays for explaining the tax calculation function of the calculator 10 according to this embodiment.

なお、以下の説明では、税1計算キー([GST+1(TAX-1)])11b1と対応する税率1を5%として、便宜的に説明する。 In the following explanation, the tax rate 1 corresponding to the tax 1 calculation key ([GST+1(TAX-1)]) 11b1 is assumed to be 5% for convenience.

まず、ユーザは、計算を開始前に表示及びメモリの内容をクリアするため、[AC]キー11aを操作(押下)する。CPU21は、[AC]キー11aが操作されると(ステップA9:Yes)、メモリ22の税率別税合計メモリエリア22b~22f、税合計メモリエリア22g、合計メモリエリア22h、バッファメモリエリア22n、表示メモリエリア22pを全てクリアする(ステップA12)。また、CPU21は、税合計リコールモードエリア22kに記憶された税合計リコールモードフラグをオフする(ステップA13)。CPU21は、先の税計算結果などの数値が表示された状態で[AC]キー11aが操作された場合には、先に表示された数値をクリアして「0」を表示する。また、CPU21は、表示部12の状態表示エリアに先のシンボルが表示された状態で[AC]キー11aが操作された場合には、先に表示されたシンボルをクリアして非表示にする。 First, the user operates (presses) the [AC] key 11a in order to clear the display and memory contents before starting calculation. When the [AC] key 11a is operated (step A9: Yes), the CPU 21 displays the tax rate-by-tax total memory areas 22b to 22f, the tax total memory area 22g, the total memory area 22h, and the buffer memory area 22n of the memory 22. All memory areas 22p are cleared (step A12). The CPU 21 also turns off the total tax recall mode flag stored in the total tax recall mode area 22k (step A13). When the [AC] key 11a is operated while a numerical value such as the previous tax calculation result is displayed, the CPU 21 clears the previously displayed numerical value and displays "0". Further, when the [AC] key 11a is operated while the previous symbol is displayed in the status display area of the display unit 12, the CPU 21 clears the previously displayed symbol and hides it.

[AC]キー11aの入力操作の直後に、税計算キー11b(税n計算キー11b0~11b4の何れか)に対する入力操作を検出した場合(ステップA19:Yes)、A117:Yes)、CPU21は、入力操作が行われた税n計算キー11b0~11b4の何れかに対して設定された税率をメモリ22の税率記憶エリア22rから読み出して表示部12において表示させる(ステップA118)。例えば、[AC]キー11aの入力操作の直後に税1計算キー11b1が操作された場合、CPU21は、税1計算キー11b1に設定された税率1(5%)を示す数値を、税率記憶エリア22rから読み出して表示部12に「5」を表示させる。 When an input operation to the tax calculation key 11b (any of the tax n calculation keys 11b0 to 11b4) is detected immediately after the input operation of the [AC] key 11a (step A19: Yes), A117: Yes), the CPU 21 The tax rate set for one of the tax n calculation keys 11b0 to 11b4 for which the input operation has been performed is read from the tax rate storage area 22r of the memory 22 and displayed on the display unit 12 (step A118). For example, when the tax 1 calculation key 11b1 is operated immediately after the input operation of the [AC] key 11a, the CPU 21 stores the numerical value indicating the tax rate 1 (5%) set for the tax 1 calculation key 11b1 in the tax rate storage area. 22r and causes the display unit 12 to display "5".

ここで、続けて、税計算キー11b以外の他のキー操作をすることなく、税計算キー11b(税n計算キー11b0~11b4の何れか)に対する入力操作を検出した場合(ステップA19:Yes、A117:Yes)、すなわち、税計算キー11bのキー操作が連続する限り、CPU21は、入力操作がされた税計算キー11bに対して設定された税率0~4の何れかを、前述と同様にしてメモリ22から読み出して表示部12に表示させる(ステップA118)。 Here, if an input operation to the tax calculation key 11b (any of the tax n calculation keys 11b0 to 11b4) is subsequently detected without performing any key operation other than the tax calculation key 11b (step A19: Yes, A117: Yes), that is, as long as the key operation of the tax calculation key 11b continues, the CPU 21 sets one of the tax rates 0 to 4 set for the tax calculation key 11b for which the input operation is performed, in the same manner as described above. to read it from the memory 22 and display it on the display unit 12 (step A118).

すなわち、[AC]キー11aの入力操作の直後であれば、税計算キー11b(税n計算キー11b0~11b4)の何れかを連続して操作することで、それぞれの税計算キー11bに対して設定された税率0~4を連続的に切り替えて表示させることができる。なお、最後に[AC]キー11aを入力操作してから後、税計算キー11bの入力操作のみが2回以上連続して行われているとき、2回目以降の税計算キー11bの入力操作は、厳密には、[AC]キー11aの入力操作の直後に行われたものではないが、本明細書では、そのような入力操作も[AC]キー11aの入力操作の直後に行われたものとみなす。また、最後に[AC]キー11aを入力操作してから後、税計算キー11b以外の入力操作が一度でも行われれば、それ以降に行われる税計算キー11bの入力操作は、[AC]キー11aの入力操作の直後に行われたものではないものとみなす。 That is, immediately after the input operation of the [AC] key 11a, by continuously operating any of the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4), each tax calculation key 11b can be The set tax rates 0 to 4 can be continuously switched and displayed. After the last input operation of the [AC] key 11a, when only the input operation of the tax calculation key 11b is continuously performed two or more times, the input operation of the tax calculation key 11b after the second time is Strictly speaking, it is not performed immediately after the input operation of the [AC] key 11a, but in this specification, such an input operation is also performed immediately after the input operation of the [AC] key 11a. Consider. Further, if an input operation other than the tax calculation key 11b is performed even once after the last input operation of the [AC] key 11a, the subsequent input operation of the tax calculation key 11b is performed by pressing the [AC] key. It is assumed that it is not performed immediately after the input operation of 11a.

次に、計算の対象とする数値を入力するためにユーザにより数値キーが操作されると(ステップA10:Yes)、CPU21は、入力操作された数値キーに応じた数値(数値コード)を入力し、入力された数値を表示メモリエリア22pに記憶させるとともに、表示部12において表示させる(ステップA15)。 Next, when the user operates a numerical key to input a numerical value to be calculated (step A10: Yes), the CPU 21 inputs a numerical value (numerical code) corresponding to the numerical key operated for input. Then, the input numerical value is stored in the display memory area 22p and displayed on the display unit 12 (step A15).

続いて、演算キーが操作されると(ステップA11:Yes)、CPU21は、入力操作された演算キーに応じた演算(演算コード)を入力して、入力された演算の演算(記号)シンボルを表示部12の状態表示エリアにおいて表示させる。また、CPU21は、状態表示エリアにおけるステップ/アイテム数12aのステップ数を示す数値を更新(+1)する(ステップA119)。 Subsequently, when an operation key is operated (step A11: Yes), the CPU 21 inputs an operation (operation code) corresponding to the operated operation key, and converts an operation (symbol) symbol of the input operation. It is displayed in the state display area of the display unit 12 . Further, the CPU 21 updates (+1) the numerical value indicating the number of steps in the number of steps/items 12a in the status display area (step A119).

CPU21は、入力された演算コードと入力済みの数値コードをもとに演算を実行し(ステップA16)、演算途中の結果の数値を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる。以下、同様にして、数値コードと演算コードの入力が繰り返されることにより、CPU21は、入力された数値コードと演算コードとを順次記憶していく。そして、ユーザ操作により演算実行キー「=」(イコール)11h0が操作されると(ステップA17:Yes)、CPU21は、入力操作された演算実行キー(「=」キー)11h0に応じた演算コードを入力し、それまでに入力された数値コードと演算コードに応じた計算を実行し、計算結果の数値を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる。また、CPU21は、数値コードと演算コードに応じた通常計算の結果とする数値を合計メモリエリア22hに記憶させる(ステップA18)。合計メモリエリア22hに既に数値が記憶されている場合には、CPU21は、先に記憶された数値に通常計算の結果とする数値を加算してメモリ22に記憶させる。ユーザ操作により演算実行キー「=」(イコール)11h0が操作されていない場合(ステップA17:No)、CPU21は、入力操作の待機状態へ戻る。 The CPU 21 executes calculation based on the input operation code and the input numerical code (step A16), stores the numerical value of the result during the calculation in the display memory area 22p, and displays it on the display unit 12. Similarly, by repeating the input of the numerical code and the operational code, the CPU 21 sequentially stores the inputted numerical code and operational code. Then, when the operation execution key “=” (equal) 11h0 is operated by the user (step A17: Yes), the CPU 21 inputs the operation code corresponding to the operated operation execution key (“=” key) 11h0. Calculations are executed according to the numerical codes and operation codes that have been input so far, and the numerical values of the calculation results are stored in the display memory area 22p and displayed on the display section 12. FIG. In addition, the CPU 21 causes the total memory area 22h to store a numerical value as a result of normal calculation according to the numerical code and the operation code (step A18). When a numerical value is already stored in the total memory area 22h, the CPU 21 adds the numerical value obtained as a result of normal calculation to the previously stored numerical value and stores the result in the memory 22. FIG. If the operation execution key “=” (equal) 11h0 has not been operated by the user (step A17: No), the CPU 21 returns to the input operation waiting state.

[AC]キー11aの入力操作の直後以外に、表示部12に数値が表示された状態において、税計算キー11bの入力操作を検出した場合(ステップA19:Yes→A117:No)、CPU21は、状態表示エリアにおけるステップ/アイテム数12aのステップ数を示す数値を更新(+1)する(ステップA120)。また、CPU21は、表示部12に表示された数値(置数)、即ち、表示メモリエリア22pに記憶されている数値に対して、入力操作が行われた税n計算キー11b0~11b4の何れかに設定された税率を用いて税計算を実行する。なお、税計算の対象とする数値は、通常計算によって表示された数値に限らず、単に数値キーの入力操作により入力された数値を対象とすることができる。 Other than immediately after the input operation of the [AC] key 11a, when an input operation of the tax calculation key 11b is detected while a numerical value is displayed on the display unit 12 (step A19: Yes → A117: No), the CPU 21 The numerical value indicating the number of steps in the number of steps/items 12a in the status display area is updated (+1) (step A120). In addition, the CPU 21 selects one of the tax n calculation keys 11b0 to 11b4 that has been operated to input the numerical value (set number) displayed on the display unit 12, that is, the numerical value stored in the display memory area 22p. Perform tax calculation using the tax rate set to Numerical values to be used for tax calculation are not limited to numerical values displayed by normal calculation, and may be numerical values input simply by inputting numerical keys.

税計算キー11b(税n計算キー11b0~11b4のそれぞれ)は、税込み計算を実行するためのキーと税抜き計算を実行するためのキーを兼ねている。CPU21は、税計算キー11bが操作された場合に、税計算モードエリア22mを参照して、現在の税計算モードが、税込み計算モードと税抜き計算モードの何れであるかを判別する。ここで、現在の税計算モードが税込み計算モードである場合(ステップA110、税込み)、CPU21は、税込み計算を実行して、税計算の結果をキー操作に応じて表示させる税込み計算処理を実行する(ステップA111)。また、現在の税計算モードが税抜き計算モードである場合(ステップA110、税抜き)、CPU21は、税抜き計算を実行して、税計算の結果をキー操作に応じて表示させる税抜き計算処理を実行する(ステップA112)。 The tax calculation key 11b (each of the tax n calculation keys 11b0 to 11b4) serves both as a key for executing tax-inclusive calculation and a key for executing tax-excluded calculation. When the tax calculation key 11b is operated, the CPU 21 refers to the tax calculation mode area 22m to determine whether the current tax calculation mode is the tax-included calculation mode or the tax-excluded calculation mode. Here, if the current tax calculation mode is the tax-inclusive calculation mode (step A110, tax included), the CPU 21 executes the tax-inclusive calculation and displays the tax calculation result in accordance with the key operation. (Step A111). If the current tax calculation mode is the tax-excluded calculation mode (step A110, tax-excluded), the CPU 21 executes the tax-excluded calculation and displays the tax calculation result according to the key operation. is executed (step A112).

なお、税計算モードは、税計算モード切替キー11dの操作によって切り替えられる。CPU21は、税計算モード切替キー11dの操作を検出した場合(ステップA14:Yes)、税計算モードエリア22mを参照して、現在の税計算モードが、税込み計算モードと税抜き計算モードの何れであるかを判別する。 The tax calculation mode is switched by operating the tax calculation mode switching key 11d. When the CPU 21 detects the operation of the tax calculation mode switching key 11d (step A14: Yes), the CPU 21 refers to the tax calculation mode area 22m to determine whether the current tax calculation mode is the tax-inclusive calculation mode or the tax-excluded calculation mode. determine if there is

ここで、現在の税計算モードが税込み計算モードである場合(ステップA113、税込み)、CPU21は、税計算モードエリア22mに税抜き計算モードを示す税計算モードデータを記憶させる(ステップA114)。また、CPU21は、税抜き計算モードを示す税計算モードシンボル12b([TAX-])を、表示部12の状態表示エリアに表示させる(ステップA116)。 If the current tax calculation mode is the tax-inclusive calculation mode (step A113, tax included), the CPU 21 stores tax calculation mode data indicating the tax-excluded calculation mode in the tax calculation mode area 22m (step A114). Further, the CPU 21 displays the tax calculation mode symbol 12b ([TAX-]) indicating the tax exclusion calculation mode in the state display area of the display section 12 (step A116).

一方、現在の税計算モードが税抜き計算モードである場合(ステップA113、税抜き)、CPU21は、税計算モードエリア22mに税込み計算モードを示す税計算モードデータを記憶させる(ステップA115)。また、CPU21は、税込み計算モードを示す税計算モードシンボル12b([GST+])を、表示部12の状態表示エリアに表示させる(ステップA116)。 On the other hand, if the current tax calculation mode is the tax-excluded calculation mode (step A113, tax excluded), the CPU 21 stores tax calculation mode data indicating the tax-inclusive calculation mode in the tax calculation mode area 22m (step A115). Further, the CPU 21 displays the tax calculation mode symbol 12b ([GST+]) indicating the tax calculation mode in the state display area of the display section 12 (step A116).

CPU21は、税計算モード切替キー11dの操作に応じて税計算モードを切り替えた場合、税率別税合計メモリエリア22b~22fに記憶された計算結果(税抜合計額、税込合計額、税合計額)をそのまま維持する。従って、税込み計算と税抜き計算を混在して実行する場合に、税計算モードを切り替えたとしても、計算途中の計算結果が保持される。 When the tax calculation mode is switched according to the operation of the tax calculation mode switching key 11d, the CPU 21 changes the calculation results (total amount excluding tax, total amount including tax, total amount ) remains unchanged. Therefore, when the tax-inclusive calculation and the tax-excluded calculation are executed together, even if the tax calculation mode is switched, the calculation result in the middle of the calculation is held.

次に、本実施形態における税込み計算処理について、図5に示すフローチャートを参照しながら説明する。 Next, tax-included calculation processing in this embodiment will be described with reference to the flowchart shown in FIG.

CPU21は、税0計算キー11b0が操作された場合(ステップB1:Yes)、税0計算キー11b0に対して設定された税率0を用いた税率0計算処理を実行する(ステップB6)。同様にして、CPU21は、税1計算キー11b1が操作された場合には(ステップB2:Yes)、税率1計算処理を実行し(ステップB10)、税2計算キー11b2が操作された場合には(ステップB3:Yes)、税率2計算処理を実行し(ステップB3)、税3計算キー11b3が操作された場合には(ステップB4:Yes)、税率3計算処理を実行し(ステップB8)、税4計算キー11b4が操作された場合には(ステップB5:Yes)、税率4計算処理を実行する(ステップB9)。 When the tax 0 calculation key 11b0 is operated (step B1: Yes), the CPU 21 executes tax rate 0 calculation processing using the tax rate 0 set for the tax 0 calculation key 11b0 (step B6). Similarly, when the tax 1 calculation key 11b1 is operated (step B2: Yes), the CPU 21 executes tax rate 1 calculation processing (step B10), and when the tax 2 calculation key 11b2 is operated, (Step B3: Yes), tax rate 2 calculation processing is executed (step B3), and when the tax 3 calculation key 11b3 is operated (step B4: Yes), tax rate 3 calculation processing is executed (step B8), When the tax 4 calculation key 11b4 is operated (step B5: Yes), tax rate 4 calculation processing is executed (step B9).

税率0計算処理、税率1計算処理、税率2計算処理、税率3計算処理、税率4計算処理は、それぞれ基本的に同じ処理を実行する。ここでは、税率1計算処理について説明し、他の計算処理の詳細な説明については省略する。 The tax rate 0 calculation process, tax rate 1 calculation process, tax rate 2 calculation process, tax rate 3 calculation process, and tax rate 4 calculation process are basically the same. Here, tax rate 1 calculation processing will be described, and detailed description of other calculation processing will be omitted.

図6は、本実施形態における税込み計算処理の税率1計算処理を説明するためのフローチャートである。 FIG. 6 is a flowchart for explaining the tax rate 1 calculation process of the tax-inclusive calculation process in this embodiment.

CPU21は、税1計算キー11b1の入力操作を検出した場合(ステップB2:Yes)、税合計リコールモードがオフ状態にあるか、税合計リコールモードエリア22kを参照して判別する。税合計リコールモードは、税計算合計キー11cに対する操作によってオン状態に遷移する。税合計リコールモードのオン状態への遷移は、後述するステップA24において実行される。 When the input operation of the tax 1 calculation key 11b1 is detected (step B2: Yes), the CPU 21 refers to the total tax recall mode area 22k to determine whether the total tax recall mode is off. The total tax recall mode is turned on by operating the total tax calculation key 11c. The transition to the ON state of the total tax recall mode is executed in step A24, which will be described later.

ここで、税合計リコールモードがオフ状態である場合(ステップB20:Yes)、CPU21は、表示メモリエリア22pに記憶されている数値(置数)を読み出し、読み出した数値を税抜き額として、当該税抜き額と入力操作が行われた税計算キー11bに応じた税率である税率1(「5%」)とをもとに、税込み額及び税額を計算して、計算された税込み額及び税額と表示中の数値が示す税抜き額とを共に税率1合計メモリエリア22cに記憶させる(ステップB21)。また、CPU21は、表示メモリエリア22pに記憶されている税込み計算に用いた数値をバッファメモリエリア22nに記憶させるとともに、税率1をもとに計算した税込み額の数値を表示メモリエリア22pに記憶させる(ステップB22)。 Here, if the total tax recall mode is off (step B20: Yes), the CPU 21 reads out the numerical value (number) stored in the display memory area 22p, and uses the read numerical value as the tax-excluded amount. Based on the tax-excluded amount and the tax rate 1 ("5%") that is the tax rate corresponding to the tax calculation key 11b for which the input operation was performed, the tax-inclusive amount and the tax amount are calculated, and the calculated tax-inclusive amount and tax amount and the tax-excluded amount indicated by the displayed numerical value are stored in the tax rate 1 total memory area 22c (step B21). Further, the CPU 21 causes the buffer memory area 22n to store the numerical value used for tax-inclusive calculation stored in the display memory area 22p, and stores the numerical value of the tax-inclusive amount calculated based on the tax rate 1 in the display memory area 22p. (Step B22).

ここで、CPU21は、バッファメモリエリア22nに記憶されたデータをもとに、税計算の対象とした数値の数を記憶するためのアイテム数算出処理を実行する(ステップB23)。なお、アイテム数算出処理の詳細については後述する(図8参照)。 Here, based on the data stored in the buffer memory area 22n, the CPU 21 executes item number calculation processing for storing the number of numerical values for tax calculation (step B23). Details of the item number calculation process will be described later (see FIG. 8).

さらに、CPU21は、表示メモリエリア22pに記憶された数値をもとに、税率1をもとに計算した税込み額を表示部12に表示させる(ステップB24)。 Further, the CPU 21 causes the display unit 12 to display the tax-inclusive amount calculated based on the tax rate 1 based on the numerical values stored in the display memory area 22p (step B24).

なお、最後に[AC]キー11aを入力操作してから、ステップB22を今回実行する迄の間に、ステップB21を1回以上先だって実行していた場合には、先だって実行していた1回以上のステップB21において各計算された税抜き額又はその合計額、税込み額又はその合計額、税額又はその合計額が、ステップB21を今回実行する前に、税率1合計メモリエリア22cにすでに記憶されていることとなる。そこで、ステップB21を実行する際、税率1合計メモリエリア22cに、税抜き額又はその合計額、税込み額又はその合計額、税額又はその合計額がすでに記憶されている場合には、その記憶されている税抜き額又はその合計額、税込み額又はその合計額、税額又はその合計額のそれぞれに対し、ステップB21を今回実行した際に計算された税抜き額、税込み額、税額をそれぞれ加算する。このように、税率1合計メモリエリア22cには、最後に[AC]キー11aを入力操作した後に実行された、1回以上の全ての税率1の税込み計算(ステップB22)により得られた税抜き額、税込み額、税額の各合計額が記憶される。 It should be noted that if step B21 has been executed one or more times before the current execution of step B22 after the last input operation of the [AC] key 11a, the previously executed one or more times The tax-excluded amount or total amount, the tax-inclusive amount or total amount, and the tax amount or total amount calculated in step B21 are already stored in the tax rate 1 total memory area 22c before step B21 is executed this time. There will be Therefore, when executing step B21, if the tax rate 1 total memory area 22c already stores the tax-exclusive amount or its total amount, the tax-inclusive amount or its total amount, or the tax amount or its total amount, the stored amount is Add the tax-excluded amount, tax-included amount, and tax amount calculated when step B21 is executed this time to each of the tax-excluded amount or the total amount, the tax-included amount or the total amount, the tax amount or the tax amount, respectively. . In this way, in the tax rate 1 total memory area 22c, the tax-excluded data obtained by one or more tax-inclusive calculations of tax rate 1 (step B22) executed after the last input operation of the [AC] key 11a. Each sum of the amount, tax-included amount, and tax amount is stored.

こうして、CPU21は、複数の数値(置数)に対する税込み計算を、税1計算キー11b1に対する入力操作に応じて続けて指示することができる。 In this way, the CPU 21 can continuously instruct the tax-inclusive calculation for a plurality of numerical values (numbers) in accordance with the input operation on the tax 1 calculation key 11b1.

なお、税込み額が表示されている状態において、税計算を指示するために操作した税1計算キー11b1を続けて操作することで、税込み額、税抜き額、税額の各表示を切り替えることができる。例えば、税率1をもとに算出された税込み額が表示されている時(ステップB24)、税1計算キー11b1が操作された場合(ステップB25:Yes)、CPU21は、バッファメモリエリア22nに記憶されている数値(置数)を読み出して、税抜き額として表示させる(ステップB26)。前述の通り、このとき、即ち、税込み計算直後(ステップB22、B23を実行直後)は、税込み計算に用いられた税抜き額の数値が、バッファメモリエリア22nに記憶されている。また、税抜き額が表示されている時(ステップB26)、税1計算キー11b1が操作された場合(ステップB27:Yes)、CPU21は、バッファメモリエリア22nに記憶されている数値(税抜き額)を読み出して、読み出した数値及び税率1をもとに税額を改めて算出し、その数値を表示部12に表示させる(ステップB28)。さらに、続けて税1計算キー11b1が操作された場合(ステップB29:Yes)、CPU21は、バッファメモリエリア22nに記憶されている数値(税抜き額)を読み出して、読み出した数値及び税率1をもとに税込み額を改めて算出し、その数値を表示部12表示させる(ステップB24)。 While the tax-inclusive amount is being displayed, by continuing to operate the tax 1 calculation key 11b1 that was operated to instruct tax calculation, the display of the tax-inclusive amount, the tax-excluded amount, and the tax amount can be switched. . For example, when the tax-inclusive amount calculated based on tax rate 1 is displayed (step B24), if the tax 1 calculation key 11b1 is operated (step B25: Yes), the CPU 21 stores the amount in the buffer memory area 22n. The numerical value (number entered) is read out and displayed as the tax-excluded amount (step B26). As described above, at this time, that is, immediately after the tax-inclusive calculation (immediately after execution of steps B22 and B23), the value of the tax-excluded amount used in the tax-inclusive calculation is stored in the buffer memory area 22n. When the tax-excluded amount is displayed (step B26), if the tax 1 calculation key 11b1 is operated (step B27: Yes), the CPU 21 displays the numerical value (tax-excluded amount) stored in the buffer memory area 22n. ), the tax amount is calculated again based on the read numerical value and the tax rate 1, and the numerical value is displayed on the display unit 12 (step B28). Further, when the tax 1 calculation key 11b1 is subsequently operated (step B29: Yes), the CPU 21 reads the numerical value (amount without tax) stored in the buffer memory area 22n, and calculates the read numerical value and the tax rate 1. The tax-inclusive amount is calculated again, and the numerical value is displayed on the display unit 12 (step B24).

このようにして、電卓10は、税1計算キー11b1の操作に応じて税込み額を算出した後、税1計算キー11b1に対する操作毎に、税込み額、税抜き額、税額の各表示を、順次、切り替えて表示させることができる。よって、税込み額と税抜き額と税額とを容易に確認することができる。 In this manner, the calculator 10 calculates the tax-inclusive amount according to the operation of the tax 1 calculation key 11b1, and then sequentially displays the tax-inclusive amount, the tax-excluded amount, and the tax amount each time the tax 1 calculation key 11b1 is operated. , can be switched and displayed. Therefore, the tax-included amount, the tax-excluded amount, and the tax amount can be easily confirmed.

一方、税合計リコールモードがオン状態である場合(ステップB20:No)、CPU21は、税率1に基づく税計算結果とする合計額を表示させるための処理を実行する。まず、CPU21は、税率1に基づく税計算の対象とした数値の数、すなわち税率1に基づく税込み計算が実行された商品の数を示すアイテム数を表示させるための税率1合計アイテム数表示処理を実行する(ステップB41)。なお、税率1合計アイテム数表示処理の詳細については後述する(図9参照)。 On the other hand, if the tax total recall mode is ON (step B20: No), the CPU 21 executes processing for displaying the total amount as the tax calculation result based on tax rate 1. FIG. First, the CPU 21 performs tax rate 1 total item number display processing for displaying the number of numerical values targeted for tax calculation based on tax rate 1, that is, the number of items indicating the number of products for which tax calculation based on tax rate 1 has been executed. Execute (step B41). Details of the tax rate 1 total item number display processing will be described later (see FIG. 9).

次に、CPU21は、少なくとも1つの数値に対して税率1により計算した税込み額の合計を示す第1税込合計額を税率1合計メモリエリア22cから読み出して表示部12に表示させる(ステップB30)。なお、税合計リコールモードのオン状態への遷移については後述する。 Next, the CPU 21 reads from the tax rate 1 total memory area 22c the first tax-inclusive amount, which indicates the total of the tax-inclusive amounts calculated for at least one numerical value based on the tax rate 1, and displays it on the display unit 12 (step B30). The transition to the ON state of the total tax recall mode will be described later.

さらに、第1税込合計額が表示されている状態において、税1計算キー11b1が操作された場合(ステップB31,Yes)、CPU21は、税率1合計メモリエリア22cから第1税込合計額に対応する第1税抜合計額(税抜き額の合計)を読み出して表示させる(ステップB32)。さらに、第1税抜き額が表示された状態において、税1計算キー11b1が操作された場合(ステップB33:Yes)、CPU21は、税率1合計メモリエリア22cから第1税込合計額に対応する第1税合計額(税額の合計)を読み出して表示させる(ステップB34)。さらに、第1税合計額が表示された状態において、税1計算キー11b1が操作された場合(ステップB35:Yes)、CPU21は、税率1合計メモリエリア22cから第1税込合計額を読み出して表示させる(ステップB30)。 Further, when the tax 1 calculation key 11b1 is operated while the first tax-included total amount is displayed (step B31, Yes), the CPU 21 retrieves the first tax-included total amount from the tax rate 1 total memory area 22c. The first total amount excluding tax (total amount excluding tax) is read out and displayed (step B32). Further, when the tax 1 calculation key 11b1 is operated while the first tax-excluded amount is displayed (step B33: Yes), the CPU 21 retrieves the first tax-included total amount from the tax rate 1 total memory area 22c. 1 The total amount of tax (total amount of tax) is read out and displayed (step B34). Further, when the tax 1 calculation key 11b1 is operated while the first tax total amount is displayed (step B35: Yes), the CPU 21 reads the first tax total amount from the tax rate 1 total memory area 22c and displays it. (step B30).

すなわち、電卓10は、税合計リコールモードがオン状態では、税1計算キー11b1に対する操作毎に、税率1をもとに算出された第1税込合計額、第1税抜合計額、第1税合計額の表示に、順次、切り替えることができる。よって、複数の数値に対して税率1により税計算した後、税率1を用いた複数の税計算の計算結果として、第1税込合計額、第1税抜合計額、第1税合計額を容易に確認することができる。 That is, when the tax total recall mode is on, the calculator 10 displays the first total tax-inclusive amount, the first total tax-excluded amount, and the first total tax-inclusive amount calculated based on the tax rate 1 each time the tax 1 calculation key 11b1 is operated. It is possible to sequentially switch to the display of the total amount. Therefore, after tax calculation with tax rate 1 for multiple values, as the calculation results of multiple tax calculations using tax rate 1, the first total amount including tax, the first total amount excluding tax, and the first total tax amount can be easily calculated. can be verified.

なお、税合計リコールモードがオン状態である場合(ステップB20:No)、CPU21は、複数の税計算キー11b(11b0~11b4)の何れかが操作されたことを検出した場合(ステップB31:No、ステップB33:No、ステップB35:No)、操作された税計算キー11bに対応する計算処理に移行して(ステップB36~B39)、前述したステップB41,B30~B35と同様の処理を実行する。 When the tax total recall mode is on (step B20: No), the CPU 21 detects that any one of the plurality of tax calculation keys 11b (11b0 to 11b4) has been operated (step B31: No). , step B33: No, step B35: No), shift to calculation processing corresponding to the operated tax calculation key 11b (steps B36 to B39), and execute processing similar to steps B41 and B30 to B35 described above. .

例えば、第1税込合計額、第1税抜合計額、第1税合計額の何れかが表示された状態において、税0計算キー11b0が操作されたことを検出した場合(ステップB31:No、ステップB33:No、ステップB35:No→ステップB36:Yes)、CPU21は、税率0計算処理に移行する(ステップB6)。この場合、税合計リコールモードがオン状態であるので、前述のステップB30同様、CPU21は、税率0合計アイテム数表示処理を実行して、税率0に基づく税計算の対象とした数値の数(アイテム数)を表示させるとともに、税率0合計メモリエリア22bから第0税込合計額(税率0の税込み額の合計)を読み出して表示させる。また、第0税込合計額が表示された状態において、税0計算キー11b1が操作された場合、前述のステップB32同様、CPU21は、税率1合計メモリエリア22cから第0税抜合計額(税率0の税抜き額の合計)を読み出して表示させる。さらに、第0税抜合計額が表示された状態において、税0計算キー11b0が操作された場合、前述のステップB34同様、CPU21は、税率0合計メモリエリア22bから第0税合計額(税率0の税額の合計)を読み出して表示させる。 For example, when it is detected that the tax 0 calculation key 11b0 has been operated in a state in which any one of the first total amount including tax, the first total amount excluding tax, and the first total amount including tax is displayed (step B31: No, Step B33: No, step B35: No→step B36: Yes), the CPU 21 shifts to tax rate 0 calculation processing (step B6). In this case, since the tax total recall mode is on, the CPU 21 executes the tax rate 0 total item number display process to display the number of items (items number) is displayed, and the 0th tax-included total amount (total of tax-included amounts with a tax rate of 0) is read from the 0-tax rate total memory area 22b and displayed. When the tax 0 calculation key 11b1 is operated while the 0th tax-included total amount is displayed, the CPU 21 reads the 0th tax-included total amount (tax rate 0) from the tax rate 1 total memory area 22c as in step B32 described above. (total amount excluding tax) is read out and displayed. Further, when the tax 0 calculation key 11b0 is operated while the 0th tax total amount is displayed, the CPU 21 reads the 0th tax total amount (tax rate 0) from the 0th tax total amount (tax rate 0 (total of the tax amount of tax) is read out and displayed.

同様にして、税2計算キー11b2が操作されたことを検出した場合(ステップB37:Yes)、CPU21は、税率2計算処理に移行して(ステップB7)、前述と同様の処理を実行する。また、CPU21は、税3計算キー11b3が操作されたことを検出した場合には(ステップB38:Yes)、税率3計算処理に移行し(ステップB8)、税4計算キー11b4が操作されたことを検出した場合には(ステップB27:Yes)、税率4計算処理に移行し(ステップB9)、それぞれ前述と同様の処理を実行する。なお、税計算合計キー11cが操作されたことを検出した場合(ステップB40:Yes)、CPU21は、各税率で計算した税込合計額、税抜合計額、税合計額の合計額を表示する処理に移行する(後述するステップA29~A214の処理)。また、税計算合計キー11cが操作されたことを検出しなかった場合(ステップB40:No)、CPU21は、入力操作の待機状態へ戻る。なお、税率0計算処理、税率2計算処理、税率3計算処理、及び、税率4計算処理において、税1計算キー11b1の操作が検出されると、図5に示すように、税率1計算処理に移行する(ステップB10)。 Similarly, when it is detected that the tax 2 calculation key 11b2 has been operated (step B37: Yes), the CPU 21 shifts to tax rate 2 calculation processing (step B7) and executes the same processing as described above. When the CPU 21 detects that the tax 3 calculation key 11b3 has been operated (step B38: Yes), the CPU 21 shifts to tax rate 3 calculation processing (step B8), and detects that the tax 4 calculation key 11b4 has been operated. is detected (step B27: Yes), the process proceeds to tax rate 4 calculation processing (step B9), and the same processing as described above is executed. When it is detected that the tax calculation total key 11c has been operated (step B40: Yes), the CPU 21 performs processing for displaying the total amount including tax, the total amount excluding tax, and the total amount of tax calculated at each tax rate. (processing of steps A29 to A214 to be described later). If it is not detected that the tax calculation total key 11c has been operated (step B40: No), the CPU 21 returns to the input operation waiting state. In the tax rate 0 calculation process, the tax rate 2 calculation process, the tax rate 3 calculation process, and the tax rate 4 calculation process, when the operation of the tax 1 calculation key 11b1 is detected, the tax rate 1 calculation process is executed as shown in FIG. Move (step B10).

税率0~税率4の各計算処理では、税合計リコールモードがオン状態である間、それぞれ他の税率に対応する税計算キー11bが操作されることで、操作された税計算キー11bに対応する他の計算処理に移行して、他の計算処理に対応する税率をもとに計算された税込合計額、税抜合計額、税合計額を表示させることができる。 In each calculation process of tax rate 0 to tax rate 4, while the tax total recall mode is on, by operating the tax calculation key 11b corresponding to each other tax rate, the tax calculation key 11b corresponding to the operated tax rate is activated. By shifting to another calculation process, the total amount including tax, the total amount excluding tax, and the total amount including tax calculated based on the tax rate corresponding to the other calculation process can be displayed.

従って、税合計リコールモードがオン状態にある場合には、複数の税計算キー11b(11b0~11b4)の何れかを選択することで、操作された税計算キー11bに対応する税率により計算された、税込合計額、税抜合計額、税合計額を容易に確認することができる。また、操作された税計算キー11bに応じて、税率n合計アイテム数表示処理(ステップB41)が実行され、それぞれの税率nを適用した税計算において対象となった数値の数、すなわち購入対象とする商品の数(アイテム数)が表示される。これにより、税率別の税計算結果として表示される税込合計額、税抜合計額、税合計額と合わせて、税計算の対象とした商品の数(アイテム数)を確認することができる。 Therefore, when the tax total recall mode is in the ON state, by selecting one of the plurality of tax calculation keys 11b (11b0 to 11b4), the tax rate corresponding to the operated tax calculation key 11b can be calculated. , the total amount including tax, the total amount excluding tax, and the total amount including tax can be easily confirmed. In addition, according to the operated tax calculation key 11b, the tax rate n total number of items display processing (step B41) is executed, and the number of numerical values targeted in the tax calculation applying each tax rate n, that is, the number of items to be purchased. The number of products (number of items) to be displayed is displayed. This allows you to check the number of products (number of items) for tax calculation, together with the tax-included total amount, tax-excluded total amount, and tax total amount displayed as tax calculation results for each tax rate.

次に、本実施形態における税抜き計算処理について、図7に示すフローチャートを参照しながら説明する。ここでは、税1計算キー11b1が操作された場合について説明する。税0計算キー11b0、税2計算キー11b2、税3計算キー11b3、及び税4計算キー11b4が操作された場合については、税1計算キー11b1が操作された場合と同様の処理が実行されるものとして詳細な説明を省略する。 Next, tax-excluded calculation processing in this embodiment will be described with reference to the flowchart shown in FIG. Here, a case where the tax 1 calculation key 11b1 is operated will be described. When the tax 0 calculation key 11b0, tax 2 calculation key 11b2, tax 3 calculation key 11b3, and tax 4 calculation key 11b4 are operated, the same processing as when the tax 1 calculation key 11b1 is operated is executed. detailed description is omitted.

CPU21は、税1計算キー11b1が操作されたことを検出した場合、CPU21は、表示メモリエリア22pに記憶されている数値(置数)を読み出し、読み出した数値を税込み額として、当該税込み額と入力操作が行われた税計算キー11bに応じた税率である税率1(「5%」)とをもとに、税抜き額を計算する(ステップC1)。また、CPU21は、表示メモリエリア22pに記憶されている税抜き計算に用いた数値をバッファメモリエリア22nに記憶させるとともに、税率1をもとに計算した税抜き額の数値を表示メモリエリア22pに記憶させる(ステップC2)。 When the CPU 21 detects that the tax 1 calculation key 11b1 has been operated, the CPU 21 reads out the numerical value (number) stored in the display memory area 22p and uses the read numerical value as the tax-inclusive amount. Based on the tax rate 1 ("5%") corresponding to the tax calculation key 11b operated for input, the tax-excluded amount is calculated (step C1). In addition, the CPU 21 causes the buffer memory area 22n to store the numerical value used for the tax-exclusive calculation stored in the display memory area 22p, and stores the numerical value of the tax-excluded amount calculated based on the tax rate 1 in the display memory area 22p. Store (step C2).

なお、本実施形態における電卓10において、税抜き計算は、例えば何れかの消費税を適用した税込み額をもとに税抜額を計算して、この税抜額に対して改めて別の消費税を適用して税込み計算をするために用いられる。すなわち、改めて別の消費税を適用して税込み計算をする際に、前述したように、税込み計算処理におけるアイテム数算出処理によって税計算の対象とした商品の数(アイテム数)が算出される。従って、税抜き計算処理では、アイテム数算出処理を実行しない。 In the calculator 10 according to the present embodiment, the tax-excluded amount is calculated, for example, based on the tax-inclusive amount to which any consumption tax is applied, and another consumption tax is applied to this tax-excluded amount. It is used for tax-inclusive calculations. That is, when another consumption tax is applied and tax-inclusive calculation is performed, the number of products (number of items) targeted for tax calculation is calculated by the item count calculation processing in the tax-inclusive calculation processing, as described above. Therefore, in the tax-excluded calculation process, the item number calculation process is not executed.

さらに、CPU21は、表示メモリエリア22pに記憶された数値をもとに、税率1をもとに計算した税抜き額を表示部12に表示させる(ステップC3)。 Further, the CPU 21 causes the display unit 12 to display the tax-excluded amount calculated based on the tax rate 1 based on the numerical value stored in the display memory area 22p (step C3).

なお、税抜き額が表示されている状態において、税計算を指示するために操作した税1計算キー11b1を続けて操作することで、税抜き額、税額の各表示を切り替えることができる。例えば、税率1をもとに算出された税抜き額が表示されている時(ステップC3)、税1計算キー11b1が操作された場合(ステップC4:Yes)、CPU21は、バッファメモリエリア22nに記憶されている数値(税込み額)を読み出して、読み出した数値及び税率1をもとに税額を改めて算出し、その数値を表示部12に表示させる(ステップC5)。さらに、続けて税1計算キー11b1が操作された場合(ステップC6:Yes)、CPU21は、バッファメモリエリア22nに記憶されている数値(税抜き額)を読み出して、読み出した数値を表示部12表示させる(ステップC3)。 By continuously operating the tax 1 calculation key 11b1, which has been operated to instruct tax calculation, while the tax-excluded amount is being displayed, the display of the tax-excluded amount and the tax amount can be switched. For example, when the tax-excluded amount calculated based on tax rate 1 is displayed (step C3), if the tax 1 calculation key 11b1 is operated (step C4: Yes), the CPU 21 stores The stored numerical value (amount including tax) is read, the tax amount is calculated again based on the read numerical value and the tax rate 1, and the calculated numerical value is displayed on the display unit 12 (step C5). Further, when the tax 1 calculation key 11b1 is subsequently operated (step C6: Yes), the CPU 21 reads out the numerical value (tax-excluded amount) stored in the buffer memory area 22n, and displays the read numerical value on the display section 12. display (step C3).

このようにして、電卓10は、税1計算キー11b1の操作に応じて税抜き額を算出した後、税1計算キー11b1に対する操作毎に、税抜き額、税額の各表示を交互に切り替えて表示させることができる。よって、税抜き額と税額とを容易に確認することができる。 In this way, the calculator 10 calculates the tax-excluded amount according to the operation of the tax 1 calculation key 11b1, and then alternately switches between the display of the tax-excluded amount and the tax amount each time the tax 1 calculation key 11b1 is operated. can be displayed. Therefore, it is possible to easily confirm the tax-excluded amount and the tax amount.

なお、税抜き計算処理においては、税1計算キー11b1に対する操作を行っても、税込み額は表示されない。また、税込み計算処理では、税計算キー11bに対する操作に応じて計算した計算結果を税率1合計メモリエリア22cに反映(加算)させるが、税抜き計算処理では、計算結果を税率1合計メモリエリア22cに反映させない。 In the tax-excluded calculation process, even if the tax 1 calculation key 11b1 is operated, the tax-included amount is not displayed. In addition, in the tax-inclusive calculation process, the calculation result calculated according to the operation of the tax calculation key 11b is reflected (added) to the tax rate 1 total memory area 22c. not reflected in

一方、ステップC3において、税抜き計算によって算出された数値(税抜き額)は、それを置数として、別の税率を用いた税込み計算や通常計算を続けて実行とすることができる。 On the other hand, in step C3, the numerical value calculated by tax-excluded calculation (tax-excluded amount) can be used as a set number, and tax-inclusive calculation using another tax rate or normal calculation can be continuously executed.

例えば、インドの様な複数の消費税率を使用する市場では、MRP(Maximum Retail Priceの略で小売価格=税込み額)で表記されている。従って、税込み額をもとにして別の税率を用いた税込み計算をする場合には、税込み額を税抜き額に戻した後に、改めて別の税率に応じた税込み計算を実行して、税抜き額、税込み額、税額を求める必要がある。 For example, in a market such as India that uses multiple consumption tax rates, it is expressed as MRP (abbreviation for Maximum Retail Price, retail price = amount including tax). Therefore, when calculating the tax-inclusive amount using a different tax rate based on the tax-inclusive amount, after returning the tax-inclusive amount to the tax-excluded amount, execute the tax-inclusive calculation again according to the different tax rate, It is necessary to find the amount, the amount including tax, and the amount of tax.

本実施形態における電卓10では、複数の数値に対して税込み計算(税抜合計額、税込合計額、税合計額)を実行している途中で、前述したように税抜き計算が必要な場合に、税計算モードを税込み計算モードから税抜き計算モードに切り替えたとしても、各税率0~4に対応する税率別税合計メモリエリア22b~22fのデータ(計算途中までの計算結果)が破棄(クリア)されない。従って、電卓10は、税込み計算と税抜き計算を混在して実行する場合であっても、必要に応じて税計算モードを切り替えて実行できるので、効率的に税計算をすることができる。 In the calculator 10 according to the present embodiment, when a tax-excluded calculation is required as described above while performing tax-inclusive calculations (total amount without tax, total amount including tax, total amount with tax) for a plurality of numerical values, , even if the tax calculation mode is switched from the tax-inclusive calculation mode to the tax-excluded calculation mode, the data in the tax rate total memory areas 22b to 22f corresponding to each tax rate 0 to 4 (calculation results up to the middle of the calculation) are discarded (cleared). ) is not done. Therefore, the calculator 10 can perform tax calculation by switching the tax calculation mode as necessary even when the tax-inclusive calculation and the tax-excluded calculation are executed together, so that the tax calculation can be performed efficiently.

次に、本実施形態における税計算合計キー([GST GT(GT)])11cに対する入力操作に応じた処理について、図4に示すフローチャートを参照しながら説明する。 Next, the processing according to the input operation on the tax calculation total key ([GST GT (GT)]) 11c in this embodiment will be described with reference to the flowchart shown in FIG.

税計算合計キー11cは、通常計算(基本計算)について総合計を表示させるためのグランドトータルキー([GT]キー)と、税計算の計算結果について総合計を表示させるためのGSTグランドトータルキー([GST GT]キー)を兼ねている。 The tax calculation total key 11c includes a grand total key ([GT] key) for displaying the total sum of normal calculation (basic calculation) and a GST grand total key ([GT] key) for displaying the total sum of tax calculation results. [GST GT] key).

CPU21は、税計算合計キー11cの操作を検出した場合(ステップA21:Yes)、税計算合計キー11cが押下された直前の操作が税計算であるかを判別する。すなわち、CPU21は、税計算キー11bの操作に応じて税計算した直後に税計算合計キー11cが操作されたか、言い換えると、税計算キー11bの操作に続けて税計算合計キー11cが操作されたかを判別する。 When the operation of the tax calculation total key 11c is detected (step A21: Yes), the CPU 21 determines whether the operation immediately before the tax calculation total key 11c is pressed is tax calculation. That is, the CPU 21 determines whether the tax calculation total key 11c has been operated immediately after tax calculation in response to the operation of the tax calculation key 11b, or in other words, whether the tax calculation total key 11c has been operated following the operation of the tax calculation key 11b. determine.

ここで、税計算直後に税計算合計キー11cが操作されたと判別された場合(ステップA22:Yes)、CPU21は、税合計リコールモードエリア22kに記憶された税合計リコールモードをオンする(ステップA24)。すなわち、税計算直後に操作される税計算合計キー11cは、税計算の計算結果について総合計を表示させるためのGSTグランドトータルキー([GST GT]キー)として使用される。 Here, if it is determined that the tax calculation total key 11c has been operated immediately after tax calculation (step A22: Yes), the CPU 21 turns on the tax total recall mode stored in the tax total recall mode area 22k (step A24). ). That is, the tax calculation total key 11c operated immediately after tax calculation is used as a GST grand total key ([GST GT] key) for displaying the total of the tax calculation results.

また、CPU21は、全ての税率0~4に基づく税計算の対象とした数値の数、すなわち税率0~4に基づく税計算が実行された商品の数を示すアイテム数を表示させるための総合計アイテム数表示処理を実行する(ステップA25)。なお、総合計アイテム数表示処理の詳細については後述する(図10参照)。 In addition, the CPU 21 displays the total number of items for which the tax calculation based on the tax rates 0 to 4 has been performed, that is, the number of items for which the tax calculation based on the tax rates 0 to 4 has been performed. An item number display process is executed (step A25). Details of the total number of items display processing will be described later (see FIG. 10).

この場合、CPU21は、税率別税合計メモリエリア22b~22fに記憶された各税率0~4をもとに算出された税込み額、税抜合計額、税合計額をもとに、それぞれを合計した税込総合計額、税抜総合計額、税総合計額を算出して税合計メモリエリア22gに記憶させる。また、CPU21は、算出した税込総合計額を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる(ステップA29)。 In this case, the CPU 21 sums the tax-inclusive amount, the tax-excluded total amount, and the tax total amount calculated based on the tax rates 0 to 4 stored in the tax rate-by-tax total memory areas 22b to 22f. The tax-included total amount, the tax-excluded total amount, and the total tax amount are calculated and stored in the tax total memory area 22g. Further, the CPU 21 stores the calculated total tax-inclusive amount in the display memory area 22p and displays it on the display unit 12 (step A29).

税込総合計額が表示されている時(ステップA29)、税計算合計キー11cが操作された場合(ステップA210:Yes)、CPU21は、税合計メモリエリア22gから税抜総合計額を読み出して、表示メモリエリア22pに記憶させるとともに、税込総合計額に代えて表示部12に表示させる(ステップA211)。 When the total amount including tax is displayed (step A29), if the tax calculation total key 11c is operated (step A210: Yes), the CPU 21 reads the total amount excluding tax from the total tax memory area 22g, It is stored in the display memory area 22p and displayed on the display section 12 in place of the total amount including tax (step A211).

さらに、税抜総合計額が表示されている時(ステップA211)、税計算合計キー11cが操作された場合(ステップA212,Yes)、CPU21は、税合計メモリエリア22gから税総合計額を読み出して、表示メモリエリア22pに記憶させるとともに、税抜総合計額に代えて表示部12に表示させる(ステップA213)。 Further, when the tax total amount is displayed (step A211) and the tax calculation total key 11c is operated (step A212, Yes), the CPU 21 reads out the tax total amount from the tax total memory area 22g. are stored in the display memory area 22p and displayed on the display unit 12 in place of the tax-excluded total amount (step A213).

さらに、税総合計額が表示されている時(ステップA213)、税計算合計キー11cが操作された場合(ステップA214:Yes)、CPU21は、税合計メモリエリア22gから税込総合計額を読み出して、表示メモリエリア22pに記憶させるとともに、税総合計額に代えて表示部12に表示させる(ステップA29)。 Further, when the total tax amount is displayed (step A213), if the tax calculation total key 11c is operated (step A214: Yes), the CPU 21 reads out the total tax amount from the total tax memory area 22g. , is stored in the display memory area 22p and displayed on the display unit 12 in place of the total tax amount (step A29).

すなわち、本実施形態における電卓10は、税計算合計キー11cの操作に応じて税込総合計額を算出し、税計算合計キー11cに対する操作毎に、税込総合計額、税込総合計額に対応する税抜総合計額、税込総合計額に対応する税総合計額に、順次、表示を切り替えることができる。よって、税込総合計額、税抜総合計額、税総合計額を容易に確認することができる。また、全ての税率0~4を適用した税込み計算において対象となった数値の数、すなわち購入対象とする全ての商品の数(アイテム数)が表示される。これにより、税計算結果として表示される税込総合計額、税抜総合計額、税総合計額と合わせて、税込み計算の対象とした全ての商品の数(アイテム数)を確認することができる。 That is, the calculator 10 according to the present embodiment calculates the total tax-included total amount in response to the operation of the tax calculation total key 11c, and corresponds to the total tax-included total amount and the total tax-included total amount for each operation of the tax calculation total key 11c. The display can be sequentially switched to the total tax amount corresponding to the tax-excluded total amount and the tax-included total amount. Therefore, the total tax-inclusive amount, the tax-excluded total amount, and the tax total amount can be easily confirmed. In addition, the number of numerical values used in the tax-inclusive calculation applying all the tax rates 0 to 4, that is, the number of all products (number of items) to be purchased is displayed. By doing this, you can check the total number of products (number of items) included in the tax-inclusive calculation, together with the tax-inclusive total amount, tax-excluded total amount, and tax-inclusive total amount displayed as tax calculation results. .

一方、CPU21は、税計算合計キー11cが押下された直前の操作が税計算でない、すなわち通常計算した直後に税計算合計キー11cが操作されたと判別した場合(ステップA22:No)、合計メモリエリア22hに記憶された通常計算の結果とする数値を読み出して、表示メモリエリア22pに記憶させるとともに、表示部12において表示させる(ステップA27)。すなわち、通常計算の直後に操作される税計算合計キー11cは、通常計算により計算された総合計を表示させるためのグランドトータルキー([GT]キー)として使用される。 On the other hand, when the CPU 21 determines that the operation immediately before the tax calculation total key 11c is pressed is not tax calculation, that is, the tax calculation total key 11c is operated immediately after normal calculation (step A22: No), the total memory area A numerical value as a result of the normal calculation stored in 22h is read out, stored in the display memory area 22p, and displayed on the display unit 12 (step A27). That is, the tax calculation total key 11c operated immediately after the normal calculation is used as a grand total key ([GT] key) for displaying the total calculated by the normal calculation.

こうして、本実施形態における電卓10では、限られた面積の筐体正面において1つの税計算合計キー11cを設け、グランドトータルキー([GT]キー)と、GSTグランドトータルキー([GST GT]キー)として兼用する。税計算合計キー11cは、直前の状態(税計算直後、通常計算直後)に応じて機能が切り替えられるため、税計算の総合計(税込総合計額、税抜総合計額、税合計額)と通常計算の総合計とを容易に表示させることができる。 Thus, in the calculator 10 of this embodiment, one tax calculation total key 11c is provided on the front of the housing with a limited area, and the grand total key ([GT] key) and the GST grand total key ([GST GT] key) are provided. ). Since the function of the tax calculation total key 11c is switched according to the immediately preceding state (immediately after tax calculation, immediately after normal The grand total of normal calculations can be easily displayed.

次に、本実施形態におけるアイテム数算出処理について、図8に示すフローチャートを参照しながら説明する。アイテム数算出処理は、税込み計算の対象とした数値の数を記憶するための処理である。 Next, the item number calculation process in this embodiment will be described with reference to the flowchart shown in FIG. The number-of-items calculation process is a process for storing the number of numerical values targeted for tax-inclusive calculation.

まず、CPU21は、今回アイテム数エリア22tにアイテム数を示す数値「1」を記憶させる。すなわち、税込み計算では、少なくとも1つの数値が対象となるため、今回アイテム数として初期値「1」を記憶させる。 First, the CPU 21 stores a numerical value "1" indicating the number of items in the current item number area 22t. That is, since tax-inclusive calculation is performed for at least one numerical value, the initial value "1" is stored as the number of items this time.

次に、CPU21は、バッファメモリエリア22nを参照して、1組目に記憶された数値コードと演算コードの組において、二項演算コードが記憶されているか判別する。二項演算コードは、[+](加算)キー11h1、[-](減算)キー11h2、[×](乗算)キー11h3、あるいは[÷](除算)キー11h4の操作によって入力される演算コードに相当する。 Next, the CPU 21 refers to the buffer memory area 22n and determines whether a binary operation code is stored in the set of the numeric code and the operation code stored in the first set. The binary operation code is an operation code input by operating the [+] (addition) key 11h1, [-] (subtraction) key 11h2, [x] (multiplication) key 11h3, or [÷] (division) key 11h4. corresponds to

ここで、二項演算コードが記憶されていない場合(ステップD2:No)、CPU21は、税計算の対象とする数値が四則計算によって置数されていないものと判別して、今回アイテム数エリア22tに記憶された数値「1」を税計算の対象とした数値としてアイテム数保存エリア22sに記憶する(ステップD5)。CPU21は、アイテム数保存エリア22sにおいて、先に実行された税込み計算によって既に数値が記憶されている場合には、今回アイテム数エリア22tに記憶された数値を、アイテム数保存エリア22sに既に記憶されている数値に加算する。すなわち、アイテム数保存エリア22sには、税込み計算が実行される毎に、税込み計算の対象とする数値の数が順次加算されていく。 Here, if the binary operation code is not stored (step D2: No), the CPU 21 determines that the numerical value to be used for tax calculation is not entered by the four arithmetic calculations, and is stored in the number-of-items storage area 22s as a number for tax calculation (step D5). If the number of items stored in the item number storage area 22s is already stored in the item number storage area 22s, the CPU 21 stores the number stored in the item number area 22t this time in the item number storage area 22s. Add to the number in the That is, each time the tax-inclusive calculation is executed, the number of numerical values to be included in the tax-inclusive calculation is sequentially added to the item number storage area 22s.

なお、CPU21は、バッファメモリエリア22nの2組目に記憶された、数値コードと税計算キーに対応するファンクションコードの組を参照して、税n計算キー11b0~11b4の何れが操作されることにより税計算の実行が指示されたかを判別し、操作されたキーと対応づけてアイテム数保存エリア22sに数値を記憶(加算)する。 Note that the CPU 21 refers to the set of the numerical code and the function code corresponding to the tax calculation key stored in the second set of the buffer memory area 22n to determine which of the tax n calculation keys 11b0 to 11b4 is operated. determines whether execution of tax calculation is instructed by , and stores (adds) a numerical value in the item number storage area 22s in association with the operated key.

図11は、本実施形態におけるアイテム数保存エリア22sに記憶されるデータの一例を示す図である。図11に示すように、アイテム数保存エリア22sには、税計算キー11b(税n計算キー11b0~11b4)のそれぞれに対応づけて、アイテム数を示す数値が個別に記憶される。 FIG. 11 is a diagram showing an example of data stored in the item number saving area 22s in this embodiment. As shown in FIG. 11, in the item number storage area 22s, numerical values indicating the number of items are individually stored in association with the respective tax calculation keys 11b (tax n calculation keys 11b0 to 11b4).

従って、例えば税1計算キー11b1の操作により税計算を実行した場合には、CPU21は、税1計算キー11b1([GST+1(TAX-1)])と対応づけて、バッファメモリエリア22nに数値を記憶させる。 Therefore, for example, when tax calculation is executed by operating the tax 1 calculation key 11b1, the CPU 21 stores a numerical value in the buffer memory area 22n in association with the tax 1 calculation key 11b1 ([GST+1 (TAX-1)]). Memorize.

一方、二項演算コードが記憶されている場合(ステップD2:Yes)、CPU21は、二項演算コードが乗算コードであるかを判別する。乗算コードではない場合(ステップD3:No)、CPU21は、税計算の実行前に、乗算以外の四則計算が実行されたものと判別して、前述と同様にして、今回アイテム数エリア22tに記憶された数値「1」を税計算の対象とした数値としてアイテム数保存エリア22sに記憶(加算)する(ステップD5)。 On the other hand, if a binary operation code is stored (step D2: Yes), the CPU 21 determines whether the binary operation code is a multiplication code. If the code is not a multiplication code (step D3: No), the CPU 21 determines that the four arithmetic calculations other than multiplication have been executed before executing the tax calculation, and stores it in the current item number area 22t in the same manner as described above. The calculated value "1" is stored (added) in the item number storage area 22s as a value for tax calculation (step D5).

CPU21は、二項演算コードが乗算コードであると判別された場合(ステップD3:Yes)、バッファメモリエリア22nに記憶された乗算対象とする数値データが示す数値を、今回アイテム数エリア22tに記憶させる。例えば、同じ商品を複数個購入する際の税込み計算において、「個数」「×」「価格」の順番で入力する設定がされている場合、CPU21は、バッファメモリエリア22nの1組目に乗算コードとの組として記憶された数値データ、すなわち乗算コードの前に入力された数値を、税計算の対象とする数値の数として、今回アイテム数エリア22tに記憶させる。 When the binary operation code is determined to be a multiplication code (step D3: Yes), the CPU 21 stores the numerical value indicated by the numerical data to be multiplied stored in the buffer memory area 22n in the current item number area 22t. Let For example, in the tax-inclusive calculation when purchasing multiple items of the same product, if the order of "quantity", "x" and "price" is set, the CPU 21 stores the multiplication code in the first group of the buffer memory area 22n. , that is, the numerical value input before the multiplication code is stored in the current item number area 22t as the number of numerical values to be tax-calculated.

従って、150円の商品が3個購入されるため、「3」「×」「150」の順番で入力された場合には、CPU21は、数値「3」を今回アイテム数エリア22tに記憶させる。 Therefore, since three items of 150 yen are purchased, when "3", "x" and "150" are input in order, the CPU 21 stores the numerical value "3" in the current item number area 22t.

なお、「価格」「×」「個数」の順番で入力する設定がされている場合、CPU21は、バッファメモリエリア22nの2組目に税計算のファンクションコードとの組として記憶された数値データ、すなわち乗算コードの後に入力された数値を、税計算の対象とする数値の数として、今回アイテム数エリア22tに記憶させる。 In addition, when the setting is made to input in the order of "price", "x", and "quantity", the CPU 21 stores the numerical data, which is stored in the second group of the buffer memory area 22n as a group with the tax calculation function code, That is, the numerical value input after the multiplication code is stored in the current item number area 22t as the number of numerical values to be tax-calculated.

CPU21は、今回アイテム数エリア22tに記憶された数値を、前述と同様にして、税込み計算の対象とした数値としてアイテム数保存エリア22sに記憶(加算)する(ステップD5)。 The CPU 21 stores (adds) the numerical value stored in the item number area 22t this time in the item number storage area 22s as the numerical value to be included in the tax calculation in the same manner as described above (step D5).

このようにして、アイテム数算出処理では、乗算計算によって税込み計算の対象とする数値が入力されている場合であっても、商品の個数を示す数値(アイテム数)をアイテム数保存エリア22sに記憶させることができる。 In this manner, in the item count calculation process, even when a numerical value to be included in tax calculation is input by multiplication, a numerical value (item count) indicating the number of products is stored in the item count storage area 22s. can be made

次に、本実施形態における税率1アイテム数表示処理について、図9に示すフローチャートを参照しながら説明する。 Next, the tax rate 1 item number display processing in this embodiment will be described with reference to the flowchart shown in FIG.

CPU21は、税合計リコールモードがオン状態にあり、税率1に基づく税計算結果を表示する際に(図6、ステップB20:No)、アイテム数保存エリア22sを参照して税率1(税1計算キー11b1)に対応するアイテム数を読み出す(ステップE1)。すなわち、税率1に基づく税込み計算の対象とした数値の数を読み出す。 When the tax total recall mode is on and the tax calculation result based on the tax rate 1 is displayed (FIG. 6, step B20: No), the CPU 21 refers to the item count storage area 22s to display the tax rate 1 (tax 1 calculation The number of items corresponding to the key 11b1) is read out (step E1). That is, the number of numerical values targeted for tax-inclusive calculation based on tax rate 1 is read.

CPU21は、アイテム数保存エリア22sから読み出した数値を、ステップ/アイテム数12aにおいてアイテム数として表示させる(ステップE2)。ここで、CPU21は、ステップ数として表示されていた数値に代えて、同じ表示位置にアイテム数を示す数値を表示させる。本実施形態の電卓10では、表示部12の状態表示エリアに設けられたステップ/アイテム数12aの表示エリアにおいて、ステップ数とアイテム数を切り替えて表示する。従って、特別な表示エリアを設けることなく、限られた範囲の状態表示エリアを有効に利用して、通常計算あるいは税計算時と、税計算結果の表示時の何れかの状況に応じた有効な情報を適切に提供することができる。また、税計算結果を表示する際に、特別なキー操作等をすることなく、ステップ数からアイテム数に自動的に表示が切り替えられるため、操作性の低下を招くこともない。 The CPU 21 displays the numerical value read from the item number storage area 22s as the item number in the step/item number 12a (step E2). Here, the CPU 21 displays a numerical value indicating the number of items at the same display position instead of the numerical value displayed as the number of steps. In the calculator 10 of the present embodiment, in the display area of the number of steps/items 12a provided in the state display area of the display unit 12, the number of steps and the number of items are displayed by switching. Therefore, without providing a special display area, a limited range of status display areas can be effectively used to provide an effective display according to either the normal calculation or tax calculation or the display of the tax calculation results. Able to provide information appropriately. In addition, when displaying the tax calculation result, the display can be automatically switched from the number of steps to the number of items without any special key operation, so that the operability is not deteriorated.

また、CPU21は、表示部12の状態表示エリアにおいて、ステップ/アイテム数12aの表示がアイテム数を表すことを示すアイテムシンボル「ITEM」12gを表示させる(ステップE3)。これにより、ステップ/アイテム数12aに表示された数値がアイテム数、すなわち購入される商品の数を表すことを明確に認識させることができる。 Further, the CPU 21 displays the item symbol "ITEM" 12g indicating that the display of the number of steps/items 12a indicates the number of items in the state display area of the display section 12 (step E3). This makes it possible to clearly recognize that the numerical value displayed in the step/item number 12a represents the number of items, that is, the number of products to be purchased.

なお、税率1アイテム数表示処理について説明しているが、税率0、税率2~4の各計算処理において、前述と同様に税率nアイテム数表示処理を実行するものとして、詳細な説明を省略する。 Although the tax rate 1 item number display process has been described, it is assumed that the tax rate n item number display process is executed in each of the tax rate 0 and tax rate 2 to 4 calculation processes in the same manner as described above, and detailed description will be omitted. .

次に、本実施形態における総合計アイテム数表示処理について、図10に示すフローチャートを参照しながら説明する。 Next, the processing for displaying the total number of items in this embodiment will be described with reference to the flowchart shown in FIG.

CPU21は、税合計リコールモードをオン状態にして、各税率0~4をもとに算出された税込み計算結果(総合計)を表示する際に(図4、ステップA24)、アイテム数保存エリア22sを参照して税率0~4(税n計算キー11b0~11b4)のそれぞれに対応するアイテム数を読み出し、全てのアイテム数の合計値を算出する(ステップF1)。すなわち、全ての税率0~4に基づく税計算の対象とした全ての数値の数を求める。 When the CPU 21 turns on the tax total recall mode and displays the tax-inclusive calculation result (total total) calculated based on each tax rate 0 to 4 (FIG. 4, step A24), the item count storage area 22s to read out the number of items corresponding to each of the tax rates 0 to 4 (tax n calculation keys 11b0 to 11b4), and calculate the total value of all the item numbers (step F1). That is, the number of all numerical values used for tax calculation based on all tax rates 0 to 4 is obtained.

CPU21は、全ての税率0~4に基づく税込み計算の対象とした全ての数値の数を、ステップ/アイテム数12aにおいてアイテム数として表示させる(ステップF2)。また、CPU21は、アイテムシンボル「ITEM」12gを、表示部12の状態エリアに表示させる(ステップF3)。なお、アイテム数の表示とアイテムシンボル「ITEM」12gについては、前述した税率1アイテム数表示処理と同様実行されるものとして詳細な説明を省略する。 The CPU 21 displays all numerical values targeted for tax-inclusive calculation based on all tax rates 0 to 4 as the number of items in the step/item number 12a (step F2). Further, the CPU 21 displays the item symbol "ITEM" 12g in the status area of the display section 12 (step F3). It should be noted that the display of the number of items and the item symbol "ITEM" 12g are executed in the same manner as the processing for displaying the number of items per tax rate, and detailed description thereof will be omitted.

こうして、総合計アイテム数表示処理では、アイテム数保存エリア22sに記憶された各税率0~4に対応して記憶されたアイテム数を合計した数を表示する。従って、各税率で計算した税込合計額、税抜合計額、税合計額の合計額を表示する際に、税込み計算の対象とした全ての数値の数(購入対象とする全ての商品の数)を容易に確認することができる。 Thus, in the total item number display process, the total number of items stored corresponding to each tax rate 0 to 4 stored in the item number storage area 22s is displayed. Therefore, when displaying the total amount including tax, total amount excluding tax, and total amount including tax calculated at each tax rate, the number of all figures subject to tax calculation (number of all products to be purchased) can be easily verified.

次に、本実施形態における具体的な数値の入力と税込み計算の例について、図12及び図13を参照しながら説明する。ここでは、説明を容易にするために、税1計算キー11b1[GST+1](税率1(5%))、税2計算キー11b2[GST+2](税率2(12%))、及び税3計算キー11b3[GST+3](税率3(18%))を用いた税込み計算の例について説明する。税0計算キー11b0及び税4計算キー11b4を用いた税込み計算は、税1計算キー11b1、税2計算キー11b2、あるいは税3計算キー11b3が操作された場合と同様に実行されるものとして詳細な説明を省略する。 Next, an example of specific input of numerical values and tax-inclusive calculation in this embodiment will be described with reference to FIGS. 12 and 13. FIG. Here, for ease of explanation, tax 1 calculation key 11b1 [GST+1] (tax rate 1 (5%)), tax 2 calculation key 11b2 [GST+2] (tax rate 2 (12%)), and tax 3 calculation key An example of tax-inclusive calculation using 11b3 [GST+3] (tax rate 3 (18%)) will be described. Tax-inclusive calculation using the tax 0 calculation key 11b0 and the tax 4 calculation key 11b4 is executed in the same manner as when the tax 1 calculation key 11b1, the tax 2 calculation key 11b2, or the tax 3 calculation key 11b3 is operated. detailed description is omitted.

図12は、以下の説明で使用する具体的なキー操作、ステップ/アイテム数12aとして表示される数値、アイテムシンボル12gの表示有無、モードシンボル(税計算モードシンボル12b、税合計リコールモードシンボル12d)、税計算キーシンボル12c(GSTシンボル)、表示部12に表示される数値を示している。 FIG. 12 shows specific key operations used in the following description, numerical values displayed as the number of steps/items 12a, whether item symbols 12g are displayed, and mode symbols (tax calculation mode symbol 12b, tax total recall mode symbol 12d). , a tax calculation key symbol 12c (GST symbol), and a numerical value displayed on the display unit 12. FIG.

図12に示すキー操作の例では、1回の税率1に基づく税込み計算、3回の税率2に基づく税込み計算、及び2回の税率3に基づく税込み計算を混在して実行した後、税計算結果を表示させる例を示している。図13は、図12に示すD1~D5におけるキー操作時の表示部12における表示例を示している。 In the example of key operation shown in FIG. 12, the tax calculation is performed once based on tax rate 1, three times based on tax rate 2, and twice based on tax rate 3, and then the tax calculation is performed. An example of displaying the result is shown. FIG. 13 shows a display example on the display unit 12 when the keys D1 to D5 shown in FIG. 12 are operated.

CPU21は、税込み計算を実行するために税込み計算モードが設定され、税計算モードシンボル12bとして[GST+]を表示させる。 The CPU 21 is set to the tax-inclusive calculation mode to execute the tax-inclusive calculation, and displays [GST+] as the tax calculation mode symbol 12b.

その後、税計算のために、数値「100」が入力されると、CPU21は、入力された数値を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる。次いで、税1計算キー11b1(GST+1)が操作されると、CPU21は、税率1(5%)をもとに算出した税込み額「105」と、税計算キーシンボル12cとして「GST+1」を、表示部12に表示させる。また、CPU21は、税1計算キー11b1による税率1を用いた税計算の結果を、税率1合計メモリエリア22cに記憶させる。この場合、税率1の税込合計額「105」、税率1の税抜合計額「100」、税率1の税合計額「5」が税率1合計メモリエリア22cに記憶される。 After that, when the numerical value "100" is input for tax calculation, the CPU 21 stores the input numerical value in the display memory area 22p and causes the display unit 12 to display it. Next, when the tax 1 calculation key 11b1 (GST+1) is operated, the CPU 21 displays the tax-inclusive amount "105" calculated based on the tax rate 1 (5%) and "GST+1" as the tax calculation key symbol 12c. display on the part 12. Further, the CPU 21 causes the tax rate 1 total memory area 22c to store the result of the tax calculation using the tax rate 1 by the tax 1 calculation key 11b1. In this case, the tax rate 1 total tax amount "105", the tax rate 1 tax total amount "100", and the tax rate 1 total tax amount "5" are stored in the tax rate 1 total memory area 22c.

同様にして、数値「200」が入力されると、CPU21は、入力された数値を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる。次いで、税2計算キー11b2(GST+2)が操作されると、CPU21は、税率2(12%)をもとに算出した税込み額「224」と、税計算キーシンボル12cとして「GST+2」を、表示部12に表示させる。また、CPU21は、税2計算キー11b2による税率2を用いた税計算の結果を、税率2合計メモリエリア22dに記憶させる。この場合、税率2の税込合計額「224」、税率2の税抜合計額「200」、税率2の税合計額「24」が税率2合計メモリエリア22dに記憶される。 Similarly, when the numerical value "200" is input, the CPU 21 stores the input numerical value in the display memory area 22p and causes the display unit 12 to display it. Next, when the tax 2 calculation key 11b2 (GST+2) is operated, the CPU 21 displays the tax-inclusive amount "224" calculated based on the tax rate 2 (12%) and "GST+2" as the tax calculation key symbol 12c. display on the part 12. Further, the CPU 21 causes the tax rate 2 total memory area 22d to store the result of the tax calculation using the tax rate 2 by the tax 2 calculation key 11b2. In this case, the tax rate 2 total tax amount "224", the tax rate 2 tax total amount "200", and the tax rate 2 total tax amount "24" are stored in the tax rate 2 total memory area 22d.

以下、同様にして、数値「250」に対する税率2に基づく税計算、数値「300」に対する税率3に基づく税計算、数値「350」に対する税率2に基づく税計算、数値「400」に対する税率3に基づく税計算がそれぞれ実行されたものとする。 Similarly, tax calculation based on tax rate 2 for number "250", tax calculation based on tax rate 3 for number "300", tax calculation based on tax rate 2 for number "350", tax rate 3 for number "400" The tax calculation based on each shall be performed.

CPU21は、税率2に基づく税込み計算の結果(税込み額、税抜き額、税額)を、税率2合計メモリエリア22dに記憶された数値に加算して、税率2による税計算の総合計を記憶させる。また、CPU21は、税率3に基づく税込み計算の結果(税込み額、税抜き額、税額)を、税率3合計メモリエリア22eに記憶された数値に加算して、税率3による税計算の総合計を記憶させる。 The CPU 21 adds the result of tax calculation based on tax rate 2 (tax included amount, tax excluded amount, tax amount) to the numerical value stored in the tax rate 2 total memory area 22d, and stores the total tax calculation based on tax rate 2. . In addition, the CPU 21 adds the result of tax calculation based on tax rate 3 (tax included amount, tax excluded amount, tax amount) to the numerical value stored in the tax rate 3 total memory area 22e to obtain the total tax calculation based on tax rate 3. Memorize.

図13(A)には、数値「400」が入力され、税3計算キー11b3の操作に応じて税率3(18%)に基づく税計算が実行された時の表示部12の表示例を示している。 FIG. 13A shows a display example of the display unit 12 when the numerical value "400" is input and the tax calculation based on the tax rate 3 (18%) is executed in response to the operation of the tax 3 calculation key 11b3. ing.

ここで、税計算合計キー([GST GT(GT)])11cの操作により、税計算結果の総合計の表示が指示されたものとする。CPU21は、処理モードを税合計リコールモードに遷移させて、税合計リコールモードシンボル12d「RCL」を、表示部12の状態表示エリアに表示させる。そして、CPU21は、税合計メモリエリア22gから税込総合計額「1839」を読み出して表示部12に表示させる。 Here, it is assumed that the tax calculation total key ([GST GT (GT)]) 11c has been operated to instruct display of the total sum of tax calculation results. The CPU 21 shifts the processing mode to the total tax recall mode, and displays the total tax recall mode symbol 12 d “RCL” in the state display area of the display section 12 . Then, the CPU 21 reads out the tax-included total amount "1839" from the total tax memory area 22g and causes the display unit 12 to display it.

この際、CPU21は、図13(B)に示すように、総合計アイテム数表示処理によって、表示部12に表示されたステップ/アイテム数12aをステップ数からアイテム数「006」に変更するとともに、アイテムシンボル「ITEM」12gを表示させる。すなわち、1回の税率1に基づく税込み計算、3回の税率2に基づく税込み計算、及び2回の税率3に基づく税込み計算が実行されているため、税計算の対象とした数値の数(購入対象とする商品の数)が6個であり、アイテム数「006」が表示される。 At this time, as shown in FIG. 13B, the CPU 21 changes the number of steps/items 12a displayed on the display unit 12 from the number of steps to the number of items "006" by the total number of items display processing. Display the item symbol "ITEM" 12g. In other words, the number of tax calculations (purchase The number of target products) is 6, and the number of items "006" is displayed.

図13(B)に示すように、ステップ/アイテム数12aのアイテム数「006」は、図13(A)に示すステップ数「006」と同じであるが、アイテムシンボル「ITEM」12gが同時に表示されることにより、アイテム数を表していることを認識することができる。 As shown in FIG. 13B, the item number "006" of the step/item number 12a is the same as the step number "006" shown in FIG. 13A, but the item symbol "ITEM" 12g is displayed at the same time. By doing so, it can be recognized that the number of items is represented.

図13(B)に示す税込総合計額「1827」が表示された状態において、続けて税計算合計キー11cが操作された場合、CPU21は、税抜総合計額「1600」を税合計メモリエリア22gから読み出して表示させ、さらに続けて税計算合計キー11cが操作された場合、税総合計額「227」を表示させる。 When the tax calculation total key 11c is subsequently operated while the total tax-included total amount "1827" is displayed as shown in FIG. 22g is read and displayed, and when the tax calculation total key 11c is subsequently operated, the total tax total amount "227" is displayed.

ここで、税1計算キー11b1の操作により税率1による税計算結果の表示が指示された場合、CPU21は、税率1合計メモリエリア22cから税率1による税計算の税込み額の合計値「105」を読み出して表示部12に表示する。 Here, when the tax calculation result of tax rate 1 is instructed to be displayed by operating the tax 1 calculation key 11b1, the CPU 21 stores the total value "105" of the tax-inclusive amount of the tax calculation of tax rate 1 from the tax rate 1 total memory area 22c. The data is read out and displayed on the display unit 12 .

この際、CPU21は、図13(C)に示すように、税率1アイテム数表示処理によって、表示部12に表示されたステップ/アイテム数12aを税率1に対応するアイテム数「001」に変更するとともに、アイテムシンボル「ITEM」12gを引き続き表示させる。すなわち、税率1に基づく税込み計算が1回実行されているため、税率1に基づく税計算の対象とした数値の数(購入対象とする商品の数)が1個であり、アイテム数「001」が表示される。 At this time, as shown in FIG. 13C, the CPU 21 changes the number of steps/items 12a displayed on the display unit 12 to the number of items "001" corresponding to the tax rate of 1 by the tax rate 1 item number display processing. At the same time, the item symbol "ITEM" 12g continues to be displayed. That is, since tax calculation based on tax rate 1 has been executed once, the number of numerical values (the number of products to be purchased) targeted for tax calculation based on tax rate 1 is 1, and the number of items is "001". is displayed.

図13(C)に示す税込み額の合計額「105」が表示された状態において、続けて税1計算キー11b1が操作された場合、CPU21は、税抜き額の合計額「100」を税率1合計メモリエリア22cから読み出して表示させ、さらに続けて税1計算キー11b1が操作された場合、税額の合計額「5」を表示させる。 When the tax 1 calculation key 11b1 is subsequently operated while the total amount including tax "105" is displayed as shown in FIG. When the total amount is read from the total memory area 22c and displayed, and the tax 1 calculation key 11b1 is subsequently operated, the total tax amount "5" is displayed.

ここで、税2計算キー11b2の操作により税率2による税計算結果の表示が指示された場合、CPU21は、図13(D)に示すように、税率2合計メモリエリア22dから税率2による税計算の税込み額の合計値「896」を読み出して表示部12に表示する。CPU21は、前述と同様にして、税率2アイテム数表示処理によって、表示部12に表示されたステップ/アイテム数12aを税率2に対応するアイテム数「003」に変更する。 Here, when the display of the tax calculation result by tax rate 2 is instructed by operating the tax 2 calculation key 11b2, the CPU 21, as shown in FIG. The total value of the tax-inclusive amount “896” is read out and displayed on the display unit 12 . In the same manner as described above, the CPU 21 changes the number of steps/items 12a displayed on the display unit 12 to the number of items "003" corresponding to the tax rate of 2 by the tax rate of 2 item number display processing.

また、CPU21は、税2計算キー11b2が続けて操作された場合、前述と同様にして、税率2合計メモリエリア22dから税抜き額の合計額「800」、税額の合計額「96」を順次読み出して表示部12に表示させる。 When the tax 2 calculation key 11b2 is continuously operated, the CPU 21 sequentially stores the total amount excluding tax "800" and the total tax amount "96" from the tax rate 2 total memory area 22d in the same manner as described above. It is read out and displayed on the display unit 12 .

同様にして、税3計算キー11b3の操作により税率3による税計算結果の表示が指示された場合、CPU21は、図13(E)に示すように、税率3合計メモリエリア22eから税率3による税計算の税込み額の合計値「826」を読み出して表示部12に表示する。CPU21は、前述と同様にして、税率3アイテム数表示処理によって、表示部12に表示されたステップ/アイテム数12aを税率3に対応するアイテム数「002」に変更する。 Similarly, when the tax calculation result of tax rate 3 is instructed to be displayed by operating the tax 3 calculation key 11b3, the CPU 21 reads the tax rate 3 total memory area 22e from the tax rate 3 total memory area 22e, as shown in FIG. The total value “826” of the calculated tax-inclusive amount is read out and displayed on the display unit 12 . In the same manner as described above, the CPU 21 changes the number of steps/items 12a displayed on the display unit 12 to the number of items "002" corresponding to the tax rate of 3 by the tax rate of 3 item number display processing.

また、CPU21は、税3計算キー11b3が続けて操作された場合、前述と同様にして、税率3合計メモリエリア22eから税抜き額の合計額「700」、税額の合計額「126」を順次読み出して表示部12に表示させる。 When the tax 3 calculation key 11b3 is continuously operated, the CPU 21 sequentially stores the total amount excluding tax "700" and the total tax amount "126" from the tax rate 3 total memory area 22e in the same manner as described above. It is read out and displayed on the display unit 12 .

このようにして、本実施形態における電卓10は、税合計リコールモードがオン状態にあり、税計算結果を表示させる場合に、表示対象が全ての税率0~4に基づく税計算結果であるか、あるいは税率別の税計算結果であるかに応じて、それぞれの税計算の対象とした数値の数をアイテム数として表示部12の状態表示エリアに表示させることができる。従って、商品の購入金額(あるいは税抜き額、税額)を示す税計算結果とする数値とともに、購入対象とする商品の数を対応づけて容易に確認することができる。 In this manner, when the calculator 10 according to the present embodiment is in the ON state of the total tax recall mode and displays the tax calculation results, whether the tax calculation results based on all the tax rates 0 to 4 are displayed, Alternatively, depending on whether the tax calculation result is for each tax rate, the number of numerical values used for each tax calculation can be displayed in the status display area of the display unit 12 as the number of items. Therefore, it is possible to easily check the number of products to be purchased in association with the numerical value as the result of tax calculation indicating the purchase price (or tax-excluded amount or tax amount) of the product.

なお、前述した実施形態の説明では、税抜き計算処理では、計算結果を税率1合計メモリエリア22cに反映させないとしているが、税抜き計算処理についても計算結果を税率1合計メモリエリア22cに反映するようにしても良い。すなわち、税込み計算の計算結果と税抜き計算の結果の総合計を算出して表示できるようにしても良い。 In the above description of the embodiment, in the tax-excluded calculation process, the calculation result is not reflected in the tax rate 1 total memory area 22c. You can do it. That is, the total sum of the tax-inclusive calculation result and the tax-excluded calculation result may be calculated and displayed.

この場合、電卓10は、前述した税込み計算処理において実行されるアイテム数算出処理(図8に示すフローチャート)を税抜き算出処理においても実行する。すなわち、CPU21は、図7のフローチャートに示す税抜き計算処理において、ステップC2とC3との間で、税込み処理と同様にしてアイテム数算出処理を実行する。 In this case, the calculator 10 also executes the number-of-items calculation process (flowchart shown in FIG. 8) that is executed in the tax-inclusive calculation process, also in the tax-excluded calculation process. That is, the CPU 21 executes the item number calculation process between steps C2 and C3 in the tax-excluded calculation process shown in the flowchart of FIG. 7 in the same manner as the tax-inclusive process.

また、CPU21は、アイテム数保存エリア22sにおいて、税込み計算処理の対象としたアイテム数(商品の数)と、税抜き計算処理の対象としたアイテム数(商品の数)とを個別に記憶させるようにしても良い。この場合、CPU21は、税込み計算処理の対象としたアイテム数と税抜き計算処理の対象としたアイテム数とを合計した総合計のアイテム数を表示するだけでなく、税込み計算と税抜き計算のそれぞれに対応するアイテム数を個別に表示することもできる。例えば、税込み計算による税計算合計と税込み計算の対象とした商品数(アイテム数)とを組にして表示し、同様にして、税抜き計算による税計算合計と税抜き計算の対象とした商品数(アイテム数)とを組にして表示することが可能である。 In addition, the CPU 21 causes the item number storage area 22s to individually store the number of items (the number of products) targeted for the tax-inclusive calculation process and the number of items (the number of products) targeted for the tax-excluded calculation process. You can do it. In this case, the CPU 21 not only displays the total number of items, which is the sum of the number of items targeted for the tax-inclusive calculation process and the number of items targeted for the tax-excluded calculation process, but also You can also display the number of items corresponding to . For example, the total tax calculation including tax and the number of products (items) included in the tax calculation are displayed as a set. (the number of items) can be displayed as a set.

なお、実施形態において記載した手法、すなわち図3~図10のフローチャートに示す処理等の各手法は、コンピュータに実行させることができるプログラムとして、メモリカード(ROMカード、RAMカード等)、磁気ディスク(フレキシブルディスク、ハードディスク等)、光ディスク(CD-ROM、DVD等)、半導体メモリ等の記録媒体に格納して配布することができる。そして、コンピュータは、外部記録媒体に記録されたプログラムを読み込み、このプログラムによって動作が制御されることにより、実施形態において説明した機能と同様の処理を実現することができる。 It should be noted that the methods described in the embodiments, that is, each method such as the processing shown in the flowcharts of FIGS. flexible disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory, or other recording medium for distribution. Then, the computer reads the program recorded in the external recording medium, and by controlling the operation by this program, it is possible to implement the same processing as the functions described in the embodiments.

また、各手法を実現するためのプログラムのデータは、プログラムコードの形態としてネットワーク(インターネット)上を伝送させることができ、このネットワーク(インターネット)に接続されたコンピュータ(サーバ装置等)からプログラムデータを取り込み、前述した実施形態と同様の機能を実現することもできる。 In addition, program data for realizing each technique can be transmitted over a network (Internet) in the form of program code. It is also possible to capture and implement functionality similar to the previously described embodiments.

なお、本願発明は、実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。さらに、実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件から幾つかの構成要件が削除されたり、幾つかの構成要件が組み合わされても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除されたり組み合わされた構成が発明として抽出され得るものである。 It should be noted that the present invention is not limited to the embodiments, and can be variously modified in the implementation stage without departing from the gist of the invention. Furthermore, the embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some components are deleted from all the components shown in the embodiments, or some components are combined, the problems described in the column of problems to be solved by the invention can be solved, and the invention If the effect described in the effect column of 1 above can be obtained, a configuration in which this constituent element is deleted or combined can be extracted as an invention.

以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。 The invention described in the original claims of the present application is appended below.

[1]税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、
制御部を有する計算機。
[1] Execute tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, and store in a first memory a total value of the first numerical values related to the results of the plurality of tax calculations. let
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read the total value, and displaying the result on a display unit;
A computer having a controller.

[2]前記制御部は、
複数の前記税計算の実行に伴い、前記数値を特定する第1情報と、前記数値を用いて実行する税計算の実行指示を特定する第2情報との組の数を示す第3数値を前記表示部に表示させ、
前記合計値の読み出し指示の入力に応じて、前記第3数値の表示に代えて前記第2数値を表示させる、[1]記載の計算機。
[2] The control unit
With execution of a plurality of tax calculations, a third numerical value indicating the number of sets of first information identifying the numerical value and second information identifying an execution instruction of the tax calculation to be executed using the numerical value is provided. display on the display,
The computer according to [1], wherein the second numerical value is displayed in place of the third numerical value in response to the input of the instruction to read out the total value.

[3]前記制御部は、
前記第2数値とともに前記第2数値の表示中であることを示すシンボルを前記表示部に表示させる、[1]または[2]記載の計算機。
[3] The control unit
The computer according to [1] or [2], wherein the display unit displays a symbol indicating that the second numerical value is being displayed together with the second numerical value.

[4]前記制御部は、
第1税率に基づく第1税計算の実行指示の入力があった場合、前記第1税率による税計算を実行し、前記第1税計算の結果に係わる第4数値の合計値を前記第1メモリに記憶させ、
第2税率に基づく第2税計算の実行指示の入力があった場合、前記第2税率による税計算を実行し、前記第2税計算の結果に係わる第5数値の合計値を前記第1メモリに記憶させ、
前記第1税計算の対象とした数値の数を示す第6数値と前記第2税計算の対象とした数値の数を示す第7数値を前記第2メモリに記憶させ、
前記第4数値の合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第4数値の合計値とともに、前記第2メモリに記憶された前記第6数値を読み出して表示部へ表示させ、
前記第5数値の合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第5数値の合計値とともに、前記第2メモリに記憶された前記第7数値を読み出して表示部へ表示させる、[1]~[3]の何れかに記載の計算機。
[4] The control unit
When an instruction to execute the first tax calculation based on the first tax rate is input, the tax calculation based on the first tax rate is executed, and the total value of the fourth numerical values related to the result of the first tax calculation is stored in the first memory. store in
When an instruction to execute the second tax calculation based on the second tax rate is input, the tax calculation based on the second tax rate is executed, and the total value of the fifth numerical values related to the result of the second tax calculation is stored in the first memory. store in
storing in the second memory a sixth numerical value indicating the number of numerical values targeted for the first tax calculation and a seventh numerical value indicating the number of numerical values targeted for the second tax calculation;
reading the total value of the fourth numerical values stored in the first memory and the sixth numerical value stored in the second memory in response to an input of an instruction to read the total value of the fourth numerical values; display to
reading out the seventh numerical value stored in the second memory together with the sum of the fifth numerical values stored in the first memory in response to an input of an instruction to read out the total value of the fifth numerical values; The computer according to any one of [1] to [3], which is displayed on the

[5]前記制御部は、
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて税計算を実行し、
前記税込み計算の対象とした前記数値の数と、前記税抜き計算の対象とした前記数値の数のそれぞれを示す第2数値を第2メモリに記憶させ、
前記第2メモリに記憶された、前記税込み計算と前記税抜き計算のそれぞれに対応する前記第2数値を読み出して個別に表示部へ表示させる、[1]記載の計算機。
[5] The control unit
Execute tax calculation according to the input of the tax calculation execution instruction for either tax-inclusive calculation or tax-excluded calculation,
Storing in a second memory a second numerical value indicating the number of numerical values subject to the tax-inclusive calculation and a second numerical value indicating the number of the numerical values subject to the tax-excluded calculation;
The computer according to [1], wherein the second numerical values respectively corresponding to the tax-inclusive calculation and the tax-exclusive calculation are read out from the second memory and individually displayed on a display unit.

[6]前記制御部は、
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて、当該実行指示に対応する何れかの税計算を実行し、複数の前記何れかの税計算の結果に係わる前記第1数値の合計値を前記第1メモリに記憶させ、
複数の前記何れかの税計算の対象とした前記数値の数を示す数値を前記第2数値として前記第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の前記合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、[1]記載の計算機。
[6] The control unit
In response to an input of a tax calculation execution instruction for either a tax-inclusive calculation or a tax-excluded calculation, any tax calculation corresponding to the execution instruction is executed, and a plurality of tax calculations related to the results of any of the tax calculations are executed. storing the total value of one numerical value in the first memory;
storing in the second memory as the second numerical value a numerical value indicating the number of the numerical values subject to any of the plurality of tax calculations;
reading out the second numerical value stored in the second memory together with the total value of the first numerical value stored in the first memory in response to an input of an instruction to read out the total value, and displaying the result on a display unit; , the computer described in [1].

[7]計算機の制御部により実行される表示方法であって、
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、表示方法。
[7] A display method executed by a control unit of a computer, comprising:
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read the total value, and displaying the result on a display unit; Display method.

[8]計算機のコンピュータによって、
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させるためのプログラム。
[8] By the computer of the calculator,
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
To read out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to an input of an instruction to read the total value, and display the second numerical value on a display unit. program.

10…電卓、11…キー入力部、11b0…税0計算キー、11b1…税1計算キー、11b2…税2計算キー、11b3…税3計算キー、11b4…税4計算キー、11c…税計算合計キー、11d…税計算モード切替キー、12…表示部、21…CPU、22…メモリ、22a…計算処理プログラム、22b…税率0合計メモリエリア、22c…税率1合計メモリエリア、22d…税率2合計メモリエリア、22e…税率3合計メモリエリア、22f…税率4合計メモリエリア、22g…税合計メモリエリア、22h…合計メモリエリア、22k…税合計リコールモードエリア、22m…税計算モードエリア、22n…バッファメモリエリア、22p…表示メモリエリア、22r…税率記憶エリア。 10... calculator, 11... key input unit, 11b0... tax 0 calculation key, 11b1... tax 1 calculation key, 11b2... tax 2 calculation key, 11b3... tax 3 calculation key, 11b4... tax 4 calculation key, 11c... total tax calculation Key 11d Tax calculation mode switching key 12 Display unit 21 CPU 22 Memory 22a Calculation processing program 22b Total tax rate 0 memory area 22c Total tax rate 1 memory area 22d Total tax rate 2 Memory area 22e... Tax rate 3 total memory area 22f... Tax rate 4 total memory area 22g... Tax total memory area 22h... Total tax memory area 22k... Tax total recall mode area 22m... Tax calculation mode area 22n... Buffer Memory area 22p...Display memory area 22r...Tax rate storage area.

Claims (11)

税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、
制御部を有し、
前記制御部は、
複数の前記税計算の実行に伴い、前記数値を特定する第1情報と、前記数値を用いて実行する税計算の実行指示を特定する第2情報との組の数を示す第3数値を前記表示部に表示させ、
前記合計値の読み出し指示の入力に応じて、前記第3数値の表示に代えて前記第2数値を表示させる、
計算機。
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read the total value, and displaying the result on a display unit;
having a control unit,
The control unit
With execution of a plurality of tax calculations, a third numerical value indicating the number of sets of first information identifying the numerical value and second information identifying an execution instruction of the tax calculation to be executed using the numerical value is provided. display on the display,
displaying the second numerical value instead of displaying the third numerical value in response to the input of the instruction to read the total value;
calculator.
前記制御部は、
前記第2数値とともに前記第2数値の表示中であることを示すシンボルを前記表示部に表示させる、請求項1に記載の計算機。
The control unit
2. The computer according to claim 1 , wherein said display unit displays a symbol indicating that said second numerical value is being displayed together with said second numerical value.
前記制御部は、
第1税率に基づく第1税計算の実行指示の入力があった場合、前記第1税率による税計算を実行し、前記第1税計算の結果に係わる第4数値の合計値を前記第1メモリに記憶させ、
第2税率に基づく第2税計算の実行指示の入力があった場合、前記第2税率による税計算を実行し、前記第2税計算の結果に係わる第5数値の合計値を前記第1メモリに記憶させ、
前記第1税計算の対象とした数値の数を示す第6数値と前記第2税計算の対象とした数値の数を示す第7数値を前記第2メモリに記憶させ、
前記第4数値の合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第4数値の合計値とともに、前記第2メモリに記憶された前記第6数値を読み出して表示部へ表示させ、
前記第5数値の合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第5数値の合計値とともに、前記第2メモリに記憶された前記第7数値を読み出して表示部へ表示させる、請求項1または2に記載の計算機。
The control unit
When an instruction to execute the first tax calculation based on the first tax rate is input, the tax calculation based on the first tax rate is executed, and the total value of the fourth numerical values related to the result of the first tax calculation is stored in the first memory. store in
When an instruction to execute the second tax calculation based on the second tax rate is input, the tax calculation based on the second tax rate is executed, and the total value of the fifth numerical values related to the result of the second tax calculation is stored in the first memory. store in
storing in the second memory a sixth numerical value indicating the number of numerical values targeted for the first tax calculation and a seventh numerical value indicating the number of numerical values targeted for the second tax calculation;
reading the total value of the fourth numerical values stored in the first memory and the sixth numerical value stored in the second memory in response to an input of an instruction to read the total value of the fourth numerical values; display to
reading out the seventh numerical value stored in the second memory together with the sum of the fifth numerical values stored in the first memory in response to an input of an instruction to read out the total value of the fifth numerical values; 3. The computer according to claim 1 or 2 , which is displayed on the computer.
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、
制御部を有し、
前記制御部は、
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて税計算を実行し、
前記税込み計算の対象とした前記数値の数と、前記税抜き計算の対象とした前記数値の数のそれぞれを示す第2数値を第2メモリに記憶させ、
前記第2メモリに記憶された、前記税込み計算と前記税抜き計算のそれぞれに対応する前記第2数値を読み出して個別に表示部へ表示させる、計算機。
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read the total value, and displaying the result on a display unit;
having a control unit,
The control unit
Execute tax calculation according to the input of the tax calculation execution instruction for either tax-inclusive calculation or tax-excluded calculation,
Storing in a second memory a second numerical value indicating the number of numerical values subject to the tax-inclusive calculation and a second numerical value indicating the number of the numerical values subject to the tax-excluded calculation;
A computer that reads out the second numerical values corresponding to the tax-inclusive calculation and the tax-excluded calculation stored in the second memory and individually displays them on a display unit.
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、
制御部を有し、
前記制御部は、
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて、当該実行指示に対応する何れかの税計算を実行し、複数の前記何れかの税計算の結果に係わる前記第1数値の合計値を前記第1メモリに記憶させ、
複数の前記何れかの税計算の対象とした前記数値の数を示す数値を前記第2数値として前記第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の前記合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、計算機。
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read the total value, and displaying the result on a display unit;
having a control unit,
The control unit
In response to an input of a tax calculation execution instruction for either a tax-inclusive calculation or a tax-excluded calculation, any tax calculation corresponding to the execution instruction is executed, and a plurality of tax calculations related to the results of any of the tax calculations are executed. storing the total value of one numerical value in the first memory;
storing in the second memory as the second numerical value a numerical value indicating the number of the numerical values subject to any of the plurality of tax calculations;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to an input of an instruction to read out the total value, and displaying the result on a display unit; computer .
計算機の制御部により実行される表示方法であって、
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させ、
複数の前記税計算の実行に伴い、前記数値を特定する第1情報と、前記数値を用いて実行する税計算の実行指示を特定する第2情報との組の数を示す第3数値を前記表示部に表示させ、
前記合計値の読み出し指示の入力に応じて、前記第3数値の表示に代えて前記第2数値を表示させる、表示方法。
A display method executed by a control unit of a computer,
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
read out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read out the total value, and display it on a display unit; ,
With execution of a plurality of tax calculations, a third numerical value indicating the number of sets of first information identifying the numerical value and second information identifying an execution instruction of the tax calculation to be executed using the numerical value is provided. display on the display,
A display method , wherein the second numerical value is displayed in place of the third numerical value in response to an input of an instruction to read out the total value.
計算機の制御部により実行される表示方法であって、A display method executed by a control unit of a computer,
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させ、reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to an input of an instruction to read the total value, and causing a display unit to display the second numerical value;
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて税計算を実行し、Execute tax calculation according to the input of the tax calculation execution instruction for either tax-inclusive calculation or tax-excluded calculation,
前記税込み計算の対象とした前記数値の数と、前記税抜き計算の対象とした前記数値の数のそれぞれを示す第2数値を第2メモリに記憶させ、Storing in a second memory a second numerical value indicating the number of numerical values subject to the tax-inclusive calculation and a second numerical value indicating the number of the numerical values subject to the tax-excluded calculation;
前記第2メモリに記憶された、前記税込み計算と前記税抜き計算のそれぞれに対応する前記第2数値を読み出して個別に表示部へ表示させる、表示方法。A display method, wherein the second numerical values corresponding to the tax-included calculation and the tax-excluded calculation stored in the second memory are read out and individually displayed on a display unit.
計算機の制御部により実行される表示方法であって、A display method executed by a control unit of a computer,
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させ、reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to an input of an instruction to read the total value, and causing a display unit to display the second numerical value;
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて、当該実行指示に対応する何れかの税計算を実行し、複数の前記何れかの税計算の結果に係わる前記第1数値の合計値を前記第1メモリに記憶させ、In response to an input of a tax calculation execution instruction for either a tax-inclusive calculation or a tax-excluded calculation, any tax calculation corresponding to the execution instruction is executed, and a plurality of tax calculations related to the results of any of the tax calculations are executed. storing the total value of one numerical value in the first memory;
複数の前記何れかの税計算の対象とした前記数値の数を示す数値を前記第2数値として前記第2メモリに記憶させ、storing in the second memory as the second numerical value a numerical value indicating the number of the numerical values subject to any of the plurality of tax calculations;
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の前記合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させる、表示方法。reading out the second numerical value stored in the second memory together with the total value of the first numerical value stored in the first memory in response to an input of an instruction to read out the total value, and displaying the result on a display unit; ,Display method.
計算機のコンピュータによって、
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させ、
複数の前記税計算の実行に伴い、前記数値を特定する第1情報と、前記数値を用いて実行する税計算の実行指示を特定する第2情報との組の数を示す第3数値を前記表示部に表示させ、
前記合計値の読み出し指示の入力に応じて、前記第3数値の表示に代えて前記第2数値を表示させるためのプログラム。
by computer computer
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
read out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to the input of the instruction to read out the total value, and display it on a display unit; ,
With execution of a plurality of tax calculations, a third numerical value indicating the number of sets of first information identifying the numerical value and second information identifying an execution instruction of the tax calculation to be executed using the numerical value is provided. display on the display,
A program for displaying the second numerical value instead of displaying the third numerical value in response to the input of the instruction to read the total value.
計算機のコンピュータによって、
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させ、
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて税計算を実行し、
前記税込み計算の対象とした前記数値の数と、前記税抜き計算の対象とした前記数値の数のそれぞれを示す第2数値を第2メモリに記憶させ、
前記第2メモリに記憶された、前記税込み計算と前記税抜き計算のそれぞれに対応する前記第2数値を読み出して個別に表示部へ表示させるためのプログラム。
by computer computer
executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to an input of an instruction to read the total value, and causing a display unit to display the second numerical value;
Execute tax calculation according to the input of the tax calculation execution instruction for either tax-inclusive calculation or tax-excluded calculation,
Storing in a second memory a second numerical value indicating the number of numerical values subject to the tax-inclusive calculation and a second numerical value indicating the number of the numerical values subject to the tax-excluded calculation;
A program for reading out the second numerical values corresponding to the tax-included calculation and the tax-excluded calculation stored in the second memory and individually displaying them on a display unit.
計算機のコンピュータによって、by computer computer
税計算の実行指示の入力に応じて、数値に対する予め設定された税率に基づく税計算を実行し、複数の前記税計算の結果に係わる第1数値の合計値を第1メモリに記憶させ、executing a tax calculation based on a preset tax rate for a numerical value in response to an input of a tax calculation execution instruction, storing in a first memory a total value of first numerical values related to the results of the plurality of tax calculations;
複数の前記税計算の対象とした前記数値の数を示す第2数値を第2メモリに記憶させ、storing a second numerical value indicating the number of the numerical values targeted for the plurality of tax calculations in a second memory;
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させ、reading out the second numerical value stored in the second memory together with the total value of the first numerical values stored in the first memory in response to an input of an instruction to read the total value, and causing a display unit to display the second numerical value;
税込み計算あるいは税抜き計算の何れかの税計算の実行指示の入力に応じて、当該実行指示に対応する何れかの税計算を実行し、複数の前記何れかの税計算の結果に係わる前記第1数値の合計値を前記第1メモリに記憶させ、In response to an input of a tax calculation execution instruction for either a tax-inclusive calculation or a tax-excluded calculation, any tax calculation corresponding to the execution instruction is executed, and a plurality of tax calculations related to the results of any of the tax calculations are executed. storing the total value of one numerical value in the first memory;
複数の前記何れかの税計算の対象とした前記数値の数を示す数値を前記第2数値として前記第2メモリに記憶させ、storing in the second memory as the second numerical value a numerical value indicating the number of the numerical values subject to any of the plurality of tax calculations;
前記合計値の読み出し指示の入力に応じて、前記第1メモリに記憶された前記第1数値の前記合計値とともに、前記第2メモリに記憶された前記第2数値を読み出して表示部へ表示させるためのプログラム。reading out the second numerical value stored in the second memory together with the total value of the first numerical value stored in the first memory in response to an input of an instruction to read out the total value, and displaying the result on a display unit; program for.
JP2018236558A 2018-12-18 2018-12-18 Calculator, display method, and program Active JP7279355B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018236558A JP7279355B2 (en) 2018-12-18 2018-12-18 Calculator, display method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018236558A JP7279355B2 (en) 2018-12-18 2018-12-18 Calculator, display method, and program

Publications (2)

Publication Number Publication Date
JP2020098486A JP2020098486A (en) 2020-06-25
JP7279355B2 true JP7279355B2 (en) 2023-05-23

Family

ID=71106583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018236558A Active JP7279355B2 (en) 2018-12-18 2018-12-18 Calculator, display method, and program

Country Status (1)

Country Link
JP (1) JP7279355B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017156999A (en) 2016-03-02 2017-09-07 カシオ計算機株式会社 Sales data processor and sales data processing program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017156999A (en) 2016-03-02 2017-09-07 カシオ計算機株式会社 Sales data processor and sales data processing program

Also Published As

Publication number Publication date
JP2020098486A (en) 2020-06-25

Similar Documents

Publication Publication Date Title
CN107239431B (en) Tax computer, tax calculating method and recording medium for recording program
US20110219051A1 (en) Electronic calculator, display method, and recording medium for displaying mathematical expression in full color
JP6428734B2 (en) Tax calculation device, tax calculation method, program
JP7487755B2 (en) calculator
JP7383902B2 (en) Calculators, calculation methods, and programs
JP7279355B2 (en) Calculator, display method, and program
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
JP7163705B2 (en) Calculators, calculation methods, and programs
JP6593505B1 (en) Computer, electronic device, setting method, and program
JP7176603B2 (en) Computing device, computing method, and program
JP6915669B2 (en) Tax calculator, tax calculation method, and tax calculation program
JP7487829B2 (en) Electronic device, calculation support method and program
JP7416138B2 (en) Calculator, setting support method and program
JP6620907B1 (en) Computer, setting method, and program
CN107562677B (en) Calculation device, calculation method, and recording medium having program recorded thereon
JP6528483B2 (en) Computation processing device and program
JP7031691B2 (en) Electronics, control methods, and programs
JP7500934B2 (en) Computer, calculation method, and program
JP6950344B2 (en) Arithmetic logic units, calculation methods, and programs
JP2022115562A (en) Computing machine and calculation program
JP2023045848A (en) Calculator and calculation program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221222

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20230104

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230411

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230424

R150 Certificate of patent or registration of utility model

Ref document number: 7279355

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150