JP7184068B2 - Calculator, calculation method and calculation program - Google Patents
Calculator, calculation method and calculation program Download PDFInfo
- Publication number
- JP7184068B2 JP7184068B2 JP2020156506A JP2020156506A JP7184068B2 JP 7184068 B2 JP7184068 B2 JP 7184068B2 JP 2020156506 A JP2020156506 A JP 2020156506A JP 2020156506 A JP2020156506 A JP 2020156506A JP 7184068 B2 JP7184068 B2 JP 7184068B2
- Authority
- JP
- Japan
- Prior art keywords
- numerical value
- key
- display
- tax
- calculation
- 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
Links
Images
Landscapes
- Calculators And Similar Devices (AREA)
Description
本発明は、計算機、計算方法及び計算プログラムに関する。 The present invention relates to a calculator , a calculation method and a calculation program.
卓上計算機等の計算機には、予め設定された特定の数値を用いて特定の計算を実施する機能を有しているものがある。このような機能は、例えば消費税の計算機能を含む。消費税の計算では、計算が実行されると、予め設定されている消費税率が呼び出され、入力された金額に対する税込価格又は税抜価格が計算される。 2. Description of the Related Art Some calculators such as desktop calculators have a function of performing specific calculations using preset specific numerical values. Such functions include, for example, a consumption tax calculation function. In the consumption tax calculation, when the calculation is executed, a preset consumption tax rate is called up, and the tax-included price or the tax-excluded price for the input amount is calculated.
消費税の計算等の特定の計算に用いられる消費税率等は、法律の改正等によって変更され得る。このため、特定の計算に用いられる特定の数値は、適宜に変更できることが望ましい。また、このような変更は、より簡易な操作によって行われることが望まれている。 Consumption tax rates, etc., used for specific calculations, such as consumption tax calculations, may be changed due to amendments to laws, etc. Therefore, it is desirable that specific numerical values used in specific calculations can be changed as appropriate. Moreover, it is desired that such a change be performed by a simpler operation.
本発明は、簡易な操作によって特定の計算に用いられる特定の数値を変更することが可能な計算機、計算方法及び計算プログラムを提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to provide a calculator , a calculation method , and a calculation program capable of changing specific numerical values used for specific calculations by simple operations.
本発明の第1の態様の計算機は、第1の数値が入力された後、操作キーが第1の操作方法と第2の操作方法との何れで操作されたかを判定する判定部と、操作キーが第1の操作方法で操作されたと判定されたときには、引数として設定されている第2の数値を用いて第1の数値に対する特定の計算を実施し、操作キーが第2の操作方法で操作されたと判定されたときには、引数として第1の数値を設定する、ように制御する制御部とを具備する。 A computer according to a first aspect of the present invention includes a determination unit that determines whether an operation key is operated by a first operation method or a second operation method after a first numerical value is input; When it is determined that the key has been operated in the first operation method, the second numerical value set as the argument is used to perform a specific calculation on the first numerical value, and the operation key is operated in the second operation method. a control unit for setting a first numerical value as an argument when it is determined that the operation has been performed.
本発明の第2の態様の計算方法は、計算機の制御部によって実行される方法であって、第1の数値が入力された後、操作キーが第1の操作方法と第2の操作方法との何れで操作されたかを判定することと、前記操作キーが前記第1の操作方法で操作されたと判定されたときには、引数として予め設定されている第2の数値を用いて前記第1の数値に対する特定の計算を実施することと、前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数としての第2の数値を前記第1の数値で更新することと、を含む。
本発明の第3の態様の計算プログラムは、第1の数値が入力された後、操作キーが第1の操作方法と第2の操作方法との何れで操作されたかを判定することと、操作キーが第1の操作方法で操作されたと判定されたときには、引数として予め設定されている第2の数値を用いて第1の数値に対する特定の計算を実施することと、操作キーが第2の操作方法で操作されたと判定されたときには、引数としての第2の数値を第1の数値で更新することとをプロセッサに実行させる。
A calculation method according to a second aspect of the present invention is a method executed by a control unit of a computer, in which after a first numerical value is input, the operation keys select the first operation method and the second operation method. and when it is determined that the operation key has been operated by the first operation method, the first numerical value is determined using a second numerical value preset as an argument. and updating a second numerical value as the argument with the first numerical value when it is determined that the operation key has been operated in the second operation method. include.
A calculation program according to a third aspect of the present invention determines whether an operation key is operated by a first operation method or a second operation method after a first numerical value is input; When it is determined that the key has been operated by the first operation method, a second numerical value preset as an argument is used to perform a specific calculation on the first numerical value, and the operation key is operated by the second numerical value. updating the second numerical value as the argument with the first numerical value when it is determined that the operation method has been operated.
本発明によれば、簡易な操作によって特定の計算に用いられる特定の数値を変更することが可能な計算機、計算方法及び計算プログラムを提供することができる。 According to the present invention, it is possible to provide a calculator , a calculation method , and a calculation program capable of changing specific numerical values used for specific calculations by simple operations.
以下、本発明の実施形態について、図面を参照して説明する。
[第1の実施形態]
図1は、各実施形態に係る計算機1の構成の一例を示す図である。計算機1は、プロセッサ11と、メモリ12と、操作キー13と、ディスプレイドライバ(DD)14と、ディスプレイ15とを有している。計算機1は、卓上計算機、所謂電卓であってよい。計算機1は、電卓以外の数値の計算機能を有する各種の電子機器であってもよい。また、計算機1は、図1で示した以外の構成を有していてもよい。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First embodiment]
FIG. 1 is a diagram showing an example of the configuration of a
プロセッサ11は、計算機1の各種動作を制御するプロセッサである。プロセッサ11は、CPU、ASIC、FPGA等であってよい。また、プロセッサ11は、2つ以上のプロセッサで構成されていてもよい。プロセッサ11は、操作キー13のうちの特定の操作キーの操作方法を判定する判定部として動作する。また、プロセッサ11は、特定の操作キーの操作方法に応じて実行する処理を変える制御部として動作する。
The
メモリ12は、RAM及びROMを含む。RAMは、揮発性のメモリである。RAMは、プロセッサ11における各種のデータを一時記憶するための作業メモリ等に用いられる。ROMは、不揮発性のメモリである。ROMには、各種の計算機能を実行するための計算プログラム等の各種プログラムが記憶されている。また、ROMには、数値計算等に用いられる各種の特定の数値等が引数として記憶されている。この特定の数値は、例えば税計算に用いられる税率の値を含む。
操作キー13は、ユーザが計算機1を操作するための各種のキーである。操作キー13を用いた操作が受け付けられたとき、その操作に応じた入力信号がプロセッサ11に伝達される。
The
ディスプレイドライバ14は、プロセッサ11の制御の下、ディスプレイ15を駆動する。ディスプレイドライバ14は、ディスプレイ15の駆動に必要な各種の信号をディスプレイ15に送出する。
ディスプレイ15は、液晶ディスプレイ等の表示部である。ディスプレイ15は、電卓機能に係る各種の表示をする。
The
図2は、計算機1の外観正面図である。図2に示すように、計算機1の筐体正面には、操作キー13とディスプレイ15とが設けられている。
FIG. 2 is an external front view of the
操作キー13は、数値キーと、演算キーと、機能キーとを有している。数値キーは、数値を入力するためのキーであって、例えば0から9のそれぞれの数値に対応したキーを含む。演算キーは、四則演算の実施のためのキーであって、例えば+(加算)、-(減算)、×(乗算)、÷(除算)のそれぞれの演算子に対応したキーと、=(演算実行)キーとを含む。機能キーは、計算機1の各種機能の実施のためのキーであって、例えばオールクリアキー(ACキー)、クリアキー(Cキー)、メモリキー(MRCキー、M+キー、M-キー)を含む。さらに、実施形態では、操作キー13は、税計算キー131を含む。税計算キー131は、入力された数値に対して引数として予め設定された税率を用いた消費税計算を実施するためのキーである。税計算は、税込価格の計算と税抜価格の計算とを含む。また、税率は、法改正等によって変更され得る。このような税率の変更に対応した、税率の設定も税計算キー131を用いて行われる。
The
図3は、第1の実施形態の計算機1の税計算の処理を示すフローチャートである。図3の処理は、メモリ12のROMに記憶された計算プログラムをプロセッサ11が実行することによって行われる。税計算の処理以外の計算機1の動作は、特に限定されない。例えば、プロセッサ11は、ユーザのキー操作に従って計算結果をディスプレイ15に表示させたり、メモリ機能等の各種の機能の処理を実施したりする。ここで、図3の処理を説明するに当たり、計算機1には何等かの数値が既に入力され、入力された数値がディスプレイ15に表示されているものとする。数値の入力は、数値キーによって行われ得る。
FIG. 3 is a flow chart showing tax calculation processing of the
ステップS1において、プロセッサ11は、税計算キー131が押されたか否かを判定する。ステップS1において、税計算キー131が押されていないと判定されたときには、図3の処理は終了する。ステップS1において、税計算キー131が押されたと判定されたときには、処理はステップS2に移行する。
At step S1, the
ステップS2において、プロセッサ11は、税計算キー131の押し込み時間の計測を開始する。押し込み時間は、例えば計算機1に設けられる図示しない時計によって計測されてよい。
In step S<b>2 , the
ステップS3において、プロセッサ11は、ディスプレイ15の表示を消去する。ディスプレイ15の表示の消去の処理は、計算機1の通常の処理から税計算に係る処理に移行したことをユーザに認知させるための処理である。ディスプレイの表示の消去の処理は省略されてもよい。
At step S3, the
ステップS4において、プロセッサ11は、税計算キー131の押し込み時間の計測開始から所定時間が経過したか否かを判定する。この所定時間は、例えば2秒である。この所定時間は、任意に設定され得る。ステップS4において、所定時間が経過していないと判定されたときには、処理はステップS5に移行する。ステップS4において、所定時間が経過したと判定されたときには、処理はステップS8に移行する。なお、ステップS4の判定に代えて、税計算キー131が連続して押し込まれている回数が所定回数以上となったか否かが判定されることによって、後で説明する短押しと長押しの判定が行われてもよい。
In step S<b>4 , the
ステップS5において、プロセッサ11は、税計算キー131の押し込みが解除されたか否かを判定する。ステップS5において、税計算キー131の押し込みが解除されていないと判定されたときには、処理はステップS4に戻る。ステップS5において、税計算キー131の押し込みが解除されたと判定されたときには、処理はステップS6に移行する。
In step S5, the
ステップS6において、プロセッサ11は、税計算を実施する。具体的には、プロセッサ11は、予めROMに設定されている税率の値を呼び出し、この税率の値を用いて事前にユーザによって入力されている数値に対する税計算を実施する。その後、処理はステップS7に移行する。すなわち、税計算キー131の押し込み時間が所定時間よりも短い、短押しであるときには予め設定された税率を用いた税計算が実施される。ここで、税計算は、税込価格の計算と税抜価格の計算とを含む。税込価格の計算と税抜価格の計算の何れが実施されるかは、事前にユーザによって設定され得る。または、税計算キー131が税込計算キーと税抜計算キーとに分けられていてもよい。この場合、税込計算キーが押されたときには税込計算が実施され、税抜計算キーが押されたときには税抜計算が実施される。また、税計算の結果、端数が生じる場合がある。端数の処理として、切り上げ、切り捨て、四捨五入の何れを用いるかも事前にユーザによって設定され得る。さらには、国によっては複数の消費税率が使い分けられることもある。このため、税計算キー131は、消費税率毎の税計算を実施する複数の税計算キーに分けられていてもよい。この場合には、ROMには税計算キー毎の複数の税率が記憶される。そして、押された税計算キーに対応した税率を用いて税計算が実施される。なお、税計算キー131が税込計算キーと税抜計算キーとに分けられている場合であっても、消費税率毎の税計算を実施する複数の税計算キーに分けられている場合であっても、図3の処理は同様にして行われ得る。
At step S6, the
ステップS7において、プロセッサ11は、税計算の結果をディスプレイ15に表示させる。その後、図3の処理は終了する。
At step S7, the
ステップS8において、プロセッサ11は、事前に入力された数値を新たな税率の値に設定する。具体的には、プロセッサ11は、事前に入力された数値を用いてROMに記憶されている税率の値を更新する。その後、処理はステップS9に移行する。すなわち、税計算キー131の押し込み時間が所定時間よりも長い、長押しであるときには税率の値の設定が実施される。ここで、税計算キー131が消費税率毎の税計算を実施する複数の税計算キーに分けられているときには、押された税計算キーに対応した税率の値が更新される。
At step S8,
ステップS9において、プロセッサ11は、税率の値の設定が実施されたことをユーザに認知させるための設定完了表示をディスプレイ15に表示させる。設定完了表示については後で説明する。
In step S9, the
ステップS10において、プロセッサ11は、ディスプレイ15の表示を消去する。その後、図3の処理は終了する。ディスプレイ15の表示の消去の処理は、税率の設定の処理から計算機1の通常の処理に移行したことをユーザに認知させるための処理である。
At step S10, the
図4は、第1の実施形態における税率の設定時のディスプレイ15の表示について示した図である。まず、税率の設定の前にユーザは、数値キーを操作して設定したい税率の値を入力する。このとき、図4のaで示すようにして、ユーザによって入力された数値151がディスプレイ15に表示される。例えば、図4のaでは、数値151として「8」が表示されている。
FIG. 4 is a diagram showing the display on the
続いて、ユーザは、税計算キー131を長押しする。税計算キー131が押された直後、図4のbで示すようにディスプレイ15の表示が消去される。
Subsequently, the user presses the
その後、所定時間、例えば2秒間の税計算キー131の押し込みがされたことが判定されると、税率の設定が行われる。図4の例では、ROMに記憶されている税率の値が「8」(%)に更新される。その後、図4のcで示すように設定完了表示が行われる。設定完了表示では、新たに設定された税率の値、すなわち事前にユーザによって入力された数値151に加えて、税計算キー131が押されたことを示す「TAX」表示152と、税率の設定が行われたことを示す「SET%」表示153が表示される。このような設定完了表示により、ユーザは税率の設定がされたことを認知できる。税計算キー131が消費税率毎の税計算を実施する複数の税計算キーに分けられているときには、「TAX」表示152は、「TAX1」、「TAX2」、…、といったように、押された税計算キーに応じた異なる表示に変更されてもよい。
After that, when it is determined that the
図4のcで示す設定完了表示の後、図4のdで示すようにディスプレイ15の表示が消去される。このようにして税率の設定が完了する。
After the setting completion display shown in FIG. 4c, the display on the
図5は、第1の実施形態における税計算の実施時のディスプレイ15の表示について示した図である。まず、税計算の実施の前にユーザは、数値キーを操作して税計算を実施したい金額の数値を入力する。このとき、図5のaで示すようにして、ユーザによって入力された数値151がディスプレイ15に表示される。例えば、図5のaでは、数値151として「8」が表示されている。
FIG. 5 is a diagram showing the display on the
続いて、ユーザは、税計算キー131を長押しする。税計算キー131が押された直後、図5のbで示すようにディスプレイ15の表示が消去される。
Subsequently, the user presses the
その後、所定時間が経過する前、例えば2秒が経過する前に税計算キー131の押し込みが解除されたことが判定されると、税計算が実施される。税計算の完了後、図5のcで示すようにして、税計算の計算結果がディスプレイ15に表示される。結果表示では、計算結果を表す数値154が表示される。図5のcでは、税率10%の計算結果を表す数値154が表示された例が示されている。なお、図5のcの例では、端数が切り上げ処理されている。さらに、結果表示では数値154に加えて、税計算キー131が押されたことを示す「TAX」表示152が表示される。税計算キー131が消費税率毎の税計算を実施する複数の税計算キーに分けられているときには、「TAX」表示152は、「TAX1」、「TAX2」、…、といったように、押された税計算キーに応じた異なる表示に変更されてもよい。
Thereafter, if it is determined that the pressing of the
以上説明したように第1の実施形態では、税計算キー131について複数の操作方法が割り当てられる。そして、税計算キー131の第1の操作方法としての短押しでは、事前に入力された数値に対して予め引数として設定された税率を用いた税計算が実施される。また、税計算キー131の第2の操作方法としての長押しでは、事前に入力された数値が新たな税率の値に設定される。このため、第1の実施形態では、税率の設定をするための専用のキーの操作及び税率の設定をするための専用のモードが不要である。また、1つのキーに対する異なる操作方法で簡単に税計算の実施と税率の設定との切り替えが行われ得る。
As described above, in the first embodiment, the
[第2の実施形態]
次に、第2の実施形態を説明する。ここで、第2の実施形態において計算機1の構成については第1の実施形態と同様である。したがって、計算機1の構成については説明を省略する。
[Second embodiment]
Next, a second embodiment will be described. Here, the configuration of the
図6は、第2の実施形態の計算機1の税計算の処理を示すフローチャートである。以下、第1の実施形態と同様の処理については適宜に説明を省略又は簡略化する。図6の処理においても、計算機1には何等か数値が既に入力され、入力された数値がディスプレイ15に表示されているものとする。
FIG. 6 is a flow chart showing tax calculation processing of the
ステップS21において、プロセッサ11は、税計算キー131が押されたか否かを判定する。ステップS21において、税計算キー131が押されていないと判定されたときには、図6の処理は終了する。ステップS21において、税計算キー131が押されたと判定されたときには、処理はステップS22に移行する。
At step S21, the
ステップS22において、プロセッサ11は、税計算キー131の押し込み時間の計測を開始する。
In step S<b>22 , the
ステップS23において、プロセッサ11は、税計算キー131の押し込み開始から第1の所定時間が経過したか否かを判定する。この第1の所定時間は、例えば0.3秒である。この第1の所定時間は、後で説明する第2の所定時間よりも短い時間の中で任意に設定され得る。ステップS23において、第1の所定時間が経過していないと判定されたときには、処理はステップS24に移行する。ステップS23において、第1の所定時間が経過したと判定されたときには、処理はステップS27に移行する。
In step S23, the
ステップS24において、プロセッサ11は、税計算キー131の押し込みが解除されたか否かを判定する。ステップS24において、税計算キー131の押し込みが解除されていないと判定されたときには、処理はステップS23に戻る。ステップS24において、税計算キー131の押し込みが解除されたと判定されたときには、処理はステップS25に移行する。
In step S24, the
ステップS25において、プロセッサ11は、税計算を実施する。その後、処理はステップS26に移行する。
At step S25, the
ステップS26において、プロセッサ11は、税計算の結果をディスプレイ15に表示させる。その後、図6の処理は終了する。
At step S26, the
ステップS27において、プロセッサ11は、ディスプレイ15の表示を消去する。
At step S27, the
ステップS28において、プロセッサ11は、税計算キー131の押し込み開始から第2の所定時間が経過したか否かを判定する。この第2の所定時間は、例えば2秒である。この第2の所定時間は、任意に設定され得る。ステップS28において、第2の所定時間が経過していないと判定されたときには、処理はステップS29に移行する。ステップS28において、第2の所定時間が経過したと判定されたときには、処理はステップ30に移行する。
In step S28, the
ステップS29において、プロセッサ11は、税計算キー131の押し込みが解除されたか否かを判定する。ステップS29において、税計算キー131の押し込みが解除されていないと判定されたときには、処理はステップS28に戻る。ステップS29において、税計算キー131の押し込みが解除されたと判定されたときには、処理はステップS25に移行する。すなわち、税計算が実施される。
In step S29, the
ステップS30において、プロセッサ11は、事前に入力された数値を新たな税率の値に設定する。その後、処理はステップS31に移行する。
At step S30,
ステップS31において、プロセッサ11は、税率の値の設定が実施されたことをユーザに認知させるための設定完了表示をディスプレイ15に表示させる。
In step S31, the
ステップS32において、プロセッサ11は、ディスプレイ15の表示を消去する。その後、図6の処理は終了する。
At step S32, the
図7は、第2の実施形態における税率の設定時のディスプレイ15の表示について示した図である。まず、税率の設定の前にユーザは、数値キーを操作して設定したい税率の値を入力する。このとき、図7のaで示すようにして、ユーザによって入力された数値151がディスプレイ15に表示される。例えば、図7のaでは、数値151として「8」が表示されている。
FIG. 7 is a diagram showing the display on the
続いて、ユーザは、税計算キー131を長押しする。税計算キー131が押されてから第1の所定時間、例えば0.3秒が経過するまでは、図7のbで示すようにディスプレイ15の表示は継続される。
Subsequently, the user presses the
その後、第1の所定時間の税計算キー131の押し込みがされたことが判定されると、図7のcで示すようにディスプレイ15の表示は消去される。
After that, when it is determined that the
さらにその後、第2の所定時間、例えば2秒の税計算キー131の押し込みがされたことが判定されると、税率の設定が行われる。その後、図7のdで示すように設定完了表示が行われる。
After that, when it is determined that the
図7のdで示す設定完了表示の後、図7のeで示すようにディスプレイ15の表示が消去される。このようにして税率の設定が完了する。
After the setting completion display shown in FIG. 7d, the display on the
ここで、第2の実施形態における税計算の実施時のディスプレイ15の表示では、図5のaと図5のbとの間に図7のbと同様の表示の継続期間が加えられる。詳細については説明を省略する。
Here, in the display on the
以上説明したように第2の実施形態では、税計算キー131の押し込みから第1の所定時間が経過するまで、すなわち税計算キー131の短押しと長押しの何れがされたかを判定する期間のうちの所定期間、ディスプレイ15の表示が継続される。税計算キー131の押し込み時間が短い場合、ディスプレイ15の表示の消去から計算結果の表示までの間隔が短くなる。この間隔の短さにより、ちらつきが発生する可能性がある。税計算キー131の押し込みから第1の所定時間が経過するまではディスプレイ15の表示が継続されることにより、税計算キー131の押し込み時間が短い場合のディスプレイ15のちらつきが抑制される。
As described above, in the second embodiment, it is determined whether the
[変形例]
実施形態の変形例を説明する。実施形態では、税計算キー131に対して第1の操作方法である短押しと第2の操作方法である長押しの2つの操作方法が割り当てられ、それぞれの操作方法に対して事前に入力された数値に対する異なる処理が実施される。第1の操作方法と第2の操作方法は、任意の操作方法であってよい。例えば、税計算キー131に対する第1の操作方法として、短押しが割り当てられ、第2の操作方法として税計算キー131とダブルタップ操作(連続した2回押し操作)が割り当てられてもよい。また、割り当てられる操作方法は、2つに限るものでもない。つまり、税計算キー131に対して3つ以上の操作方法が割り当てられ、それぞれの操作方法に対して事前に入力された数値に対する異なる処理が実施されてもよい。例えば、税計算キー131に対する第3の操作方法として、ダブルタップ操作(連続した2回押し操作)が割り当てられ、ダブルタップ操作がされたときには入力された数値に応じて税込計算モードと税抜計算モードとの切り替えが行われてもよい。また、税計算キー131に対する第4の操作方法として、税計算キー131と他のキーとの同時押し操作が割り当てられ、同時押し操作がされたときには入力された数値に応じて端数処理の切り替えが行われてもよい。このように、操作方法と、操作方法の数と、それぞれの操作方法に割り当てる処理については適宜に設定され得る。
[Modification]
A modification of the embodiment will be described. In the embodiment, two operation methods, namely, short press as the first operation method and long press as the second operation method, are assigned to the
また、実施形態では、税計算キーへの適用例が説明されている。これに対し、実施形態の技術は、予め設定された特定の数値を用いて特定の計算を実施する操作キーを備えた各種の計算機に適用され得る。このような特定の計算を実施する操作キーは、通貨の換算計算を実施するための換算計算キーを含む。この場合も、換算計算キーが短押しされたときには予め設定された換算レートを用いて事前に入力された数値に対する換算計算が実施され、換算計算キーが長押されたときには換算レートの値が事前に入力された数値に設定される、といった処理の割り当てが行われ得る。この他、このような特定の計算を実施する操作キーは、散薬監査計算を実施するための散薬監査キー等を含み得る。 Also, in the embodiment, an example of application to a tax calculation key is described. On the other hand, the technology of the embodiment can be applied to various computers having operation keys for carrying out specific calculations using preset specific numerical values. Operation keys for performing such specific calculations include conversion calculation keys for performing currency conversion calculations. In this case also, when the conversion calculation key is pressed for a short time, the conversion calculation is performed for the numerical value entered in advance using the preset conversion rate, and when the conversion calculation key is long-pressed, the conversion rate value is set in advance. Assignment of processing, such as being set to an input numerical value, can be performed. Alternatively, operational keys for performing such specific calculations may include powder audit keys for performing powder audit calculations, or the like.
さらに、実施形態では計算機1の操作キーはハードウェアキーであるとしている。これに対し、操作キーはタッチパネル等によって操作されるソフトウェアキーであってもよい。この場合において、計算機1自体もソフトウェアによって実現されるものであってもよい。つまり、計算機1は、スマートフォンやタブレット端末といった端末にインストールされるものであってもよい。
Furthermore, in the embodiment, the operation keys of the
以上実施形態に基づいて本発明を説明したが、本発明は上述した実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形や応用が可能なことは勿論である。 Although the present invention has been described above based on the embodiments, the present invention is not limited to the above-described embodiments, and various modifications and applications are of course possible within the scope of the present invention.
また、上述した実施形態による各処理は、コンピュータであるプロセッサ11に実行させることができるプログラムとして記憶させておくこともできる。この他、磁気ディスク、光ディスク、半導体メモリ等の外部記憶装置の記憶媒体に格納して配布することができる。そして、プロセッサ11は、この外部記憶装置の記憶媒体に記憶されたプログラムを読み込み、この読み込んだプログラムによって動作が制御されることにより、上述した処理を実行することができる。
Further, each process according to the above-described embodiment can be stored as a program that can be executed by the
本発明は、上記実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、各実施形態は適宜組み合わせて実施してもよく、その場合組み合わせた効果が得られる。さらに、上記実施形態には種々の発明が含まれており、開示される複数の構成要件から選択された組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、課題が解決でき、効果が得られる場合には、この構成要件が削除された構成が発明として抽出され得る。 The present invention is not limited to the above-described embodiments, and can be modified in various ways without departing from the scope of the present invention at the implementation stage. Further, each embodiment may be implemented in combination as appropriate, in which case the combined effect can be obtained. Furthermore, various inventions are included in the above embodiments, and various inventions can be extracted by combinations selected from a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in the embodiments, if the problem can be solved and effects can be obtained, the configuration with the constituent elements deleted can be extracted as an invention.
以下に、本願の発明の実施の形態から抽出され得る発明を付記する。
[1] 第1の数値が入力された後、操作キーが第1の操作方法と第2の操作方法との何れで操作されたかを判定する判定部と、
前記操作キーが前記第1の操作方法で操作されたと判定されたときには、引数として設定されている第2の数値を用いて前記第1の数値に対する特定の計算を実施し、前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数として前記第1の数値を設定する、ように制御する制御部と、
を具備する計算機。
[2] 入力された前記第1の数値を表示する表示部をさらに具備し、
前記制御部は、前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数として前記第1の数値が設定されたことを前記表示部に表示させる[1]に記載の計算機。
[3] 前記制御部は、前記操作キーが前記第1の操作方法と前記第2の操作方法との何れで操作されているかを判定している間、前記第1の数値の表示を消去する[2]に記載の計算機。
[4] 前記制御部は、前記操作キーが前記第1の操作方法と前記第2の操作方法との何れで操作されているかを判定している間の所定期間、前記第1の数値の表示を継続し、前記所定期間の経過後に前記第1の数値の表示を消去する[2]に記載の計算機。
[5] 前記制御部は、前記操作キーが前記第1の操作方法で操作されたと判定されたときには、前記第1の数値に代えて前記特定の計算によって得られた第3の数値を前記表示部に表示させる[2]-[4]の何れか1に記載の計算機。
[6] 第1の数値が入力された後、操作キーが第1の操作方法と第2の操作方法との何れで操作されたかを判定することと、
前記操作キーが前記第1の操作方法で操作されたと判定されたときには、引数として予め設定されている第2の数値を用いて前記第1の数値に対する特定の計算を実施することと、
前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数としての第2の数値を前記第1の数値で更新することと、
をプロセッサに実行させるための計算プログラム。
Inventions that can be extracted from the embodiments of the invention of the present application are added below.
[1] a determination unit that determines whether the operation key is operated by the first operation method or the second operation method after the first numerical value is input;
When it is determined that the operation key has been operated by the first operation method, a second numerical value set as an argument is used to perform a specific calculation on the first numerical value, and the operation key is operated according to the a control unit configured to set the first numerical value as the argument when it is determined that the operation is performed by the second operation method;
A calculator comprising
[2] further comprising a display unit that displays the input first numerical value;
The control unit according to [1], when it is determined that the operation key is operated by the second operation method, causes the display unit to display that the first numerical value has been set as the argument. calculator.
[3] The control unit erases the display of the first numerical value while determining whether the operation key is operated by the first operation method or the second operation method. The computer according to [2].
[4] The control unit displays the first numerical value for a predetermined period of time while it is determined whether the operation key is operated by the first operation method or the second operation method. and erases the display of the first numerical value after the predetermined period of time has elapsed.
[5] When it is determined that the operation key is operated by the first operation method, the control unit displays the third numerical value obtained by the specific calculation instead of the first numerical value. The computer according to any one of [2] to [4] displayed on the unit.
[6] Determining whether the operation key is operated by the first operation method or the second operation method after the first numerical value is input;
performing a specific calculation on the first numerical value using a second numerical value preset as an argument when it is determined that the operation key has been operated by the first operation method;
updating a second numerical value as the argument with the first numerical value when it is determined that the operation key has been operated by the second operation method;
A calculation program for causing a processor to execute
1 計算機、11 プロセッサ、12 メモリ、13 操作キー、14 ディスプレイドライバ(DD)、15 ディスプレイ15。
1 calculator, 11 processor, 12 memory, 13 operation keys, 14 display driver (DD), 15
Claims (11)
前記操作キーが前記第1の操作方法で操作されたと判定されたときには、引数として設定されている第2の数値を用いて前記第1の数値に対する特定の計算を実施し、前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数として前記第1の数値を設定する、ように制御する制御部と、
を具備する計算機。 a determination unit that determines whether the operation key is operated by the first operation method or the second operation method after the first numerical value is input;
When it is determined that the operation key has been operated by the first operation method, a second numerical value set as an argument is used to perform a specific calculation on the first numerical value, and the operation key is operated according to the a control unit configured to set the first numerical value as the argument when it is determined that the operation is performed by the second operation method;
A calculator comprising
前記制御部は、前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数として前記第1の数値が設定されたことを前記表示部に表示させる請求項1に記載の計算機。 further comprising a display unit that displays the input first numerical value,
2. The method according to claim 1, wherein, when it is determined that the operation key is operated by the second operation method, the control unit causes the display unit to display that the first numerical value has been set as the argument. calculator.
前記操作キーが所定期間内に所定時間以上入力され続けなかったと判別した場合に前記操作キーが第1の操作方法で操作されたと判定し、determining that the operation key has been operated by a first operation method when it is determined that the operation key has not been continuously input for a predetermined time or longer within a predetermined period;
前記操作キーが所定期間内に所定時間以上入力され続けたと判別した場合に前記操作キーが第2の操作方法で操作されたと判定する請求項1乃至5の何れか1項に記載の計算機。6. The computer according to any one of claims 1 to 5, wherein when it is determined that said operation key has been continuously input for a predetermined time or more within a predetermined period, it is determined that said operation key has been operated by the second operation method.
前記操作キーが所定期間内に所定回数以上入力されなかったと判別した場合に前記操作キーが第1の操作方法で操作されたと判定し、determining that the operation key has been operated by a first operation method when it is determined that the operation key has not been input a predetermined number of times or more within a predetermined period;
前記操作キーが所定期間内に所定回数以上入力されたと判別した場合に前記操作キーが第2の操作方法で操作されたと判定する請求項1乃至5の何れか1項に記載の計算機。6. The computer according to any one of claims 1 to 5, wherein when it is determined that said operation key has been input a predetermined number of times or more within a predetermined period, it is determined that said operation key has been operated by the second operation method.
前記特定の計算は、前記税率の値を用いた税計算である請求項1乃至7の何れか1項に記載の計算機。8. The computer according to any one of claims 1 to 7, wherein said specific calculation is a tax calculation using said tax rate value.
前記特定の計算は、前記換算レートの値を用いた通貨の換算計算である請求項1乃至7の何れか1項に記載の計算機。8. The calculator according to any one of claims 1 to 7, wherein said specific calculation is a currency conversion calculation using said conversion rate value.
第1の数値が入力された後、操作キーが第1の操作方法と第2の操作方法との何れで操作されたかを判定することと、Determining whether the operation key is operated by a first operation method or a second operation method after the first numerical value is input;
前記操作キーが前記第1の操作方法で操作されたと判定されたときには、引数として予め設定されている第2の数値を用いて前記第1の数値に対する特定の計算を実施することと、performing a specific calculation on the first numerical value using a second numerical value preset as an argument when it is determined that the operation key has been operated by the first operation method;
前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数としての第2の数値を前記第1の数値で更新することと、updating a second numerical value as the argument with the first numerical value when it is determined that the operation key has been operated by the second operation method;
を含む計算方法。calculation method, including
前記操作キーが前記第1の操作方法で操作されたと判定されたときには、引数として予め設定されている第2の数値を用いて前記第1の数値に対する特定の計算を実施することと、
前記操作キーが前記第2の操作方法で操作されたと判定されたときには、前記引数としての第2の数値を前記第1の数値で更新することと、
をプロセッサに実行させるための計算プログラム。 Determining whether the operation key is operated by a first operation method or a second operation method after the first numerical value is input;
performing a specific calculation on the first numerical value using a second numerical value preset as an argument when it is determined that the operation key has been operated by the first operation method;
updating a second numerical value as the argument with the first numerical value when it is determined that the operation key has been operated by the second operation method;
A calculation program for causing a processor to execute
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020156506A JP7184068B2 (en) | 2020-09-17 | 2020-09-17 | Calculator, calculation method and calculation program |
| JP2022179936A JP7416174B2 (en) | 2020-09-17 | 2022-11-10 | Electronic devices, input support methods and programs |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020156506A JP7184068B2 (en) | 2020-09-17 | 2020-09-17 | Calculator, calculation method and calculation program |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022179936A Division JP7416174B2 (en) | 2020-09-17 | 2022-11-10 | Electronic devices, input support methods and programs |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022050103A JP2022050103A (en) | 2022-03-30 |
| JP7184068B2 true JP7184068B2 (en) | 2022-12-06 |
Family
ID=80854229
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020156506A Active JP7184068B2 (en) | 2020-09-17 | 2020-09-17 | Calculator, calculation method and calculation program |
| JP2022179936A Active JP7416174B2 (en) | 2020-09-17 | 2022-11-10 | Electronic devices, input support methods and programs |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022179936A Active JP7416174B2 (en) | 2020-09-17 | 2022-11-10 | Electronic devices, input support methods and programs |
Country Status (1)
| Country | Link |
|---|---|
| JP (2) | JP7184068B2 (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005141559A (en) | 2003-11-07 | 2005-06-02 | Sharp Corp | Information processing apparatus with conversion function and conversion processing program |
| JP2018077917A (en) | 2018-02-06 | 2018-05-17 | カシオ計算機株式会社 | Tax calculator, tax calculation method, and program |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005083903A (en) * | 2003-09-09 | 2005-03-31 | Osamu Sato | Information processing auxiliary device |
| JP6784110B2 (en) * | 2016-09-20 | 2020-11-11 | カシオ計算機株式会社 | Arithmetic logic unit, arithmetic printing method, and program |
| JP6593505B1 (en) * | 2018-09-07 | 2019-10-23 | カシオ計算機株式会社 | Computer, electronic device, setting method, and program |
| JP7163705B2 (en) * | 2018-10-03 | 2022-11-01 | カシオ計算機株式会社 | Calculators, calculation methods, and programs |
-
2020
- 2020-09-17 JP JP2020156506A patent/JP7184068B2/en active Active
-
2022
- 2022-11-10 JP JP2022179936A patent/JP7416174B2/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005141559A (en) | 2003-11-07 | 2005-06-02 | Sharp Corp | Information processing apparatus with conversion function and conversion processing program |
| JP2018077917A (en) | 2018-02-06 | 2018-05-17 | カシオ計算機株式会社 | Tax calculator, tax calculation method, and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP7416174B2 (en) | 2024-01-17 |
| JP2022050103A (en) | 2022-03-30 |
| JP2023001311A (en) | 2023-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6221323B2 (en) | Graph display device and control program thereof | |
| US10937110B2 (en) | Tax calculator, tax calculation method, and storage medium storing program | |
| CN105824502A (en) | Information processing method and electronic equipment | |
| US10235328B2 (en) | Calculation device, calculation method, and storage medium | |
| CN107015626A (en) | Terminal control method and terminal control mechanism | |
| JP7184068B2 (en) | Calculator, calculation method and calculation program | |
| CN106354273B (en) | A kind of method and smart machine manipulating smart machine | |
| JP6635132B2 (en) | Tax calculator, tax calculation method and tax calculation program | |
| JP2020057374A (en) | Computer, computing method, and program | |
| JP6915669B2 (en) | Tax calculator, tax calculation method, and tax calculation program | |
| JP7163705B2 (en) | Calculators, calculation methods, and programs | |
| CN116627281A (en) | Interaction method, device, equipment and storage medium | |
| JP6237043B2 (en) | Formula display control apparatus, formula display control method, formula display control program | |
| JP7790535B2 (en) | Computers and computer programs | |
| JP6593505B1 (en) | Computer, electronic device, setting method, and program | |
| JP2020036750A (en) | Game device, game device control method, and game program | |
| JP6816392B2 (en) | Computational equipment, computational methods, and programs | |
| JP6620907B1 (en) | Computer, setting method, and program | |
| JP2026056954A (en) | Electronic equipment, control methods, and programs | |
| KR100782549B1 (en) | Method for implementing pointing interface of mobile device and device therefor | |
| JP2003044205A (en) | Input display device, input display method, and input display processing program | |
| JP2002163663A (en) | Display device, display method, and storage medium storing display processing program | |
| JP4239862B2 (en) | Display control device | |
| JP2020036871A (en) | Game device, game device control method, and game program | |
| JP2007518143A (en) | Arithmetic processing unit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20211210 |
|
| 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: 20221012 |
|
| 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: 20221025 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20221107 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7184068 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |